Fix chests rotatable in-game
parent
2659e77db9
commit
6579b56974
|
@ -21,7 +21,7 @@ local register_chest = function(id, def)
|
|||
description = def.description_unlocked,
|
||||
paramtype2 = "facedir",
|
||||
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,
|
||||
on_rotate = screwdriver.rotate_simple,
|
||||
on_punch = function(pos, node, puncher)
|
||||
|
@ -40,7 +40,7 @@ local register_chest = function(id, def)
|
|||
description = def.description_locked,
|
||||
paramtype2 = "facedir",
|
||||
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,
|
||||
on_rotate = screwdriver.rotate_simple,
|
||||
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 },
|
||||
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,
|
||||
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})
|
||||
end,
|
||||
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,
|
||||
on_rotate = screwdriver.rotate_simple,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue