Instant explode TnT

  • 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.
Please start to use the doc.

code_language.skript:
on damage:
    damage cause is block explosion:
        cancel the event
 
I do but its confusing, one last question. How do i edit the blast radius?
 
You can't edit it but you can take the size of it.

code_language.skript:
on explosion:
    if blast radius of event-entity is greater than or equal to 4:
        message "An explosion has occured nearby!" to players in radius 20 of event-entity
 
Can't test rn but this should work
code_language.skript:
on place of TNT:
    cancel the event
    remove 1 TNT from player's inventory
    spawn 1 creeper at event-location
    console command "/gamerule MobGriefing false"
    set fuse time of the last spawned creeper to 0
    console command "/gamerule MobGriefing true"
[doublepost=1501544788,1501544696][/doublepost]Wow Yosh, you always beat me to it lol
 
Wait, How Do I make the tnt send the player upwards?

CODE:
code_language.skript:
on place of TNT:
    name of player's tool is "&cExplosive TNT &7(Right Click)":
        cancel the event
        remove 1 TNT named "&cExplosive TNT &7(Right Click)" from player's inventory
        create a safe explosion with force 2 at event-location
        push the player upwards at speed 0.5
        set fuse time of the last spawned primed TNT to 0
 
Status
Not open for further replies.