options: skrzynka: chest named "&6Myster Box" with lore "Tajemnicza skrzynka" kilof: diamond pickaxe of efficiency 4 and unbreaking 3 and fortune 3 command /mysterboxall: permission: mysterbox.admin permission message: &cBrak uprawnien! trigger: give {@skrzynka} to all players stop command /mysterbox []: permission: mysterbox.admin permission message: &cBrak uprawnien! trigger: if arg 1 is set: give {@skrzynka} to arg 1 stop else: send "&cPodaj gracza!" stop on leftclick: if name of player's tool is "&6Myster Box": chance of 50%: drop {@kilof} broadcast "&7Gracz &4%player% &7otworzyl &6Myster Box i wylosowal:" broadcast "&5-Kilof 4/3/3" set event-block to air stop chance of 50%: drop 10 diamonds broadcast "&7Gracz &4%player% &7otworzyl &6Myster Box i wylosowal:" broadcast "&5-10 diamentow" set event-block to air stop on place chest: if name of player's tool is "&6Myster Box": send "&cNie mozesz postawic tej skrzynki!" cancel event