Include tile definitions in get_node_def; Client-side minetest.object_refs table

This commit is contained in:
Elias Fleckenstein
2021-05-11 14:07:30 +02:00
parent c86dcd0f68
commit 4f613bbf51
15 changed files with 213 additions and 43 deletions

View File

@@ -15,15 +15,6 @@ end
-- Item definition helpers
--
function core.inventorycube(img1, img2, img3)
img2 = img2 or img1
img3 = img3 or img1
return "[inventorycube"
.. "{" .. img1:gsub("%^", "&")
.. "{" .. img2:gsub("%^", "&")
.. "{" .. img3:gsub("%^", "&")
end
function core.dir_to_facedir(dir, is6d)
--account for y if requested
if is6d and math.abs(dir.y) > math.abs(dir.x) and math.abs(dir.y) > math.abs(dir.z) then