Page 1 of 1

Improved TNT Mod

PostPosted: Fri Feb 05, 2016 11:28
by EthanD57
Hey guys,

I'm trying to re-write the tnt mod in minetest_game to allow my brother to build a TNT cannon, but I've gotten stuck. According to everything I've read, a TNT cannon in Minecraft is based on two things:

1. That when TNT is in water, it won't destroy blocks, but will throw around entities. This is probably easy to add but I don't know how.
2. That TNT, when lit, becomes an entity. I've managed half of this. TNT does become an entity, but at the same time I create another (preferably invisible, but that won't work either) node at the TNT's location. The node explodes after a few seconds, the entity launches itself as far as it can.

I'll post what I've done so far for you to look at, it'd be great if you could give me a few pointers or show me another mod.

Thanks,
EthanD57

https://drive.google.com/file/d/0Bx5AqMqZu7eJTDV2WDFhWjZwZjg/view?usp=sharing

Re: Improved TNT Mod

PostPosted: Fri Feb 05, 2016 13:26
by DS-minetest
use nuke mod

Re: Improved TNT Mod

PostPosted: Fri Feb 05, 2016 15:59
by EthanD57
Thanks, the nuke mod worked! (Unfortunately for my castle...)

Re: Improved TNT Mod

PostPosted: Fri Feb 05, 2016 17:25
by red-001
add an empty on_blast callback to default:water_source and default:water_flowing.
Water will stop being damaged by tnt.