Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getallitems = function()
- local textures = {}
- for name,def in pairs(minetest.registered_nodes) do
- textures[name] = def.tiles
- print(dump(textures[name]))
- end
- end
- minetest.register_chatcommand("items", {
- params = "",
- description = "List all items",
- privs = {server=true},
- func = function(name, param)
- getallitems()
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment