Cahrs / w_api

Adds a melee weapons api for more advanced/deep combat within Minetest
MIT License
4 stars 0 forks source link

Make it work on nodes too #3

Open tacotexmex opened 5 years ago

tacotexmex commented 5 years ago

I imagine that the raycast functionality can be used on nodes too. Think of tools with raycast-based impact, like slicing rifts in softer nodes.

Cahrs commented 5 years ago

Yes its entirely possible, the problem is how should it be done? You would no longer be able to use the default node-mining system. Perhaps using metadata each swing could damage a node based on the nodes and tools properties and write the dmg change to meta (and destroying the block when reaching a threshold)?