Code:
on explode:
loop exploded blocks:
if {blockplace::%location of loop-block%} is set:
if loop-block is glass:
if {explosion::%loop-block%} is not set:
cancel event
set {explosion::%loop-block%} to 1
else:
if {explosion::%loop-block%} < 10:
cancel event
add 1 to {explosion::%loop-block%}
else:
clear {explosion::%loop-block%}
set loop-block to air
I am trying to make it so the glass block has to be blown up by 10 tnt blocks before it will break... The "if {block place::%location of loop-block%} is set:" is coming from the following:
Code:
on block place:
If lore of player's tool is "&r ||&8&l> &7Player Block":
set {blockplace::%event-location%} to player
Last edited: