TNT Revamped

Overrides the TNT mod to make it more like mc TNT.

Tools / Weapons / Armor

Download (10 KB)

How do I install this?

TNT

Fork of TNT mod

This mod will also override the default TNT mod.

water flow code copied from TenPlus1's builtin_item mod builtin_item

Features

  1. TNT is always entity on ignite.

  2. Ignited TNT entities flow in water.

  3. TNT jumps on ignite.

  4. It is possible to make minecraft style TNT cannons with this mod.

  5. TNT does not damage nodes if it blows up in water. (This can be changed in config)

  6. TNT does not damage players or entities if it blows up in water. (This can be changed in config)

api

tnt.register_tnt({
    -- Mod name : TNT name
    name = "tnt:tnt",
    -- Description of TNT node
    description = "TNT",
    -- TNT Blast radius.
    radius = tnt_radius,
    -- Strength of blast (explosions mod only).
    strength = 1000,
    -- explosion delay in seconds.
    time = 4,
    -- On ignite the TNT will jump upwards based on the jump value.
    jump = 3,
    -- Ignite sound effect.
    ignite_sound = {name = "tnt_ignite"},
    -- The explosion sound effect.
    boom_sound = {name = "tnt_explode", def = {gain = 2.5, max_hear_distance = 128}}
})

Config

The size of the default tnt blast.

tnt_radius = 3

The number to multiply how much knock back on another TNT entity.

tnt_revamped.tnt_entity_velocity_mul = 2

The number to multiply how much knock back on a player.

tnt_revamped.player_velocity_mul = 10

The number to multiply how much knock back on a entity.

tnt_revamped.entity_velocity_mul = 10

The explosion api to use.

Use default for the built-in explosions.

Use explosions for ryvnf's explosions mod.

tnt_revamped.explosion = "default"

In Water

If true TNT blast will be able to damage nodes even if its in water.

tnt_revamped.damage_nodes = false

If true TNT blast will be able to damage entities even if its in water.

tnt_revamped.damage_entities = false

Reviews

Review

Do you recommend this mod?

Used By