on place chest:
if player's tool is chest named "&9&lPremium Case":
set block to air
send "&8&m---------------------------------------------------"
send "&9%player% &fotworzyl &9&lPremiumCase &fi otrzymal&8:"
send " "
chance of 50%:
drop 64 diamond
send "&b&l• &bDIAMENT x64"
chance of 30%:
drop 1 diamond boots of protection 4 and unbreaking 3 and feather falling 2 named "&a&lButy 4/3/2"
send "&a&l• &a&lButy 4/3/2"
chance of 20%:
drop 1 diamond chestplate of protection 4 and unbreaking 3 named "&a&lNapiersnik 4/3"
send "&a&l• &a&lNapiersnik 4/3"
chance of 10%:
drop 1 diamond leggings of protection 4 and unbreaking 3 named "&a&lSpodnie 4/3"
send "&a&l• &aSpodnie 4/3"
chance of 5%:
drop 1 diamond helmet of protection 4 and unbreaking 3 named "&a&lHelm 4/3"
send "&a&l• &aHelm 4/3"
chance of 12%:
drop 64 emerald
send "&a&l• &aEMERALD x64"
chance of 1.5%:
drop 1 diamond pickaxe of efficiency 8 and unbreaking 3 and fortune 3 named "&6&lKilof 8/3/3"
send "&6&l• &6Kilof 8/3/3 &cGZ!"
chance of 4.2%:
drop 64 emerald block
send "&9&l• &9BLOKI EME x64"
chance of 8.4%:
drop 32 emerald block
send "&9&l• &9BLOKI EME x32"
chance of 2%:
drop 32 diamond
send "&b&l• &bDIAMENT x32"
chance of 6%:
drop 64 diamond block
send "&b&l• &bBLOKI DIAMENTU x64"
chance of 7%:
drop 16 diamond
send "&b&l• &bDIAMENT x16"
chance of 9%:
drop 32 diamond block
send "&b&l• &bBLOKI DIAMENTU x32"
chance of 9.9%:
drop 16 ender pearl
send "&5&l• &5Perelki x16"
chance of 100%:
send "&8&m---------------------------------------------------"
powinno ladnie wygladac