on script load: register new shaped recipe for a Sponge named "&6&lLucky Block" using air, gold ingot, air, gold ingot, iron ingot, gold ingot, air, gold ingot, air on break of sponge: cancel event set block to air chance of 10%: spawn 5 Sheeps at block set the display name of last spawned entity to "&e&lLucky Sheep" chance of 4.5%: drop 2 diamond drop 3 iron ingot drop 3 gold ingot chance of 11.5%: drop 10 stone brick drop 10 dirt drop 10 cobble_stone drop 10 oak_wooden_plank chance of 6.5%: drop 1 iron sword drop 1 iron pickaxe drop 1 iron axe drop 1 iron spade chance of 2.3%: drop 5 diamond drop 5 emerald chance of 5.5%: spawn 6 Chickens at block set the displayname of last spawned entity to "&e&lLucky Chicken" chance of 20.4%: strike lightning effect at block chance of 0.5%: drop 1 beacon named "&6&lLucky Beacon" with lore "&dBardzo trudny do zdobycia! Gratulacje!" broadcast "&8&l[&6&lLuckyBlock&8&l] &8Gracz {_player} wydropil &9&lBeacona&8!" chance of 17%: damage player by 4 hearts send "&8&l[&6&lLuckyBlock&8&l] &6Aww! Nie miales tym razem szczescia!" chance of 5%: spawn 5 zombies set the displayname of last spawned entity to "&6&lLucky Zombie" chance of 6.49%: drop 20 bottle o' enchanting drop 10 coal chance of 10%: drop 2 spawner_egg:51 named "&6&lLucky Skeleton" chance of 7.8%: drop 10 glowstone dust drop 10 sugar drop 10 redstone chance of 1%: drop 1 nether star broadcast "&8&l[&6&lLuckyBlock&8&l] &8Gracz %player% wydropil &e&lNetherStar8! &8(Szansa 1 procent)" chance of 1%: drop 1 mob spawner broadcast "&8&l[&6&lLuckyBlock&8&l] &8Gracz %player% wydropil &c&lMobSpawner&8! &8(Szansa 1 procent)" chance of 5%: drop 2 pumpkin drop 1 diamond axe or diamond pickaxe or diamond shovel chance of 15%: drop 10 sand drop 10 redsand chance of 1%: set block 10 meters above player to tnt set block 11 meters above player to fire send "&8&l[&6&lLuckyBlock&8&l] &8Leci &4&lTnT &8!" chance of 4%: drop 1 spawner_egg:100 named "&6&lLucky Horse" chance of 3%: loop blocks in radius 2: loop-blocks is not bedrock or obsidian or air: set loop-blocks to water chance of 11%: drop 5 sponges or 3 sponges named "&6&lLucky Block" chance of 5.4%: drop 1 bow of Punch 2 and Infinity 1 named "&e&lLucky Bow" chance of 0.6%: drop 3 ender chest broadcast "&8&l[&6&lLuckyBlock&8&l] &8Gracz %player% wydropil &2&lEnderChesty&8! &8(Szansa 0.6 procent)" chance of 0.01%: drop 1 mob spawner drop 1 beacon broadcast "&8&l[&6&lLuckyBlock&8&l] &8Gracz %player% wydropil &c&lMobSpawner&8 i &c&lBeacona&8! &8(Szansa 0.01 procent)"