[SOLVED] First Mod - List all available nodes
Hello everybody,
Today i make my first mod to test development MineTest. Il want to do a mod that lists all available nodes on game via mintetest.registered_nodes but it does not work...
I fallowed the exemples on this topic... https://forum.minetest.net/viewtopic.php?f=9&t=11294
List all :
Nothing...
Or display count :
I do not have the lua file available, I send later.
Thx.
Today i make my first mod to test development MineTest. Il want to do a mod that lists all available nodes on game via mintetest.registered_nodes but it does not work...
I fallowed the exemples on this topic... https://forum.minetest.net/viewtopic.php?f=9&t=11294
List all :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
for key, value in pairs(minetest.registered_nodes) do
minetest.debug("Node " .. key)
end
Nothing...
Or display count :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.debug("Count " ..table.getn( minetest.registered_nodes))
Count 0
I do not have the lua file available, I send later.
Thx.