Home›Java›Mods›TNT utilities (cooldown / auto ignit)
ModsJava

TNT utilities (cooldown / auto ignit)

⬇ Download on Spigot
Code:
Code (Text):
# Add a cooldown for tnt
on join:
    if {tnt.cooldown.%player%} is set:
        delete {arrow.cooldown.%player%}
on right click with tnt:
    if {tnt.cooldown.%player%} is set:
        cancel event
    else:
        if player's gamemode is not creative:
            set {tnt.cooldown.%player%} to true
            wait 0.19 seconds
            delete {tnt.cooldown.%player%}
# Auto ignit tnt
on place of tnt:
    # if tnt is named "_primed"
    if name of player's held item is "_primed":
        cancel event
        if player's gamemode is not creative:
            remove 1 tnt named "_primed" from player
        spawn primed tnt at event-location
    # if tnt contains lore "§cprimed" (&cprimed)
    if lore of player's held item contains "§cprimed":
        cancel event
        if player's gamemode is not creative:
            remove 1 tnt from player
        spawn primed tnt at event-location
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

TNT utilities (cooldown / auto ignit) is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 38 times (via Spigot). Download it and open it directly in the game.

Explore more