Explosion's

  • 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.

BryHunter

Member
Jan 10, 2018
35
2
8
27
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:
Status
Not open for further replies.