command /tiktok []: permission: tiktok.* permission message: "&cBrak uprawnień" trigger: if arg-1 is "daj": give 1 of diamond ore named "&aBlok gracza %player%" to player stop if arg-1 is "kilof": give 1 of diamond pickaxe of mending 10 named "&aKilof Tiktok 1" to player stop arg-2 is set if arg-1 is "dodaj": {blok::%location of target block of player%} is set add arg-2 to {blok::%location of target block of player%} send action bar "&aHP bloku: &e%{blok::%location of target block of player%}%" to player if arg-1 is "usun": {blok::%location of target block of player%} is set remove arg-2 from {blok::%location of target block of player%} send action bar "&aHP bloku: &e%{blok::%location of target block of player%}%" to player on place: type of event-block is diamond ore name of player's tool contains "&aBlok gracza" set {blok::%location of event-block%} to 350 send "&aPostawiono blok!" on break: type of event-block is diamond ore {blok::%location of event-block%} is set if {blok::%location of event-block%} > 1: cancel event remove 1 from {blok::%location of event-block%} send action bar "&aHP bloku: &e%{blok::%location of event-block%}%" to player else: set event-block to air delete {blok::%location of event-block%} send "&cWykopałeś blok!"