[Mod] Node Damage and Repair System [node_damage]

Post Reply
User avatar
Noodlemire
Member
Posts: 39
Joined: Sun May 27, 2018 00:07
GitHub: Noodlemire
In-game: Noodlemire

[Mod] Node Damage and Repair System [node_damage]

by Noodlemire » Post

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.
+Screenshot
Dependencies: none
Optional dependencies: tnt
Repository: https://github.com/Noodlemire/node_damage
Liscense: LGPL 2.1, https://github.com/Noodlemire/node_damage/blob/master/LICENSE.txt
Download: https://mega.nz/file/P3oj0DQB#BTsj-ILZUDnCT5QOXk2PtjLhHw8BSz0wCiFHQAzLLIQ

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests