Page 1 of 1

Code Help

PostPosted: Tue Apr 02, 2013 01:56
by jojoa1997
Can someone make a batch file that searches the entire directory it is in and find all the node names in minetest.register_node, minetest.register_tool, minetest.register_craftitem. Also could you make it make a file and save all the nodes like ("<prefixe>:<node name>") without the ().Thanks in advance. This can also be done in a lua mod maybe?

PostPosted: Tue Apr 02, 2013 03:06
by prestidigitator
Might be easier to do from a mod. Iterate through minetest.registered_nodes, etc. and filter on a "modname:" prefix for the mod you are interested in. If you really need to do it by directory instead it would be a relatively complex piece of logic, especially because not every call to minetest.register_node(...) uses a string literal (many mods do it in batches and compute the name of the node).

PostPosted: Tue Apr 02, 2013 03:12
by jojoa1997
ok can someone make a mod for that
i have tried and failed with lua to do that