farming - make apples 3d backporting the 3d_apples mod
This commit is contained in:
parent
115c85ce40
commit
aa9f63cb3f
@ -10,7 +10,32 @@ end
|
||||
|
||||
--= 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", {
|
||||
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,
|
||||
leafdecay = 3, leafdecay_drop = 1}
|
||||
})
|
||||
|
BIN
mods/farming/textures/apple_bottom.png
Normal file
BIN
mods/farming/textures/apple_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 695 B |
BIN
mods/farming/textures/apple_side.png
Normal file
BIN
mods/farming/textures/apple_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
mods/farming/textures/apple_top_overlay.png
Normal file
BIN
mods/farming/textures/apple_top_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 531 B |
Loading…
x
Reference in New Issue
Block a user