Trash can drop fix and pot recipe tweak

This commit is contained in:
kilbith 2015-05-15 22:58:12 +02:00
parent 142fce09a7
commit 45d1419478
2 changed files with 7 additions and 2 deletions

View File

@ -3329,6 +3329,11 @@ minetest.register_craft( {
} }
}) })
minetest.register_craft( {
output = "homedecor:flower_pot_small 3",
recipe = { { "homedecor:flower_pot_terracotta" } }
})
for i in ipairs(homedecor.banister_materials) do for i in ipairs(homedecor.banister_materials) do
local name = homedecor.banister_materials[i][1] local name = homedecor.banister_materials[i][1]

View File

@ -17,7 +17,6 @@ homedecor.register("trash_can_green", {
on_punch = function(pos, node, puncher, pointed_thing) on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2}) minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2})
end end
}) })
homedecor.register("trash_can_green_open", { homedecor.register("trash_can_green_open", {
@ -27,6 +26,7 @@ homedecor.register("trash_can_green_open", {
groups = {snappy=3, not_in_creative_inventory=1}, groups = {snappy=3, not_in_creative_inventory=1},
selection_box = tg_cbox, selection_box = tg_cbox,
collision_box = tg_cbox, collision_box = tg_cbox,
drop = "homedecor:trash_can_green",
on_punch = function(pos, node, puncher, pointed_thing) on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2}) minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2})
end, end,
@ -65,7 +65,7 @@ homedecor.register("trash_can_green_open", {
inv:set_list("main", {}) inv:set_list("main", {})
minetest.sound_play("homedecor_trash_all", {to_player=sender:get_player_name(), gain = 1.0}) minetest.sound_play("homedecor_trash_all", {to_player=sender:get_player_name(), gain = 1.0})
end end
end, end
}) })
local trash_cbox = { local trash_cbox = {