I'm trying to create a TNT just like the one in Hypixel bedwars the problem is that when I place TNT on top of a glass and below the glass is wool or any other explodable block the block would break, in Hypixel bedwars that's not the case. could anyone help me?
here's my code:
here's my code:
Code:
on explosion:
cancel event
create a safe explosion of force 3.8 at event-location
loop exploded blocks:
if loop-block is not glass or any bed:
set loop-block to air
if loop-block is TNT:
set loop-block to air
spawn a primed TNT at the loop-block's location
push last spawned entity direction from event-location to last spawned entity with force 1