forked from nalc/homedecor_modpack
Trash can drop fix and pot recipe tweak
This commit is contained in:
parent
142fce09a7
commit
45d1419478
|
@ -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
|
||||
|
||||
local name = homedecor.banister_materials[i][1]
|
||||
|
|
|
@ -17,7 +17,6 @@ homedecor.register("trash_can_green", {
|
|||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2})
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
homedecor.register("trash_can_green_open", {
|
||||
|
@ -27,6 +26,7 @@ homedecor.register("trash_can_green_open", {
|
|||
groups = {snappy=3, not_in_creative_inventory=1},
|
||||
selection_box = tg_cbox,
|
||||
collision_box = tg_cbox,
|
||||
drop = "homedecor:trash_can_green",
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2})
|
||||
end,
|
||||
|
@ -65,7 +65,7 @@ homedecor.register("trash_can_green_open", {
|
|||
inv:set_list("main", {})
|
||||
minetest.sound_play("homedecor_trash_all", {to_player=sender:get_player_name(), gain = 1.0})
|
||||
end
|
||||
end,
|
||||
end
|
||||
})
|
||||
|
||||
local trash_cbox = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user