options: {przedwiadomoscia} = &9CASE #Tu ustaw itemy które mają być w gui (dropped) item1: diamond item2: iron ingot item3: gold ingot item4: apple item5: book #Nazwa itemu powyżej np (n1 = &bDiament) name1: &3DIAMENT name2: &7ZELAZO name3: &eZLOTO name4: &cJABLKO name5: &6KSIAZKA #Chance = Szansa (pamietaj o wstawianu 2 x %) chance1: 0.09%% chance2: 0.2%% chance3: 0.13%% chance4: 0.15%% chance5: 0.20%% szansa1: 0.09% szansa2: 0.2% szansa3: 0.13% szansa4: 0.15% szansa5: 0.20% # msg = Wiadomosc po wykopaniu suowca msg1: &6Znalazles &3DIAMENT &7(x1) msg2: &6Znalazles &7ZELAZO &7(x1) msg3: &6Znalazles &eZLOTO &7(x1) msg4: &6Znalazles &cJABLKO &7(x1) msg5: &6Znalazles &6KSIAZKE &7(x1) version: 0.1 variables: {status.drop.1.%player%} = "&aWLACZONY" {status.drop.2.%player%} = "&aWLACZONY" {status.drop.3.%player%} = "&aWLACZONY" {status.drop.4.%player%} = "&aWLACZONY" {status.drop.5.%player%} = "&aWLACZONY" {status.drop.6.%player%} = "&aWLACZONY" command /drop: trigger: open chest with 3 rows named "&cDrop" to player format slot 10 of player with 1 of {@item1} named "&6&l{@name1}" with lore "&8» &7Szansa: &6{@chance1} &8•||&8» &7Status: %{status.drop.1.%player%}% &8•||&8» &7FORTUNE: &cNIE &8•" to close then run [execute player command "turndrop 1"] format slot 11 of player with 1 of {@item2} named "&6&l{@name2}" with lore "&8» &7Szansa: &6{@chance2} &8•||&8» &7Status: %{status.drop.2.%player%}% &8•||&8» &7FORTUNE: &cNIE &8•" to close then run [execute player command "turndrop 2"] format slot 12 of player with 1 of {@item3} named "&6&l{@name3}" with lore "&8» &7Szansa: &6{@chance3} &8•||&8» &7Status: %{status.drop.3.%player%}% &8•||&8» &7FORTUNE: &cNIE &8•" to close then run [execute player command "turndrop 3"] format slot 13 of player with 1 of {@item4} named "&6&l{@name4}" with lore "&8» &7Szansa: &6{@chance4} &8•||&8» &7Status: %{status.drop.4.%player%}% &8•||&8» &7FORTUNE: &cNIE &8•" to close then run [execute player command "turndrop 4"] format slot 14 of player with 1 of {@item5} named "&6&l{@name5}" with lore "&8» &7Szansa: &6{@chance5} &8•||&8» &7Status: %{status.drop.5.%player%}% &8•||&8» &7FORTUNE: &cNIE &8•" to close then run [execute player command "turndrop 5"] command /turndrop []: trigger: if {drop.%integer-arg%.%player%} is false: set {status.drop.%integer-arg%.%player%} to "&aWLACZONY" set {drop.%integer-arg%.%player%} to true send "&8» &aWlaczono drop" to player stop else: set {status.drop.%integer-arg%.%player%} to "&cWYLACZONY" set {drop.%integer-arg%.%player%} to false send "&8» &cWylaczono drop" to player stop on mine of stone: cancel event delete block add cobblestone to player's inventory chance of {@szansa1}: if {drop.1.%player%} is true: add {@item1} to the player's inventory send "{@msg1}" to player chance of {@szansa2}: if {drop.2.%player%} is true: add {@item2} to the player's inventory send "{@msg2}" to player chance of {@szansa3}: if {drop.3.%player%} is true: add {@item3} to the player's inventory send "{@msg3}" to player chance of {@szansa4}: if {drop.4.%player%} is true: add {@item4} to the player's inventory send "{@msg4}" to player chance of {@szansa5}: if {drop.5.%player%} is true: add {@item5} to the player's inventory send "{@msg5}" to player on mine: if event-block is not stone: cancel event delete block add event-block to player's inventory command /caseall []: permission: case.op trigger: if arg 1 is not set: send "&aPoprawne uzycie : &e" broadcast "&bCaly Serwer Otrzymuje %arg 1%&n&6Pierozkow! &bOd Gracza %player%" give 1 trapped chest named "&n&6Pierozek!" to all players on place dragon egg: if player's tool is dragon egg named "&n&6Pierozek!": set block to air wait 0.1 second set block to emerald block wait 0.1 second set block to gold block wait 0.1 second set block to iron block wait 0.1 second set block to diamond block wait 0.1 second set block to air block send "&bOtworzyles &n&6Pierozek!" chance of 5%: drop 1 310 of protection 4 and unbreaking 3 named "&aBania 4/3" drop 12 gold ingot drop 1 276 of knockback 2 named "&4Knockback 2" send {przedwiadomoscia} chance of 1.5%: drop 1 278 of efficiency 6 and unbreaking 3 and fortune 3 named "&4&lMagiczny Kilof" drop 1 310 of protection 4 and unbreaking 3 named "&aBania 4/3" drop 12 gold ingot send "&cStatus Dropu: send "&6 - &aMagiczny Kilof!" send "&6 - &a12 Sztabek Złota" send "&6 - &aBania 4/3" on mine of stone: chance of 0.00008% drop 1 dragon egg named "&n&6Pierozek!"