variables: (cobblex.%player%) = 1 options: nazwa: CobbleX tag: &9CobbleX #Lista przedmiotow dropiacych lista: diamond or paper or gunpowder or 322:0 or ender pearl or slimeball or Block of Gold or 322:1 or string or 373:16425 on place of mossy cobblestone: if name of player's tool is "&9CobbleX": cancel event give 30 of {@lista} to the player send "&7Wylosowales przedmiot" wait a tick remove 1 mossy cobblestone of thorns 3 named "&9CobbleX" from player's inventory command /cobblex []: aliases: cx trigger: if arg 1 is not set: open chest with 2 rows named "&8&lDrop z cobblexa" to player wait 3 ticks # - bez tego bedzie sie bugowac format slot 0 of player with diamond to be unstealable format slot 1 of player with paper to be unstealable format slot 2 of player with gunpowder to be unstealable format slot 3 of player with golden apple to be unstealable format slot 4 of player with ender pearl to be unstealable format slot 5 of player with slimeball to be unstealable format slot 6 of player with block of gold to be unstealable format slot 7 of player with enchanted golden apple to be unstealable format slot 8 of player with string to be unstealable set slot 17 of player's current inventory to 1 of door named "&c&lPowrot do menu" if arg 1 is "craft": if player has 576 cobblestone: remove 576 cobblestone from player's inventory wait a tick give 1 mossy cobblestone of thorns 3 named "&9CobbleX" to player's inventory send "&cStworzyles cobblex" else: send "&cNie posiadasz wystarczajacej ilosci cobblestone." to player on inventory click: if inventory name of player's current inventory is "&8&lDrop z cobblexa": if clicked slot is not 17: close player's inventory else: close player's inventory wait 1 tick execute player command "drop"