Witam, posiadam skrypt na takie premiumcase tylko przerobiony na swój, robiąc jego reload serwer sie wywala, ktoś wie co źle robie?
options:
chest: chest named "&aPaczka"
bon_c: paper named "&eBon na 48 Coiny"
kilof6: diamond pickaxe of efficiency 6 and unbreaking 5 and fortune 4 and mending 1 named "&cKilof %player%"
miecz6: diamond sword of sharpness 6 and and smite 6 and bane of arthropods 6 and unbreaking 2 and fire aspect 2 and mending 1 named "&cMiecz %player%"
command /skrzynia:
trigger:
give player 64 {@chest}
on place:
player's tool is {@chest}
cancel event
set player's tool to (item amount of player's tool - 1) of player's tool
set {_drop::*} to {@kilof6}, {@miecz6}, 8 diamond blocks, 10 emerald blocks, 16 gold blocks, 16 gold blocks, 16 iron blocks, 1 {@bon_c}, 16 iron blocks, 8 diamond blocks, 10 emerald blocks, 16 gold blocks, 16 gold blocks, 16 iron blocks, 1 nether star and 32 redstone blocks
set {_d} to random element out of {_drop::*}
if player has enough space for {_d}:
give {_d} to player
else:
drop {_d} at event-block
broadcast "&7Gracz &a%player% &7otworzył &aPaczke &7i wydropił &3%{_d}%"