Node Damage

Enables nodes to be partially damaged, and to be repaired afterwards.

API / Library

Download (1.1 MB)
For Minetest 5.3 and above

How do I install this?

This is an API mod that enables nodes to be damaged and repaired. The damage level is persistent until repairs occur, and shows itself through cracks on the node. Other than when a node isn't damaged at all, there are three levels of damage that the node can go through before being destroyed.

On its own, this mod doesn't do much. It adds a testing hammer to the creative inventory which can damage nodes on left-click, and repair nodes on right-click, to give a feel for how this mod works. Also, if the tnt mod is enabled, explosions from regular tnt blocks will damage nodes that are just outside of the destruction radius.

In order to register cracked versions of all applicable nodes without using a million optional dependencies, this mod first queries existing nodes when it is loaded, and saves the names of every node. You must then reload the world for the mod to register cracked versions of the nodes it found. It will also detect when new nodes have been added to the game which weren't included before, meaning that their nodes'll also only be crackable the second time they're loaded.

If you're a modder interested in this premise, you can see the short api.txt included with the mod.



Do you recommend this mod?

  • No reviews, yet.

Used By