Initial Commit
This commit is contained in:
commit
eb9e78e897
1
.gitignore
vendored
Executable file
1
.gitignore
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
*~
|
3
LICENSE
Executable file
3
LICENSE
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
CC0 Public Domain
|
||||||
|
|
||||||
|
See https://creativecommons.org/publicdomain/zero/1.0/ for details.
|
6
README.md
Executable file
6
README.md
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
ts_doors
|
||||||
|
========
|
||||||
|
|
||||||
|
This mod adds more doors.
|
||||||
|
It was made by Thomas-S.
|
||||||
|
It is published under the CC0 license.
|
3
depends.txt
Executable file
3
depends.txt
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
default
|
||||||
|
doors
|
||||||
|
moretrees?
|
1
description.txt
Executable file
1
description.txt
Executable file
@ -0,0 +1 @@
|
|||||||
|
This mod adds doors for all kinds of wood.
|
60
init.lua
Executable file
60
init.lua
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
ts_doors = {}
|
||||||
|
|
||||||
|
function ts_doors.register_door(recipe, description, texture)
|
||||||
|
local groups = minetest.registered_nodes[recipe].groups
|
||||||
|
local door_groups = {}
|
||||||
|
for k,v in pairs(groups) do
|
||||||
|
if k ~= "wood" then
|
||||||
|
door_groups[k] = v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
doors.register("ts_door_" .. recipe:gsub(":", "_"), {
|
||||||
|
tiles = {{ name = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":0,32=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. ":16,32=" .. texture .. "^[transformR270^[colorize:#fff:30^ts_doors_base.png^[noalpha^[makealpha:0,255,0", backface_culling = true }},
|
||||||
|
description = description .. " Door",
|
||||||
|
inventory_image = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. "^[transformR270^[colorize:#fff:30^ts_doors_base_inv.png^[noalpha^[makealpha:0,255,0",
|
||||||
|
groups = groups,
|
||||||
|
recipe = {
|
||||||
|
{recipe, recipe},
|
||||||
|
{recipe, recipe},
|
||||||
|
{recipe, recipe},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
groups.level = 2
|
||||||
|
|
||||||
|
doors.register("ts_door_locked_" .. recipe:gsub(":", "_"), {
|
||||||
|
tiles = {{ name = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":0,32=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. ":16,32=" .. texture .. "^[transformR270^[colorize:#fff:30^ts_doors_base_locked.png^[noalpha^[makealpha:0,255,0", backface_culling = true }},
|
||||||
|
description = description .. " Locked Door",
|
||||||
|
inventory_image = "[combine:32x38:0,0=" .. texture .. ":0,16=" .. texture .. ":16,0=" .. texture .. ":16,16=" .. texture .. "^[transformR270^[colorize:#fff:30^ts_doors_base_locked_inv.png^[noalpha^[makealpha:0,255,0",
|
||||||
|
protected = true,
|
||||||
|
groups = groups,
|
||||||
|
sound_open = "doors_steel_door_open",
|
||||||
|
sound_close = "doors_steel_door_close",
|
||||||
|
recipe = {
|
||||||
|
{recipe, recipe},
|
||||||
|
{recipe, "default:steel_ingot"},
|
||||||
|
{recipe, recipe},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
ts_doors.register_door("default:aspen_wood" , "Aspen" , "default_aspen_wood.png" )
|
||||||
|
ts_doors.register_door("default:pine_wood" , "Pine" , "default_pine_wood.png" )
|
||||||
|
ts_doors.register_door("default:acacia_wood", "Acacia" , "default_acacia_wood.png")
|
||||||
|
ts_doors.register_door("default:wood" , "Wooden" , "default_wood.png" )
|
||||||
|
ts_doors.register_door("default:junglewood" , "Jungle Wood", "default_junglewood.png" )
|
||||||
|
|
||||||
|
|
||||||
|
if(minetest.get_modpath("moretrees")) then
|
||||||
|
ts_furniture.register_furniture("moretrees:apple_tree_planks", "Apple Tree", "moretrees_apple_tree_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:beech_planks", "Beech", "moretrees_beech_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:birch_planks", "Birch", "moretrees_birch_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:fir_planks", "Fir", "moretrees_fir_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:oak_planks", "Oak", "moretrees_oak_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:palm_planks", "Palm", "moretrees_palm_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:rubber_tree_planks", "Rubber Tree", "moretrees_rubber_tree_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:sequoia_planks", "Sequoia", "moretrees_sequoia_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:spruce_planks", "Spruce", "moretrees_spruce_wood.png")
|
||||||
|
ts_furniture.register_furniture("moretrees:willow_planks", "Willow", "moretrees_willow_wood.png")
|
||||||
|
end
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
BIN
textures/ts_doors_base.png
Executable file
BIN
textures/ts_doors_base.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 771 B |
BIN
textures/ts_doors_base_inv.png
Normal file
BIN
textures/ts_doors_base_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 566 B |
BIN
textures/ts_doors_base_locked.png
Executable file
BIN
textures/ts_doors_base_locked.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 793 B |
BIN
textures/ts_doors_base_locked_inv.png
Normal file
BIN
textures/ts_doors_base_locked_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 545 B |
Loading…
x
Reference in New Issue
Block a user