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,14 +154,25 @@ local box = {
|
||||
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",
|
||||
"apple_bottom.png^apple_top_overlay.png",
|
||||
"apple_bottom.png",
|
||||
"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