Fix trapdoor side textures and orientations
Previously, opening a trapdoor caused the side textures to flip. Fix the incorrect textures. Also add a texture transform to a tile of the open trapdoor, such that the closed trapdoor sides use the lower part of the texture and the open trapdoor sides use the higher part. Clean up some codestyle issues.
This commit is contained in:
parent
f21bab2ff9
commit
5c48c76aa2
5 changed files with 27 additions and 11 deletions
|
@ -642,10 +642,14 @@ function doors.register_trapdoor(name, def)
|
|||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -6/16, 0.5}
|
||||
}
|
||||
def_closed.tiles = {def.tile_front,
|
||||
def.tile_front .. '^[transformFY',
|
||||
def.tile_side, def.tile_side,
|
||||
def.tile_side, def.tile_side}
|
||||
def_closed.tiles = {
|
||||
def.tile_front,
|
||||
def.tile_front .. '^[transformFY',
|
||||
def.tile_side,
|
||||
def.tile_side,
|
||||
def.tile_side,
|
||||
def.tile_side
|
||||
}
|
||||
|
||||
def_opened.node_box = {
|
||||
type = "fixed",
|
||||
|
@ -655,11 +659,14 @@ function doors.register_trapdoor(name, def)
|
|||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 6/16, 0.5, 0.5, 0.5}
|
||||
}
|
||||
def_opened.tiles = {def.tile_side, def.tile_side,
|
||||
def.tile_side .. '^[transform3',
|
||||
def.tile_side .. '^[transform1',
|
||||
def.tile_front .. '^[transform46',
|
||||
def.tile_front .. '^[transform6'}
|
||||
def_opened.tiles = {
|
||||
def.tile_side,
|
||||
def.tile_side .. '^[transform2',
|
||||
def.tile_side .. '^[transform3',
|
||||
def.tile_side .. '^[transform1',
|
||||
def.tile_front .. '^[transform46',
|
||||
def.tile_front .. '^[transform6'
|
||||
}
|
||||
|
||||
def_opened.drop = name_closed
|
||||
def_opened.groups.not_in_creative_inventory = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue