on mine of stone: if player has permissions "drop.diamond": chance of 40%: give 1 diamond to the player if player has permissions "drop.goldingot": chance of 60%: give 1 gold ingot to the player if player has permissions "drop.ironingot": chance of 20%: give 1 iron ingot to the player if player has permissions "drop.tnt": chance of 10%: give 1 tnt to the player if player has permissions "drop.bookshelf": chance of 5%: give 1 bookshelf to the player if player has permissions "drop.obsidian": chance of 20%: give 1 obsidian to the player if player has permissions "drop.apple": chance of 5%: give 1 apple to the player if player has permissions "drop.enderpearl": chance of 5%: give 1 ender pearl to the player # ZABEZPIECZENIE PRZECIWKO BAGOWANIU SKRZYŃ on inventory open: set {BLOCK::%player%} to true stop on inventory close: set {BLOCK::%player%} to false stop on join: set {Diamond::%player%} to true set {Gold::%player%} to true set {Iron::%player%} to true set {Tnt::%player%} to true set {Book::%player%} to true set {Obs::%player%} to true set {Apple::%player%} to true set {Ender::%player%} to true set {BLOCK::%player%} to false command /stonedrop: trigger: if {BLOCK::%player%} is false: wait 3 ticks open chest with 3 rows named "&c&lDrop z kamienia" to player wait 2 ticks if {Diamond::%player%} is true: format slot 0 of player with 1 of diamond named "&3Diament" with lore "&7Aktywny: &c✘||&7Szansa: &940%%" to run [make player execute command "zmiendrop1 diamond"] -> [make console execute command "pex user %player% add drop.diamond"] else: format slot 0 of player with 1 of diamond named "&3Diament" with lore "&7Aktywny: &a✔||&7Szansa: &940%%" to run [make player execute command "zmiendrop1 diamond"] -> [make console execute command "pex user %player% remove drop.diamond"] if {Gold::%player%} is true: format slot 1 of player with 1 of gold ingot named "&3Zloto" with lore "&7Aktywny: &c✘||&7Szansa: &960%%" to run [make player execute command "zmiendrop2 goldingot"] -> [make console execute command "pex user %player% add drop.goldingot"] else: format slot 1 of player with 1 of gold ingot named "&3Zloto" with lore "&7Aktywny: &a✔||&7Szansa: &960%%" to run [make player execute command "zmiendrop2 goldingot"] -> [make console execute command "pex user %player% remove drop.goldingot"] if {Iron::%player%} is true: format slot 2 of player with 1 of iron ingot named "&3Zelazo" with lore "&7Aktywny: &c✘||&7Szansa: &960%%" to run [make player execute command "zmiendrop3 ironingot"] -> [make console execute command "pex user %player% add drop.ironingot"] else: format slot 2 of player with 1 of iron ingot named "&3Zelazo" with lore "&7Aktywny: &a✔||&7Szansa: &960%%" to run [make player execute command "zmiendrop3 ironingot"] -> [make console execute command "pex user %player% remove drop.ironingot"] if {Tnt::%player%} is true: format slot 3 of player with 1 of tnt named "&3Tnt" with lore "&7Aktywny: &c✘||&7Szansa: &910%%" to run [make player execute command "zmiendrop4 tnt"] -> [make console execute command "pex user %player% add drop.tnt"] else: format slot 3 of player with 1 of tnt named "&3Tnt" with lore "&7Aktywny: &a✔||&7Szansa: &910%%" to run [make player execute command "zmiendrop4 tnt"] -> [make console execute command "pex user %player% remove drop.tnt"] if {Book::%player%} is true: format slot 4 of player with 1 of bookshelf named "&3Biblioteczka" with lore "&7Aktywny: &c✘||&7Szansa: &95%%" to run [make player execute command "zmiendrop5 bookshelf"] -> [make console execute command "pex user %player% add drop.bookshelf"] else: format slot 4 of player with 1 of bookshelf named "&3Biblioteczka" with lore "&7Aktywny: &a✔||&7Szansa: &95%%" to run [make player execute command "zmiendrop5 bookshelf"] -> [make console execute command "pex user %player% remove drop.bookshelf"] if {Obs::%player%} is true: format slot 5 of player with 1 of obsidian named "&3Obsydian" with lore "&7Aktywny: &c✘||&7Szansa: &920%%" to run [make player execute command "zmiendrop6 obsidian"] -> [make console execute command "pex user %player% add drop.obsidian"] else: format slot 5 of player with 1 of obsidian named "&3Obsydian" with lore "&7Aktywny: &a✔||&7Szansa: &920%%" to run [make player execute command "zmiendrop6 obsidian"] -> [make console execute command "pex user %player% remove drop.obsidian"] if {Apple::%player%} is true: format slot 6 of player with 1 of apple named "&3Jablko" with lore "&7Aktywny: &c✘||&7Szansa: &95%%" to run [make player execute command "zmiendrop7 apple"] -> [make console execute command "pex user %player% add drop.apple"] else: format slot 6 of player with 1 of apple named "&3Jablko" with lore "&7Aktywny: &a✔||&7Szansa: &95%%" to run [make player execute command "zmiendrop7 apple"] -> [make console execute command "pex user %player% remove drop.apple"] if {Ender::%player%} is true: format slot 7 of player with 1 of ender pearl named "&3Perla" with lore "&7Aktywny: &c✘||&7Szansa: &95%%" to run [make player execute command "zmiendrop8 enderpearl"] -> [make console execute command "pex user %player% add drop.enderpearl"] else: format slot 7 of player with 1 of ender pearl named "&3Perla" with lore "&7Aktywny: &a✔||&7Szansa: &95%%" to run [make player execute command "zmiendrop8 enderpearl"] -> [make console execute command "pex user %player% remove drop.enderpearl"] else: close player's inventory send "&4Blad: &cBlad przy otwieraniu GUI!" stop command /zmiendrop1 []: trigger: if arg 1 is "diamond": if {Diamond::%player%} is true: close player's inventory set {Diamond::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Diamond::%player%} to true execute player command "stonedrop" stop command /zmiendrop2 []: trigger: if arg 1 is "goldingot": if {Gold::%player%} is true: close player's inventory set {Gold::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Gold::%player%} to true execute player command "stonedrop" stop command /zmiendrop3 []: trigger: if arg 1 is "ironingot": if {Iron::%player%} is true: close player's inventory set {Iron::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Iron::%player%} to true execute player command "stonedrop" stop command /zmiendrop4 []: trigger: if arg 1 is "tnt": if {Tnt::%player%} is true: close player's inventory set {Tnt::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Tnt::%player%} to true execute player command "stonedrop" stop command /zmiendrop5 []: trigger: if arg 1 is "bookshelf": if {Book::%player%} is true: close player's inventory set {Book::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Book::%player%} to true execute player command "stonedrop" stop command /zmiendrop6 []: trigger: if arg 1 is "obsidian": if {Obs::%player%} is true: close player's inventory set {Obs::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Obs::%player%} to true execute player command "stonedrop" stop command /zmiendrop7 []: trigger: if arg 1 is "apple": if {Apple::%player%} is true: close player's inventory set {Apple::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Apple::%player%} to true execute player command "stonedrop" stop command /zmiendrop8 []: trigger: if arg 1 is "enderpearl": if {Ender::%player%} is true: close player's inventory set {Ender::%player%} to false execute player command "stonedrop" stop else: close player's inventory set {Ender::%player%} to true execute player command "stonedrop" stop command /drop: trigger: open chest with 1 rows named "&c&lMenu dropow" to player wait 2 tick format slot 0 of player with 1 of stone named "&8• &7Drop z &2&lKAMIENIA" with lore " &8» &cKliknij LPM, aby przejsc dalej." to run [execute player command "stonedrop"] format slot 1 of player with 1 of chest named "&8• &7Drop z &2&lPREMIUM CASE" with lore " &8» &cKliknij LPM, aby przejsc dalej." to run [execute player command "mcase"] format slot 7 of player with 1 of nether star named "&8• &7Sklep serwera:" with lore " &8» &a&lwww.115619.enmc.pl" to be unstealable format slot 8 of player with 1 of red stained clay named "&8• &7Wyjscie" with lore " &8» &cKliknij, aby wyjsc." to close format slot 4 of player with 1 of diamond pickaxe of unbreaking 10 named "&8• &7Statystyki" with lore " &8» &cKliknij, aby przejsc dalej." to run [execute player command "mstaty"]