Jump to content

Factions - TNT-Destructible Obsidian


EnderEyeGames

Recommended Posts

With this skript, an explosion that does not occur in a liquid will damage obsidian. You can add other explosion-proof blocks if need be. A potato is used to check the damage of obsidian, just like CosmicPvP ages ago. Damage to obsidian regenerates on server restarts as it is metadata.

on explosion:
  block at entity is not water or lava
  loop blocks in radius 4 around entity:
    loop-block is obsidian
    loop-block has metadata "damage":
      metadata value "damage" of loop-block is "highly damaged":
        break loop-block using diamond pickaxe
      metadata value "damage" of loop-block is "moderately damaged":
        set metadata value "damage" of loop-block to "highly damaged"
      metadata value "damage" of loop-block is "slightly damaged":
        set metadata value "damage" of loop-block to "moderately damaged"
    loop-block does not have metadata "damage":
      set metadata value "damage" of loop-block to "slightly damaged"
on right click on obsidian with a potato:
  clicked block has metadata "damage":
    send "&aThis obsidian is &9%metadata value ""damage"" of clicked block%" to player
    stop
  send "&aThis obsidian is &9not damaged" to player

This enables the "air-bursting" method against water-protected obsidian. Obsidian will break if hit with four TNT. Other blocks, when water-protected, can be taken out with a sand or concrete cannon or a TNT-carrying flying machine.

Link to comment
Share on other sites

  • 2 months later...

Does this work with crying obsidian and blackstone? ALso which file does this need to be added to? Tried adding it to the factions config folder with no results, but I'm not a coder that was just my best guess of where to put it

selfplug rafyel.minehut.gg for some smpfactions yo

 

 

 

 

 

ss+(2020-08-10+at+11.46.22).jpg

ss+(2020-08-12+at+05.03.43).png

Link to comment
Share on other sites

Hey, it most likely doesn't work with crying obsidian and blackstone, anyways you need to install the skript plugin, restart the server and then go to file manager => plugins => skript => scripts, create a new file (which ends with .sk) and put that in it, then click on save and on the server type /sk reload <name>, then it should work 😃

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...