Code:
on break of stone:
chance of 100%:
loop all blocks in radius 3 around player:
add 1 to {_x}
set {_x} to random integer between 1 and {_x}
loop all blocks in radius 3 around player:
add 1 to {_y}
{_x} is {_y}
set {_belphite} to location of loop-block
exit loop
set block at {_belphite} to lapis ore
add 1 to {_belphite}'s y-coordinate
create hologram "&a&l&nBelphite Ores" at {_belphite} for 300 seconds
wait 5 minutes
set {_belphite} to air
Code:
on click on lapis ore:
if {_belphite}'s location is equal to event-block's location:
cancel event
send "m"
I have lost of ideas. Anyone know how to do it? This is for mining on caves
While mining stones there's 0.01% chance that it will spawn unique ores and i wanna set the unique ores to a variable so when the players mines it it triggers something because its a variable blocks