farming - 3d_apple : backported the try to fix undesired behaviour..
* https://github.com/C-C-Minetest-Server/3d_apple/issues/2
* https://github.com/C-C-Minetest-Server/3d_apple/issues/3
* backported bf48dbd72f
* i cannot found the way to made the node non buildable
without using the drawtype = "planlike" unless we can provide
another parameter to selection_box or `on_use`
i did `on_use = minetest.item_eat(2)` but still when make
such action just dig in the ground
This commit is contained in:
parent
a166238b7d
commit
2f9a385fc5
@ -154,8 +154,6 @@ local box = {
|
|||||||
minetest.override_item("default:apple",{
|
minetest.override_item("default:apple",{
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
node_box = box,
|
|
||||||
selection_box = box,
|
|
||||||
tiles = { -- +Y, -Y, +X, -X, +Z, -Z
|
tiles = { -- +Y, -Y, +X, -X, +Z, -Z
|
||||||
"apple_bottom.png^apple_top_overlay.png",
|
"apple_bottom.png^apple_top_overlay.png",
|
||||||
"apple_bottom.png",
|
"apple_bottom.png",
|
||||||
@ -164,4 +162,17 @@ minetest.override_item("default:apple",{
|
|||||||
"apple_side.png",
|
"apple_side.png",
|
||||||
"apple_side.png",
|
"apple_side.png",
|
||||||
},
|
},
|
||||||
|
node_box = box,
|
||||||
|
inventory_image = "default_apple.png",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
walkable = false,
|
||||||
|
is_ground_content = false,
|
||||||
|
selection_box = box,
|
||||||
|
groups = {fleshy = 3, dig_immediate = 3, flammable = 2, leafdecay = 3, leafdecay_drop = 1},
|
||||||
|
on_use = minetest.item_eat(2),
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
minetest.set_node(pos, {name = "default:apple", param2 = 1})
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user