ok so ive been trying to make a blast enchant where if you break 1 block it breaks the blocks around it in a radius [based on the level of enchant]
ive tried loop blocks but when i do:
it slowly sets each block in radius to bedrock and i have no way of setting every block at once.
i found a way scuffed way around this with:
but as you know it breaks when you do more than 1 radius cuz there is alot more blocks to remove 1 by 1.
however this method works if you use just 1 blast which is problematic when i want to add more items.
i also want it to give the player drops even on blast, how do i lock "chane of 10%" to loopblocks.
ive tried loop blocks but when i do:
Code:
on join:
set {_blast} to {blast.%player%} ? 0
# i have no idea what ? 0 does
on break:
if {blast.%player%} = 1:
if event-block is snow block:
loop all blocks in radius 1 of event-block:
if loop-block is snow:
set loop-block to bedrock
wait 1 seconds
set loop-block to snow block
it slowly sets each block in radius to bedrock and i have no way of setting every block at once.
i found a way scuffed way around this with:
Code:
on join:
set {_blast} to {blast.%player%} ? 0
on break:
if {blast.%player%} = 1:
if event-block is snow block:
set all blocks in radius 1 around event-block to bedrock
set block below the event-block to air
set block above the event-block to air
wait 1 seconds
set all blocks in radius 1 around event-block to snow block
set block below the event-block to air
set block above the event-block to air
if {blast.%player%} = 2:
if event-block is snow block:
set all blocks in radius 2 around event-block to bedrock
set block below the event-block to air
set block above the event-block to air
wait 1 seconds
set all blocks in radius 2 around event-block to snow block
set block below the event-block to air
set block above the event-block to air
but as you know it breaks when you do more than 1 radius cuz there is alot more blocks to remove 1 by 1.
however this method works if you use just 1 blast which is problematic when i want to add more items.
i also want it to give the player drops even on blast, how do i lock "chane of 10%" to loopblocks.