options: tag: &7[&4&lPro&f&lCase&7] wiad: &7* &c%player% &6otworzyl &4&lPro&f&lCase &6i otrzymal: &c item1: 2 dirt item2: 1 glass item3: 6 apple item4: diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 with lore " &7* &cMagiczny Kilofek &3&l6/3/3" on load: add {@item1} to {drop::*} add {@item2} to {drop::*} add {@item3} to {drop::*} add {@item4} to {drop::*} variables: {zmienna::%player%} = true command /case []: trigger: if player has permission "KCommands.ccase": if arg 1 is not set: send "&cPoprawne uzycie: /&6case &c<&6on&c/&6off&c>" if arg 1 is "on": set {zmienna::%player%} to true send "&2Wiadomosci dropu z &4&lPro&f&lCase &2zostaly wlaczone :)" if arg 1 is "off": set {zmienna::%player%} to false send "&cWiadomosci dropu z &4&lPro&f&lCase &4zostaly wylaczone :(" else: send " &c* &cNie masz uprawnien! &8(KCommands.case) " command /skrzyneczki [] [] []: trigger: if arg 1 is not set: if player have permission "case.daj": send "&cPoprawne uzycie: /&6skrzyneczki &c<&6all&c/&6give&c>" else: send " &c* &cNie masz uprawnien! &8(KCommands.case) " if arg 1 is "give": if arg 2 is set: set {_i} to arg 2 parsed as integer if {_i} is integer: if {_i} is larger than 0: if player have permission "case.daj": set {_it} to "%{_i}% chest" set {_it} to {_it} parsed as item add {_it} named "{@tag}" with lore " &fblabla" to player's inventory send "&2Otrzymales/as &4&lPro&f&lCase &2:)" to player else: send " &c* &cNie masz uprawnien! &8(KCommands.case) " else: send "&7* &cPodaj liczbe" if arg 1 is "all": if arg 2 is set: set {_i} to arg 2 parsed as integer if {_i} is integer: if {_i} is larger than 0: if player have permission "case.all": set {_it} to "%{_i}% chest" set {_it} to {_it} parsed as item loop all players: add {_it} named "{@tag}" with lore " &fblabla" to loop-player's inventory send "&2Otrzymales/as &4&lPro&f&lCase &2:)" to loop-players else: send " &c* &cNie masz uprawnien! &8(KCommands.case)" else: send " &7* &cPodaj liczbe" on place chest: if player's tool is chest named "{@tag}" with lore " &fblabla": cancel event set event-block to air play raw sound "random.pop" at player with pitch 0.0 volume 10 set {_x} to random item out of {drop::*} drop {_x} loop all players: if {zmienna::%loop-player%} is true: send " " to loop-player send " {@wiad} %{_x}%" to loop-player send " " to loop-player