69 lines
4.4 KiB
Diff
69 lines
4.4 KiB
Diff
diff --git a/init.lua b/init.lua
|
|
index 566ff86..2d235fc 100755
|
|
--- a/init.lua
|
|
+++ b/init.lua
|
|
@@ -95,6 +95,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
end
|
|
|
|
doors.register("ts_doors:door_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
tiles = { { name = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":0,32=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. ":16,32=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base.png^[noalpha^[makealpha:0,255,0", backface_culling = true } },
|
|
description = S(description .. " Windowed Door"),
|
|
inventory_image = "[combine:32x32:0,8=" .. texture .. ":16,8=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_inv.png^[noalpha^[makealpha:0,255,0",
|
|
@@ -115,6 +116,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
})
|
|
|
|
doors.register_trapdoor("ts_doors:trapdoor_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
description = S("Windowed " .. description .. " Trapdoor"),
|
|
inventory_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor.png^[noalpha^[makealpha:0,255,0",
|
|
wield_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor.png^[noalpha^[makealpha:0,255,0",
|
|
@@ -127,6 +129,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
})
|
|
|
|
doors.register_trapdoor("ts_doors:trapdoor_full_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
description = S("Solid " .. description .. " Trapdoor"),
|
|
inventory_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_full.png^[noalpha",
|
|
wield_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_full.png^[noalpha",
|
|
@@ -141,6 +144,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
door_groups.level = 2
|
|
|
|
doors.register("ts_doors:door_locked_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
tiles = { { name = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":0,32=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. ":16,32=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_locked.png^[noalpha^[makealpha:0,255,0", backface_culling = true } },
|
|
description = S("Windowed Locked " .. description .. " Door"),
|
|
inventory_image = "[combine:32x32:0,8=" .. texture .. ":16,8=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_locked_inv.png^[noalpha^[makealpha:0,255,0",
|
|
@@ -154,6 +158,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
})
|
|
|
|
doors.register("ts_doors:door_full_locked_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
tiles = { { name = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":0,32=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. ":16,32=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_full_locked.png^[noalpha", backface_culling = true } },
|
|
description = S("Solid Locked " .. description .. " Door"),
|
|
inventory_image = "[combine:32x32:0,8=" .. texture .. ":16,8=" .. texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_full_locked_inv.png^[noalpha^[makealpha:0,255,0",
|
|
@@ -167,6 +172,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
})
|
|
|
|
doors.register_trapdoor("ts_doors:trapdoor_locked_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
description = S("Windowed Locked " .. description .. " Trapdoor"),
|
|
inventory_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_locked.png^[noalpha^[makealpha:0,255,0",
|
|
wield_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_locked.png^[noalpha^[makealpha:0,255,0",
|
|
@@ -180,6 +186,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
|
|
})
|
|
|
|
doors.register_trapdoor("ts_doors:trapdoor_full_locked_" .. item:gsub(":", "_"), {
|
|
+ use_texture_alpha = "clip",
|
|
description = S("Solid Locked " .. description .. " Trapdoor"),
|
|
inventory_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_full_locked.png^[noalpha",
|
|
wield_image = texture .. "^[transformR90^[colorize:#fff:30^ts_doors_base_trapdoor_full_locked.png^[noalpha",
|
|
@@ -542,6 +549,7 @@ local function can_dig(pos, player)
|
|
end
|
|
|
|
ts_workshop.register_workshop("ts_doors", "workshop", {
|
|
+ use_texture_alpha = "clip",
|
|
description = S("Door Workshop"),
|
|
tiles = {
|
|
"default_wood.png",
|