Page 1 of 1

Getting all textures and item definitions

PostPosted: Thu Jan 16, 2014 18:11
by markveidemanis
*

PostPosted: Thu Jan 16, 2014 18:37
by PilzAdam
Something like this would work (after all mods have reigstered their items):
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
local textures = {}
for name,def in pairs(minetest.registered_nodes) do
    textures[name] = {def.textures[1], def.textures[3] or def.textures[1]}
end

PostPosted: Sun Feb 02, 2014 19:09
by RealBadAngel