farming - make apples 3d backporting the 3d_apples mod

This commit is contained in:
mckaygerhard 2023-06-07 17:21:20 -04:00
parent 115c85ce40
commit aa9f63cb3f
4 changed files with 25 additions and 0 deletions

View File

@ -10,7 +10,32 @@ end
--= Overrides (add food_* group to apple and brown mushroom) --= Overrides (add food_* group to apple and brown mushroom)
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", { 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",
},
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2, groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1} leafdecay = 3, leafdecay_drop = 1}
}) })

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B