1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

inventorycube: use all three specified textures; also moved mesh creation / modification functions to mesh.cpp; in lua, inventorycube is now called minetest.inventorycube

This commit is contained in:
Kahrl 2011-12-03 08:40:32 +01:00 committed by Perttu Ahola
parent 275a348b75
commit 392485aa45
12 changed files with 517 additions and 375 deletions

View file

@ -303,6 +303,19 @@ function test_stackstring()
end
test_stackstring()
--
-- nodeitem helpers
--
minetest.inventorycube = function(img1, img2, img3)
img2 = img2 or img1
img3 = img3 or img1
return "[inventorycube"
.. "{" .. img1:gsub("%^", "&")
.. "{" .. img2:gsub("%^", "&")
.. "{" .. img3:gsub("%^", "&")
end
--
-- craftitem helpers
--