Exploding a certain block changes it to another.

  • 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 community!

    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.

iivigster

Member
Aug 22, 2021
1
0
1
I have just started using skript and am trying to make a factions server. I am making defense blocks that can only be exploded by tnt. Based off the level of the block that is how much tnt it needs to be destroyed. Level one is one tnt level two is two tnt and so on. I think I need to use loops and try to replace that block with another. My idea was to have level 2 be gold and level 1 be iron. I have:


on explode:
loop exploded blocks:
Add location of loop-block to {_locs::*} if type of loop-block is iron block
loop {_locs::*}
Set block at loop-value to gold block


I need to fix it up a bit but are there any improvements I could use?
Thanks in advance.
 
Status
Not open for further replies.