Jump to content

Instant Tnt Skript


YTHmr_Abood

Recommended Posts

A simple skript that summons tnt once the block has been right clicked!

on place of tnt: #Makes the skript function  when a player places a tnt
    send action bar "&4T&cN&4T &aHas Spawned!" to player #You can remove this. This just sends a message to the player that the tnt has been placed 
    set block at event-location to air #This part removes the tnt that has been placed
    spawn a primed tnt at event-location #After the block of tnt has been turned into air the skript execute this command to summon a primed tnt at the block
    cancel event #This will cancel the tnt placment 
    remove 1 tnt from player #This will make sure that the players tnt will be removed (Remove this part if you want to make it infinite tnt)
    
command /tnt:
    trigger:
        give player tnt named "&cInstant &4&lT&c&lN&4&lT" with lore "&e&l(&aRight Click to summon tnt&e&l)" 

 

----------------------------------------------------------------------------------------------------------------------------------------------

If you want the tnt to not damage the blocks just put this

            
on explode:
    cancel event

Edited by YTHmr_Abood
Link to comment
Share on other sites

  • YTHmr_Abood changed the title to Instant Tnt Skript

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