Hi,
I'm trying to replace x ore with another random ore completely. I've tried making it work but it seems to replace a vein with different types of ores instead of a vein of one type of ore. How can I make this work?
I'm trying to replace x ore with another random ore completely. I've tried making it work but it seems to replace a vein with different types of ores instead of a vein of one type of ore. How can I make this work?
code_language.skript:
on mine of iron ore:
player is in "Warzone"
cancel event
set event-block to bedrock
add 1 iron ingot named "&e&lWarzone Iron" to the player
play sound "ENTITY_EXPERIENCE_ORB_PICKUP " to player at volume 1 and pitch 5
send action bar from "&f&lMined &e&lWarzone Iron&f&l!" to player
loop blocks in radius 4 around event-block:
loop-block is equal to bedrock or coal ore or iron ore or gold ore or redstone ore or lapis ore or diamond ore or emerald ore
wait 2 seconds
set {ores} to a random integer between 1 and 14
if {ores} is 1:
set all stone blocks in radius 5 to coal ore
if {ores} is 2:
set loop-blocks to coal ore
if {ores} is 3:
set loop-blocks to coal ore
if {ores} is 4:
set loop-blocks to iron ore
if {ores} is 5:
set loop-blocks to iron ore
if {ores} is 6:
set loop-blocks to iron ore
if {ores} is 7:
set loop-blocks to lapis ore
if {ores} is 8:
set loop-blocks to lapis ore
if {ores} is 9:
set loop-blocks to redstone ore
if {ores} is 10:
set loop-blocks to redstone ore
if {ores} is 11:
set loop-blocks to gold ore
if {ores} is 12:
set loop-blocks to gold ore
if {ores} is 13:
set loop-blocks to diamond ore
if {ores} is 14:
set loop-blocks to emerald ore