Compare commits
44 Commits
master
...
door_textu
Author | SHA1 | Date |
---|---|---|
FossFanatic | 476118984b | |
FossFanatic | 8ad366a568 | |
FossFanatic | 0d903c3ff1 | |
FossFanatic | c44fcccc4a | |
FossFanatic | 272525edc1 | |
FossFanatic | 962351bdef | |
FossFanatic | 17b987199f | |
FossFanatic | 221a0481db | |
FossFanatic | 66f6569082 | |
FossFanatic | 8478ee83d2 | |
FossFanatic | 9636b23d9a | |
FossFanatic | 3e20b9f140 | |
FossFanatic | 8193edace7 | |
FossFanatic | 74101e648e | |
FossFanatic | 8539e0f041 | |
FossFanatic | ed4f7a2e2d | |
FossFanatic | c4082a3921 | |
FossFanatic | 4308f0d10c | |
FossFanatic | fb34d0dbd0 | |
FossFanatic | 6bdb4e4142 | |
FossFanatic | b8373bd0fe | |
FossFanatic | 57b99f7161 | |
FossFanatic | 3d7800840a | |
FossFanatic | 3ce52e03b7 | |
FossFanatic | ea500b2cdf | |
FossFanatic | cf393f966d | |
FossFanatic | 6482a612fd | |
FossFanatic | 880b1816c8 | |
FossFanatic | 9e19388732 | |
FossFanatic | d75a616467 | |
FossFanatic | e0170fb16a | |
FossFanatic | f83f68177d | |
FossFanatic | 8e015af041 | |
FossFanatic | 24f4d9e2ad | |
FossFanatic | c996d324b5 | |
FossFanatic | 4cc370da8b | |
FossFanatic | 7505040d55 | |
FossFanatic | 53cda320cc | |
FossFanatic | 997f520f33 | |
FossFanatic | 14b42f58aa | |
FossFanatic | 6cd2d80a58 | |
FossFanatic | cf58bf4d2d | |
FossFanatic | 971ef10467 | |
FossFanatic | 8378461d92 |
|
@ -4,10 +4,6 @@
|
|||
--- DateTime: 12/29/22 12:38 PM -- Restructure Date
|
||||
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
||||
|
||||
-- CONSTS
|
||||
-- Due to door fix #2736, doors are displayed backwards. When this is fixed, set this variable to false.
|
||||
local BROKEN_DOORS = true
|
||||
|
||||
-- FUTURE USE VARIABLE. MUST REMAIN FALSE UNTIL IT HAS BEEN FULLY IMPLEMENTED. DO NOT ENABLE.
|
||||
local SIDE_SCAFFOLDING = false
|
||||
local SIDE_SCAFFOLD_NAME = "mcl_bamboo:scaffolding_horizontal"
|
||||
|
@ -49,17 +45,6 @@ end
|
|||
|
||||
if minetest.get_modpath("mcl_doors") then
|
||||
if mcl_doors then
|
||||
local top_door_tiles = {}
|
||||
local bot_door_tiles = {}
|
||||
|
||||
if BROKEN_DOORS then
|
||||
top_door_tiles = { "mcl_bamboo_door_top_alt.png", "mcl_bamboo_door_top.png" }
|
||||
bot_door_tiles = { "mcl_bamboo_door_bottom_alt.png", "mcl_bamboo_door_bottom.png" }
|
||||
else
|
||||
top_door_tiles = { "mcl_bamboo_door_top.png", "mcl_bamboo_door_top.png" }
|
||||
bot_door_tiles = { "mcl_bamboo_door_bottom.png", "mcl_bamboo_door_bottom.png" }
|
||||
end
|
||||
|
||||
local name = "mcl_bamboo:bamboo_door"
|
||||
local def = {
|
||||
description = S("Bamboo Door."),
|
||||
|
@ -68,8 +53,8 @@ if minetest.get_modpath("mcl_doors") then
|
|||
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = bot_door_tiles,
|
||||
tiles_top = top_door_tiles,
|
||||
tiles_bottom = "mcl_bamboo_door_bottom.png",
|
||||
tiles_top = "mcl_bamboo_door_top.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
}
|
||||
|
||||
|
|
|
@ -666,8 +666,8 @@ mcl_doors:register_door("mcl_crimson:crimson_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_crimson_crimson_door_bottom.png", "mcl_doors_door_crimson_side_lower.png"},
|
||||
tiles_top = {"mcl_crimson_crimson_door_top.png", "mcl_doors_door_crimson_side_upper.png"},
|
||||
tiles_bottom = "mcl_crimson_crimson_door_bottom.png",
|
||||
tiles_top = "mcl_crimson_crimson_door_top.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -704,8 +704,8 @@ mcl_doors:register_door("mcl_crimson:warped_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_crimson_warped_door_bottom.png", "mcl_doors_door_warped_side_lower.png"},
|
||||
tiles_top = {"mcl_crimson_warped_door_top.png", "mcl_doors_door_warped_side_upper.png"},
|
||||
tiles_bottom = "mcl_crimson_warped_door_bottom.png",
|
||||
tiles_top = "mcl_crimson_warped_door_top.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ function mcl_doors:register_door(name, def)
|
|||
end
|
||||
|
||||
minetest.register_node(name.."_b_1", {
|
||||
tiles = {"blank.png", tt[2].."^[transformFXR90", tb[2], tb[2].."^[transformFX", tb[1], tb[1].."^[transformFX"},
|
||||
tiles = {"blank.png", tb.."^[transformFY", tb, tb.."^[transformFX", tb.."^[transformFX", tb},
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -350,7 +350,7 @@ function mcl_doors:register_door(name, def)
|
|||
end
|
||||
|
||||
minetest.register_node(name.."_t_1", {
|
||||
tiles = {tt[2].."^[transformR90", "blank.png", tt[2], tt[2].."^[transformFX", tt[1], tt[1].."^[transformFX"},
|
||||
tiles = {tt.."^[transformFY", "blank.png", tt, tt.."^[transformFX", tt.."^[transformFX", tt},
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -421,8 +421,10 @@ function mcl_doors:register_door(name, def)
|
|||
end
|
||||
end
|
||||
|
||||
-- NOTE: Figure out a way to blit the bottom 3 pixels of the bottom door texture to the top of the texture via texture modifiers only.
|
||||
|
||||
minetest.register_node(name.."_b_2", {
|
||||
tiles = {"blank.png", tt[2].."^[transformFXR90", tb[2].."^[transformI", tb[2].."^[transformFX", tb[1].."^[transformFX", tb[1]},
|
||||
tiles = {"blank.png", tb.."^[transformR180", tb, tb.."^[transformFX", tb, tb.."^[transformFX"},
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -493,8 +495,10 @@ function mcl_doors:register_door(name, def)
|
|||
end
|
||||
end
|
||||
|
||||
-- NOTE: Figure out a way to blit the top 3 pixels of the top door texture to the bottom of the texture via texture modifiers only.
|
||||
|
||||
minetest.register_node(name.."_t_2", {
|
||||
tiles = {tt[2].."^[transformR90", "blank.png", tt[2].."^[transformI", tt[2].."^[transformFX", tt[1].."^[transformFX", tt[1]},
|
||||
tiles = {tt.."^[transformR180", "blank.png", tt, tt.."^[transformFX", tt, tt.."^[transformFX"},
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
|
|
@ -14,8 +14,8 @@ mcl_doors:register_door("mcl_doors:wooden_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_wood_lower.png", "mcl_doors_door_wood_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_wood_upper.png", "mcl_doors_door_wood_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_wood_lower.png",
|
||||
tiles_top = "mcl_doors_door_wood_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -37,8 +37,8 @@ mcl_doors:register_door("mcl_doors:acacia_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_acacia_lower.png", "mcl_doors_door_acacia_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_acacia_upper.png", "mcl_doors_door_acacia_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_acacia_lower.png",
|
||||
tiles_top = "mcl_doors_door_acacia_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -60,8 +60,8 @@ mcl_doors:register_door("mcl_doors:birch_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_birch_lower.png", "mcl_doors_door_birch_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_birch_upper.png", "mcl_doors_door_birch_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_birch_lower.png",
|
||||
tiles_top = "mcl_doors_door_birch_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -83,8 +83,8 @@ mcl_doors:register_door("mcl_doors:dark_oak_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_dark_oak_lower.png", "mcl_doors_door_dark_oak_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_dark_oak_upper.png", "mcl_doors_door_dark_oak_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_dark_oak_lower.png",
|
||||
tiles_top = "mcl_doors_door_dark_oak_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -106,8 +106,8 @@ mcl_doors:register_door("mcl_doors:jungle_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_jungle_lower.png", "mcl_doors_door_jungle_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_jungle_upper.png", "mcl_doors_door_jungle_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_jungle_lower.png",
|
||||
tiles_top = "mcl_doors_door_jungle_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -129,8 +129,8 @@ mcl_doors:register_door("mcl_doors:spruce_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_doors_door_spruce_lower.png", "mcl_doors_door_spruce_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_spruce_upper.png", "mcl_doors_door_spruce_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_spruce_lower.png",
|
||||
tiles_top = "mcl_doors_door_spruce_upper.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -183,8 +183,8 @@ mcl_doors:register_door("mcl_doors:iron_door", {
|
|||
groups = {pickaxey=1, mesecon_effector_on=1},
|
||||
_mcl_hardness = 5,
|
||||
_mcl_blast_resistance = 5,
|
||||
tiles_bottom = {"mcl_doors_door_iron_lower.png^[transformFX", "mcl_doors_door_iron_side_lower.png"},
|
||||
tiles_top = {"mcl_doors_door_iron_upper.png^[transformFX", "mcl_doors_door_iron_side_upper.png"},
|
||||
tiles_bottom = "mcl_doors_door_iron_lower.png",
|
||||
tiles_top = "mcl_doors_door_iron_upper.png",
|
||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||
sound_open = "doors_steel_door_open",
|
||||
sound_close = "doors_steel_door_close",
|
||||
|
|
|
@ -397,8 +397,8 @@ mcl_doors:register_door("mcl_mangrove:mangrove_door", {
|
|||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = {"mcl_mangrove_door_bottom.png", "mcl_doors_door_mangrove_side_lower.png"},
|
||||
tiles_top = {"mcl_mangrove_door_top.png", "mcl_doors_door_mangrove_side_upper.png"},
|
||||
tiles_bottom = "mcl_mangrove_door_bottom.png",
|
||||
tiles_top = "mcl_mangrove_door_top.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 205 B |
After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 249 B |
After Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 134 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 134 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 134 B |
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 195 B |