1. 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!


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bedwars TNT glass problem

Discussion in 'Skript' started by Zackwall, Jun 5, 2022.

Thread Status:
Not open for further replies.
  1. Zackwall

    Zackwall New Member

    Apr 21, 2022
    Likes Received:
    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 (Text):
    1. on explosion:
    2.     cancel event
    3.     create a safe explosion of force 3.8 at event-location
    4.     loop exploded blocks:
    5.         if loop-block is not glass or any bed:
    6.             set loop-block to air
    7.         if loop-block is TNT:
    8.             set loop-block to air
    9.             spawn a primed TNT at the loop-block's location
    10.             push last spawned entity direction from event-location to last spawned entity with force 1
Thread Status:
Not open for further replies.

Share This Page