update test

This commit is contained in:
HybridDog
2013-06-11 19:25:16 +02:00
parent 2a3315e203
commit a2a22b0cf3
2 changed files with 56 additions and 25 deletions

View File

@ -246,6 +246,8 @@ minetest.register_node(":default:apple", {
inventory_image = "default_apple.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
@ -259,9 +261,14 @@ minetest.register_node(":default:apple", {
{-1.5/16, 1/16, .5/16, 0.5/16, 1.2/16, 2.5/16},
}
},
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(4),
groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1},
on_use = minetest.item_eat(1),
sounds = default.node_sound_defaults(),
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
minetest.env:set_node(pos, {name="default:apple", param2=1})
end
end,
})
@ -277,7 +284,7 @@ minetest.register_node("riesenpilz:"..name, {
walkable = false,
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=3,flammable=2},
groups = {snappy=3,flammable=2,attached_node=1},
sounds = default.node_sound_leaves_defaults(),
node_box = box,
selection_box = box,