diff options
Diffstat (limited to 'data/builtin.lua')
-rw-r--r-- | data/builtin.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/builtin.lua b/data/builtin.lua index a9412a97d..5d6936d61 100644 --- a/data/builtin.lua +++ b/data/builtin.lua @@ -304,6 +304,19 @@ 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 -- |