( Sorry for bad eng )
I'm currently working on a custom block generator.
I want to code that generates a block when the block is broken.
However, there is no way to recreate the block because we does not use the cobblestone generator.
Instead of lava, I want to keep creating cobblestones at the point where water and fences meet.
And my code is
I'm currently working on a custom block generator.
I want to code that generates a block when the block is broken.
However, there is no way to recreate the block because we does not use the cobblestone generator.
Instead of lava, I want to keep creating cobblestones at the point where water and fences meet.
And my code is
Code:
on break:
event-block is fence
loop blocks in radius 1 of event-block:
y-coordinate of event-block is y-coordinate of loop-block
loop-block is air:
add location of loop-block to {_checks::*}
wait 1 tick
loop {_checks::*}:
block at loop-value-1 is cobblestone
chance of 30.25%:
set block at loop-value-1 to coal ore
wait 1 tick
set loop-block to cobblestone
chance of 30.0%:
set block at loop-value-1 to iron ore
wait 1 tick
set loop-block to cobblestone
chance of 0.35%:
set block at loop-value-1 to emerald ore
wait 1 tick
set loop-block to cobblestone
chance of 0.35%:
set block at loop-value-1 to gold ore
wait 1 tick
set loop-block to cobblestone
chance of 0.2%:
set block at loop-value-1 to diamond ore
wait 1 tick
set loop-block to cobblestone
chance of 0.4%:
set block at loop-value-1 to lapis ore
wait 1 tick
set loop-block to cobblestone
chance of 0.3%:
set block at loop-value-1 to redstone ore
wait 1 tick
set loop-block to cobblestone
Last edited: