Skip to content

Commit 322967d

Browse files
sofarparamat
authored andcommittedJan 20, 2016
Better trapdoor side appearance.
We're using a normal wooden side texture to draw the sides of trapdoors. But the side textures have only 2 edges that have a nice texture for the 2px wide trapdoor. We can either repaint the textures, or just rotate the texture properly for the two sides that need it. Because the side texture for wooden doors was just a default:wood texture, it clashes with the colors in the trapdoor, and so we add a wooden trapdoor-matching tile side texture as well. This also improves the steel trapdoor side, but without a texture change there since that was already a specially drawn texture for that node. We also increase the thickness of the trapdoor to 2px. Right now the model is 0.4 large, but this causes the side textures to look odd as there's a mismatch in pixel size. By scaling the trapdoor side up to exactly 2px, the sides look natural. Thanks to @kilbith for the suggestion.
1 parent f413141 commit 322967d

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed
 

‎mods/doors/README.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ following Textures created by BlockMen (WTFPL):
2828
door_obsidian_glass_side.png
2929

3030
following textures created by celeron55 (CC BY-SA 3.0):
31-
door_trapdoor_side.png
3231
door_glass_a.png
3332
door_glass_b.png
3433

3534
following Textures created by PenguinDad (CC BY-SA 4.0):
3635
door_glass.png
3736
door_obsidian_glass.png
3837

39-
Steel trapdoor textures by sofar (CC-BY-SA-3.0)
38+
following textures created by sofar (CC-BY-SA-3.0)
4039
doors_trapdoor_steel.png
4140
doors_trapdoor_steel_side.png
41+
door_trapdoor_side.png
4242

4343
All other textures (created by PilzAdam): WTFPL
4444

‎mods/doors/init.lua

+9-6
Original file line numberDiff line numberDiff line change
@@ -474,25 +474,28 @@ function doors.register_trapdoor(name, def)
474474

475475
def_closed.node_box = {
476476
type = "fixed",
477-
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
477+
fixed = {-0.5, -0.5, -0.5, 0.5, -6/16, 0.5}
478478
}
479479
def_closed.selection_box = {
480480
type = "fixed",
481-
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
481+
fixed = {-0.5, -0.5, -0.5, 0.5, -6/16, 0.5}
482482
}
483483
def_closed.tiles = { def.tile_front, def.tile_front, def.tile_side, def.tile_side,
484484
def.tile_side, def.tile_side }
485485

486486
def_opened.node_box = {
487487
type = "fixed",
488-
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5}
488+
fixed = {-0.5, -0.5, 6/16, 0.5, 0.5, 0.5}
489489
}
490490
def_opened.selection_box = {
491491
type = "fixed",
492-
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5}
492+
fixed = {-0.5, -0.5, 6/16, 0.5, 0.5, 0.5}
493493
}
494-
def_opened.tiles = { def.tile_side, def.tile_side, def.tile_side, def.tile_side,
495-
def.tile_front, def.tile_front }
494+
def_opened.tiles = { def.tile_side, def.tile_side,
495+
def.tile_side .. '^[transform3',
496+
def.tile_side .. '^[transform1',
497+
def.tile_front, def.tile_front }
498+
496499
def_opened.drop = name_closed
497500
def_opened.groups.not_in_creative_inventory = 1
498501

60 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.