[Mod] Improved/redone TNT [tnt]

SpaghettiToastBook
Member
 
Posts: 15
Joined: Sun Feb 22, 2015 21:11

[Mod] Improved/redone TNT [tnt]

by SpaghettiToastBook » Sun Apr 05, 2015 23:16

This is a redone version of the TNT mod included in minetest_game with the following new things:
  • A public API -- tnt.boom (full explosion, with or without drops), tnt.explode (just the destruction of nodes; no other effects), tnt.destroy (destroy a node in an explody way), and tnt.ignite (ignite a node) are available. The default explosion radius can also be changed through tnt.DEFAULT_RADIUS.
  • Nodes in the immortal group won't be destroyed.
  • Support for on_blast -- on_blast is called if a node defines it instead of removing the node. The code for this was taken from Wuzzy's fork for this of minetest_game. (I hope that's alright.)
  • Support for on_ignite in node definitions. This defines what should happen when a node is ignited by gunpowder (or anything else that uses tnt.ignite).
  • Support for the ignitible group -- anything in this group is automatically ignited by things in the igniter group (such as lava and fire).
  • Some changed behavior -- TNT now explodes when hit by an explosion, for instance.
  • Finally, there's a new explosive -- Nitro! It's crafted by surrounding TNT with gunpowder in a + shape. It has a larger blast radius than TNT, and there's no way to get rid of it without it exploding when it's placed, so be careful!

Dependencies: default and fire
License (code and textures): WTFPL

Download
Mercurial repository
 

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 4 guests

cron