From d8b13f420d2c24cfab50e066620d0c235033460e Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 7 Jun 2023 17:17:35 -0400 Subject: [PATCH] farming - make apples 3d backporting the 3d apples --- mods/farming/init.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mods/farming/init.lua b/mods/farming/init.lua index fff48fa..f942cfb 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -137,3 +137,31 @@ minetest.register_craft({ recipe = "farming:hoe_wood", burntime = 5, }) + +local box = { + type = "fixed", + fixed = { + {-0.1875, -0.4375, -0.1875, 0.1875, 0.0625, 0.1875}, -- Bottom + {-0.25, -0.375, -0.25, 0.25, 0, 0.25}, -- Middle + -- {-0.1875, 0.0625, -0.1875, 0.1875, 0, 0.1875}, -- Top + {-0.0625, 0.0625, -0.0625, 0, 0.125, 0}, -- NodeBox4 + {0.0625, 0.0625, 0.0625, 0, 0.125, 0}, -- NodeBox5 + {0.0625, 0.125, -0.0625, 0, 0.1875, 0}, -- NodeBox4 + {-0.0625, 0.125, 0.0625, 0, 0.1875, 0}, -- NodeBox5 + } + } + +minetest.override_item("default:apple",{ + drawtype = "nodebox", + paramtype = "light", + node_box = box, + selection_box = box, + tiles = { -- +Y, -Y, +X, -X, +Z, -Z + "apple_bottom.png^apple_top_overlay.png", + "apple_bottom.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", + }, +})