Bedwars TNT glass problem

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Zackwall

New Member
Apr 21, 2022
9
0
1
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:
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
 
Status
Not open for further replies.