Draw proper trapdoor side textures

This commit is contained in:
Wuzzy 2017-12-08 13:38:38 +01:00
parent 681c2950fd
commit 85442e7ce5
10 changed files with 14 additions and 12 deletions

@ -82,8 +82,8 @@ function mcl_doors:register_trapdoor(name, def)
local tiles_closed = {
tile_front,
tile_front .. "^[transformFY",
tile_side .. "^[transform6", tile_side .. "^[transform6",
tile_side .. "^[transform6", tile_side .. "^[transform6",
tile_side, tile_side,
tile_side, tile_side,
}
local groups_closed = groups

@ -204,12 +204,12 @@ minetest.register_craft({
--[[ Trapdoors ]]
local woods = {
-- id, desc, texture, craftitem
{ "trapdoor", "Oak Trapdoor", "doors_trapdoor.png", "mcl_core:wood" },
{ "acacia_trapdoor", "Acacia Trapdoor", "mcl_doors_trapdoor_acacia.png", "mcl_core:acaciawood" },
{ "birch_trapdoor", "Birch Trapdoor", "mcl_doors_trapdoor_birch.png", "mcl_core:birchwood" },
{ "spruce_trapdoor", "Spruce Trapdoor", "mcl_doors_trapdoor_spruce.png", "mcl_core:sprucewood" },
{ "dark_oak_trapdoor", "Dark Oak Trapdoor", "mcl_doors_trapdoor_dark_oak.png", "mcl_core:darkwood" },
{ "jungle_trapdoor", "Jungle Trapdoor", "mcl_doors_trapdoor_jungle.png", "mcl_core:junglewood" },
{ "trapdoor", "Oak Trapdoor", "doors_trapdoor.png", "doors_trapdoor_side.png", "mcl_core:wood" },
{ "acacia_trapdoor", "Acacia Trapdoor", "mcl_doors_trapdoor_acacia.png", "mcl_doors_trapdoor_acacia_side.png", "mcl_core:acaciawood" },
{ "birch_trapdoor", "Birch Trapdoor", "mcl_doors_trapdoor_birch.png", "mcl_doors_trapdoor_birch_side.png", "mcl_core:birchwood" },
{ "spruce_trapdoor", "Spruce Trapdoor", "mcl_doors_trapdoor_spruce.png", "mcl_doors_trapdoor_spruce_side.png", "mcl_core:sprucewood" },
{ "dark_oak_trapdoor", "Dark Oak Trapdoor", "mcl_doors_trapdoor_dark_oak.png", "mcl_doors_trapdoor_dark_oak_side.png", "mcl_core:darkwood" },
{ "jungle_trapdoor", "Jungle Trapdoor", "mcl_doors_trapdoor_jungle.png", "mcl_doors_trapdoor_jungle_side.png", "mcl_core:junglewood" },
}
for w=1, #woods do
@ -218,7 +218,7 @@ for w=1, #woods do
_doc_items_longdesc = "Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder.",
_doc_items_usagehelp = "To open or close the trapdoor, rightclick it or send a redstone signal to it.",
tile_front = woods[w][3],
tile_side = woods[w][3],
tile_side = woods[w][4],
wield_image = woods[w][3],
groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1},
_mcl_hardness = 3,
@ -229,8 +229,8 @@ for w=1, #woods do
minetest.register_craft({
output = "mcl_doors:"..woods[w][1].." 2",
recipe = {
{woods[w][4], woods[w][4], woods[w][4]},
{woods[w][4], woods[w][4], woods[w][4]},
{woods[w][5], woods[w][5], woods[w][5]},
{woods[w][5], woods[w][5], woods[w][5]},
}
})
@ -245,7 +245,7 @@ mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", {
description = "Iron Trapdoor",
_doc_items_longdesc = "Iron trapdoors are horizontal barriers which can only be opened and closed by redstone signals, but not by hand. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder.",
tile_front = "doors_trapdoor_steel.png",
tile_side = "doors_trapdoor_steel.png",
tile_side = "doors_trapdoor_steel_side.png",
wield_image = "doors_trapdoor_steel.png",
groups = {pickaxey=1, mesecon_effector_on=1},
_mcl_hardness = 5,

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

@ -292,7 +292,9 @@ Source path,Source file,Target path,Target file,xs,ys,xl,yl,xt,yt,Blacklisted?
/assets/minecraft/textures/blocks,door_wood_upper.png,/mods/ITEMS/mcl_doors/textures,mcl_doors_door_wood_upper.png,,,,,,,
/assets/minecraft/textures/blocks,door_wood_upper.png,/mods/ITEMS/mcl_doors/textures,mcl_doors_door_wood_side_upper.png,,,,,,,
/assets/minecraft/textures/blocks,trapdoor.png,/mods/ITEMS/mcl_doors/textures,doors_trapdoor.png,,,,,,,
/assets/minecraft/textures/blocks,trapdoor.png,/mods/ITEMS/mcl_doors/textures,doors_trapdoor_side.png,,,,,,,
/assets/minecraft/textures/blocks,iron_trapdoor.png,/mods/ITEMS/mcl_doors/textures,doors_trapdoor_steel.png,,,,,,,
/assets/minecraft/textures/blocks,iron_trapdoor.png,/mods/ITEMS/mcl_doors/textures,doors_trapdoor_steel_side.png,,,,,,,
/assets/minecraft/textures/items,door_acacia.png,/mods/ITEMS/mcl_doors/textures,mcl_doors_door_acacia.png,,,,,,,
/assets/minecraft/textures/items,door_birch.png,/mods/ITEMS/mcl_doors/textures,mcl_doors_door_birch.png,,,,,,,
/assets/minecraft/textures/items,door_dark_oak.png,/mods/ITEMS/mcl_doors/textures,mcl_doors_door_dark_oak.png,,,,,,,

1 Source path Source file Target path Target file xs ys xl yl xt yt Blacklisted?
292 /assets/minecraft/textures/blocks door_wood_upper.png /mods/ITEMS/mcl_doors/textures mcl_doors_door_wood_upper.png
293 /assets/minecraft/textures/blocks door_wood_upper.png /mods/ITEMS/mcl_doors/textures mcl_doors_door_wood_side_upper.png
294 /assets/minecraft/textures/blocks trapdoor.png /mods/ITEMS/mcl_doors/textures doors_trapdoor.png
295 /assets/minecraft/textures/blocks trapdoor.png /mods/ITEMS/mcl_doors/textures doors_trapdoor_side.png
296 /assets/minecraft/textures/blocks iron_trapdoor.png /mods/ITEMS/mcl_doors/textures doors_trapdoor_steel.png
297 /assets/minecraft/textures/blocks iron_trapdoor.png /mods/ITEMS/mcl_doors/textures doors_trapdoor_steel_side.png
298 /assets/minecraft/textures/items door_acacia.png /mods/ITEMS/mcl_doors/textures mcl_doors_door_acacia.png
299 /assets/minecraft/textures/items door_birch.png /mods/ITEMS/mcl_doors/textures mcl_doors_door_birch.png
300 /assets/minecraft/textures/items door_dark_oak.png /mods/ITEMS/mcl_doors/textures mcl_doors_door_dark_oak.png