options: emerald: 1 ksiazka: 1 jabko: 1 zloto: 1 zelazo: 1 diament: 1 on break of stone: chance of {@emerald}%: if player can hold 1 emerald: give 1 emerald to player stop else: drop 1 emerald stop chance of {@ksiazka}%: if player can hold 1 book: give 1 book to player stop else: drop 1 book stop chance of {@jabko}%: if player can hold 1 apple: give 1 apple to player stop else: drop 1 apple stop chance of {@zelazo}%: if player can hold 1 iron ore: give 1 iron ore to player stop else: drop 1 iron ore stop chance of {@zloto}%: if player can hold 1 gold ore: give 1 gold ore to player stop else: drop 1 gold ore stop chance of {@diament}%: if player can hold 1 diamond: give 1 diamond to player stop else: drop 1 diamond stop command /drop: trigger: open chest with 1 rows named "&6&lDROP" to player wait 2 tick format slot 0 of player with 1 of emerald named "&6Emerald" "&6Szansa: {@emerald}%%" format slot 1 of player with 1 of book named "&6Ksiazka" with lore "&6Szansa: {@ksiazka}%%" format slot 2 of player with 1 of apple named "&6Jablko" with lore "&6Szansa: {@jabko}%%" format slot 3 of player with 1 of iron ore named "&6Zelazo" with lore "&6Szansa: {@zelazo}%%" format slot 4 of player with 1 of gold ore named "&6Zloto" with lore "&6Szansa: {@zloto}%%" format slot 5 of player with 1 of diamond named "&6Diament" with lore "&6Szansa: {@diament}%%" on inventory click: if "%inventory name of player's current inventory%" contains "DROP": if slot is smaller than 0: stop cancel event