Fix chests rotatable in-game
parent
2659e77db9
commit
6579b56974
|
@ -21,7 +21,7 @@ local register_chest = function(id, def)
|
||||||
description = def.description_unlocked,
|
description = def.description_unlocked,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front },
|
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front },
|
||||||
groups = { breakable = 1, chest = 1, chest_closed = 1, rotatable = 1 },
|
groups = { breakable = 1, chest = 1, chest_closed = 1, rotatable = 3 },
|
||||||
sounds = def.node_sounds,
|
sounds = def.node_sounds,
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
|
@ -40,7 +40,7 @@ local register_chest = function(id, def)
|
||||||
description = def.description_locked,
|
description = def.description_locked,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front_lock },
|
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front_lock },
|
||||||
groups = { breakable = 1, chest = 2, chest_closed = 1, rotatable = 1 },
|
groups = { breakable = 1, chest = 2, chest_closed = 1, rotatable = 3 },
|
||||||
sounds = def.node_sounds,
|
sounds = def.node_sounds,
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
|
@ -80,7 +80,7 @@ local register_chest = function(id, def)
|
||||||
},
|
},
|
||||||
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front },
|
tiles = { def.tile_top, def.tile_bottom, def.tile_side, def.tile_side, def.tile_side, def.tile_front },
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = { breakable = 1, chest = 3, chest_open = 1, rotatable = 1 },
|
groups = { breakable = 1, chest = 3, chest_open = 1, rotatable = 3 },
|
||||||
sounds = def.node_sounds,
|
sounds = def.node_sounds,
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
})
|
})
|
||||||
|
@ -146,7 +146,7 @@ local register_chest = function(id, def)
|
||||||
minetest.set_node(pos, {name="lzr_treasure:chest_"..id.."_open", param2=node.param2})
|
minetest.set_node(pos, {name="lzr_treasure:chest_"..id.."_open", param2=node.param2})
|
||||||
end,
|
end,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = { breakable = 1, chest = 4, chest_open = 1, rotatable = 1, },
|
groups = { breakable = 1, chest = 4, chest_open = 1, rotatable = 3, },
|
||||||
sounds = sounds_open_treasure,
|
sounds = sounds_open_treasure,
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue