...one thing I haven't found among those mods is an explosives mod--though, maybe I didn't look hard enough :P . This repository is my attempt at making one:
https://github.com/Grissess/minetest_explosives
Of course, it's not really anywhere near completion; I'm still looking to develop the code further, and (on that note) I have some questions:
- How much would you be interested in this? What would I have to do to make this interesting?
- I'd like to think the current recursive algorithm is better than Minecraft's supposed ray-casting algorithm, but I'm not sure about it. In any case, it has the unfortunate side effect that explosions can tunnel around obstacles. Does anyone know how to efficiently prevent this in a recursion stack like this?
- How might one go about making the TNT entity physically realistic? The physical=true parameter doesn't appear to prevent interpenetration at all, and I'm currently using a cheap trick from builtin/item_entity.lua. Perhaps I'm confusing the setvelocity/setacceleration interfaces with something that would permit more physical behavior?
- The implementation of on_blast, right now, does not specify a required return. I'm thinking about making the return value have the same interpretation as modfunc's return: the resultant blast power after propagating through this block (like blast_resistance). nil would imply the default resistance. Thoughts?
- Would anyone care to help with textures? That's the most dreadful part of this process, so I've learned--you might be able to tell :P
Thanks in advance :D