Guest User

Untitled

a guest
Feb 2nd, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. getallitems = function()
  2. local textures = {}
  3. for name,def in pairs(minetest.registered_nodes) do
  4. textures[name] = def.tiles
  5. print(dump(textures[name]))
  6. end
  7. end
  8.  
  9. minetest.register_chatcommand("items", {
  10. params = "",
  11. description = "List all items",
  12. privs = {server=true},
  13. func = function(name, param)
  14. getallitems()
  15. end,
  16. })
Advertisement
Add Comment
Please, Sign In to add comment