Created
July 28, 2020 02:32
-
-
Save IceDragon200/f5c4e364ea507d30360bbb8e5380c817 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function dump_nodes() | |
-- Export all node names to a text file for review | |
print("Exporting Nodes") | |
local i = 0 | |
local result = {} | |
for name, _def in pairs(minetest.registered_nodes) do | |
i = i + 1 | |
result[i] = name | |
end | |
minetest.safe_file_write(minetest.get_worldpath() .. "/exported_nodes.txt", table.concat(result, "\n")) | |
print("Exported Nodes count=" .. i) | |
end | |
minetest.register_on_mods_loaded(function () | |
dump_nodes() | |
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = node_dump | |
description = Dumps all registered nodes to a text file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment