Add 5 wood trapdoors, change oak trapdoor texture
@ -29,3 +29,8 @@ With modifications by GitHub user kingoscargames:
|
||||
- `doors_item_steel.png`
|
||||
- `mcl_doors_door_iron_lower.png`
|
||||
- `mcl_doors_door_iron_upper.png`
|
||||
- `mcl_doors_trapdoor_acaica.png`
|
||||
- `mcl_doors_trapdoor_birch.png`
|
||||
- `mcl_doors_trapdoor_spruce.png`
|
||||
- `mcl_doors_trapdoor_dark_oak.png`
|
||||
- `mcl_doors_trapdoor_jungle.png`
|
||||
|
@ -202,13 +202,23 @@ 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" },
|
||||
}
|
||||
|
||||
mcl_doors:register_trapdoor("mcl_doors:trapdoor", {
|
||||
description = "Wooden Trapdoor",
|
||||
for w=1, #woods do
|
||||
mcl_doors:register_trapdoor("mcl_doors:"..woods[w][1], {
|
||||
description = woods[w][2],
|
||||
_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.",
|
||||
tiles = {"doors_trapdoor.png"},
|
||||
wield_image = "doors_trapdoor.png",
|
||||
tiles = {woods[w][3]},
|
||||
wield_image = woods[w][3],
|
||||
groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 15,
|
||||
@ -216,18 +226,19 @@ mcl_doors:register_trapdoor("mcl_doors:trapdoor", {
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mcl_doors:trapdoor 2',
|
||||
output = "mcl_doors:"..woods[w][1].." 2",
|
||||
recipe = {
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{woods[w][4], woods[w][4], woods[w][4]},
|
||||
{woods[w][4], woods[w][4], woods[w][4]},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_doors:trapdoor",
|
||||
recipe = "mcl_doors:"..woods[w][1],
|
||||
burntime = 15,
|
||||
})
|
||||
end
|
||||
|
||||
mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", {
|
||||
description = "Iron Trapdoor",
|
||||
|
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 181 B |
BIN
mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_acacia.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_birch.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_dark_oak.png
Normal file
After Width: | Height: | Size: 211 B |
BIN
mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_jungle.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_spruce.png
Normal file
After Width: | Height: | Size: 261 B |