1
0
Fork 0

Add 5 wood trapdoors, change oak trapdoor texture

This commit is contained in:
Wuzzy 2017-11-24 12:07:16 +01:00
parent de04fbc062
commit 6eab8e213c
8 changed files with 39 additions and 23 deletions

View File

@ -29,3 +29,8 @@ With modifications by GitHub user kingoscargames:
- `doors_item_steel.png` - `doors_item_steel.png`
- `mcl_doors_door_iron_lower.png` - `mcl_doors_door_iron_lower.png`
- `mcl_doors_door_iron_upper.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`

View File

@ -202,32 +202,43 @@ minetest.register_craft({
--[[ Trapdoors ]] --[[ 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", { for w=1, #woods do
description = "Wooden Trapdoor", 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_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.", _doc_items_usagehelp = "To open or close the trapdoor, rightclick it or send a redstone signal to it.",
tiles = {"doors_trapdoor.png"}, tiles = {woods[w][3]},
wield_image = "doors_trapdoor.png", wield_image = woods[w][3],
groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1}, groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15, _mcl_blast_resistance = 15,
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
}) })
minetest.register_craft({ minetest.register_craft({
output = 'mcl_doors:trapdoor 2', output = "mcl_doors:"..woods[w][1].." 2",
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {woods[w][4], woods[w][4], woods[w][4]},
{'group:wood', 'group:wood', 'group:wood'}, {woods[w][4], woods[w][4], woods[w][4]},
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "mcl_doors:trapdoor", recipe = "mcl_doors:"..woods[w][1],
burntime = 15, burntime = 15,
}) })
end
mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", { mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", {
description = "Iron Trapdoor", description = "Iron Trapdoor",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B