on mine of gold ore:
if player's tool is any pickaxe:
set {Szt::Dublon::%player%} to "0" or "1" or "2" or "2" or "3" or "4"
chance of 30%:
drop diamond
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &bDiament&8]"
set block to air
stop
chance of 38%:
drop gold ingot
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &eSztabke zlota&8]"
set block to air
stop
chance of 52%:
drop 3 iron ingot
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &7Sztabke zelaza&8]"
set block to air
stop
chance of 53%:
drop 49
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &8Obsydian]"
set block to air
stop
chance of 43%:
drop 5 apple
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &cJablko&8]"
set block to air
stop
chance of 65%:
drop 1 322:1
send "&8[&eEnderManCraft&8] &7Gratulacje zdobyles &e%{Szt::Dublon::%player%}% dublonów Z trzech &8[&7Bonus &eZlote Jablko&8]"
set block to air
stop
on mine of Gold Ore:
if player's tool is any pickaxe:
if {Szt::Dublon::%player%} is "0":
stop
if {Szt::Dublon::%player%} is "1":
drop 1 SunFlower of sharpness named "&eZloty Dublon"
if {Szt::Dublon::%player%} is "2":
drop 2 SunFlower of sharpness named "&eZloty Dublon"
if {Szt::Dublon::%player%} is "3":
drop 3 SunFlower of sharpness named "&eZloty Dublon"
on break of Gold Ore:
spawn 1 skeleton above location of event-block
apply speed 8 to last spawned entity for 999 hour
equip last spawned entity with gold helmet of protection 100 and thorns 5
equip last spawned entity with gold chestplate of protection 100 and thorns 5
equip last spawned entity with gold leggings of protection 100 and thorns 5
equip last spawned entity with gold boots of protection 100 and thorns 5
set last spawned entity's tool to gold sword of sharpness 5
wait 1 seconds
set block to Gold Ore
drop 10 xp at location of block
on break of Gold Ore:
spawn 1 skeleton above location of event-block
apply speed 8 to last spawned entity for 999 hour
equip last spawned entity with gold helmet of protection 100 and thorns 5
equip last spawned entity with gold chestplate of protection 100 and thorns 5
equip last spawned entity with gold leggings of protection 100 and thorns 5
equip last spawned entity with gold boots of protection 100 and thorns 5
set last spawned entity's tool to gold sword of sharpness 5
Przetestowałem, działa, wytabowałem Ci resztę + strasznie brzydko i nie ładnie napisany kod... ale już działa. Dodałem tylko z tymi mieczami i TAB'y, nic innego nie ruszałem.