Closed Taose closed 7 years ago
Sorry, I'm not inclined to merge this.
The inspector
mod is purely a thing I use to debug writing mods and code for minetest_game
, and should never be present on a server that is in production. It's not even safe - you can easily crash your server with this mod.
At the moment it looks like a pure debug tool, which is great, but I feel it could be useful in game particularly when looking at different nodes without taking in some of the more bulky mods.
What I propose adding here, is a permissions check, which if it doesn't pass it gives the basic information (the name and light status currently) if it does (and it requires the debug permission) then all the metadata will also be dumped.
Aside from that I've also added in a crafting recipe so that it can be created by players. Given what information it reveals, I've made the recipe quite basic.