Merge pull request 'master' (#300) from 3raven/MineClone5:master into master

Reviewed-on: MineClone5/MineClone5#300

-Add Stripped and bark nether hyphae+hyphae stairs
-Make nether woods and nether wood doors non-flammable
-Put wooden door registration into a loop (like trapdoors)
This commit is contained in:
3raven 2022-04-24 17:01:25 +00:00
commit ab22628afe
8 changed files with 383 additions and 287 deletions

View File

@ -5,232 +5,87 @@ local S = minetest.get_translator(minetest.get_current_modname())
local wood_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal.") local wood_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal.")
local wood_usagehelp = S("To open or close a wooden door, rightclick it or supply its lower half with a redstone signal.") local wood_usagehelp = S("To open or close a wooden door, rightclick it or supply its lower half with a redstone signal.")
--- Oak Door --- --Register flammable doors--
mcl_doors:register_door("mcl_doors:wooden_door", {
description = S("Oak Door"), local woods = {
--id, desc, textures, craftitem
{"wooden_door",S("Oak Door"),"doors_item_wood.png",{"mcl_doors_door_wood_lower.png", "mcl_doors_door_wood_side_lower.png"},{"mcl_doors_door_wood_upper.png", "mcl_doors_door_wood_side_upper.png"},"mcl_core:wood"},
{"acacia_door",S("Acacia Door"),"mcl_doors_door_acacia.png",{"mcl_doors_door_acacia_lower.png", "mcl_doors_door_acacia_side_lower.png"},{"mcl_doors_door_acacia_upper.png", "mcl_doors_door_acacia_side_upper.png"},"mcl_core:acaciawood"},
{"birch_door",S("Birch Door"),"mcl_doors_door_birch.png",{"mcl_doors_door_birch_lower.png", "mcl_doors_door_birch_side_lower.png"},{"mcl_doors_door_birch_upper.png", "mcl_doors_door_birch_side_upper.png"},"mcl_core:birchwood"},
{"dark_oak_door",S("Dark Oak Door"),"mcl_doors_door_dark_oak.png",{"mcl_doors_door_dark_oak_lower.png", "mcl_doors_door_dark_oak_side_lower.png"},{"mcl_doors_door_dark_oak_upper.png", "mcl_doors_door_dark_oak_side_upper.png"},"mcl_core:darkwood"},
{"jungle_door",S("Jungle Door"),"mcl_doors_door_jungle.png",{"mcl_doors_door_jungle_lower.png", "mcl_doors_door_jungle_side_lower.png"},{"mcl_doors_door_jungle_upper.png", "mcl_doors_door_jungle_side_upper.png"},"mcl_core:junglewood"},
{"spruce_door",S("Spruce Door"),"mcl_doors_door_spruce.png",{"mcl_doors_door_spruce_lower.png", "mcl_doors_door_spruce_side_lower.png"},{"mcl_doors_door_spruce_upper.png", "mcl_doors_door_spruce_side_upper.png"},"mcl_core:sprucewood"},
}
for w=1, #woods do
mcl_doors:register_door("mcl_doors:"..woods[w][1], {
description = woods[w][2],
_doc_items_longdesc = wood_longdesc, _doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp, _doc_items_usagehelp = wood_usagehelp,
inventory_image = "doors_item_wood.png", inventory_image = woods[w][3],
groups = {handy=1,axey=1, material_wood=1, flammable=-1}, groups = {handy=1,axey=1, material_wood=1, flammable=-1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
tiles_bottom = {"mcl_doors_door_wood_lower.png", "mcl_doors_door_wood_side_lower.png"}, tiles_bottom = woods[w][4],
tiles_top = {"mcl_doors_door_wood_upper.png", "mcl_doors_door_wood_side_upper.png"}, tiles_top = woods[w][5],
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
}) })
minetest.register_craft({ minetest.register_craft({
output = "mcl_doors:wooden_door 3", output = "mcl_doors:"..woods[w][1].." 3",
recipe = { recipe = {
{"mcl_core:wood", "mcl_core:wood"}, {woods[w][6], woods[w][6]},
{"mcl_core:wood", "mcl_core:wood"}, {woods[w][6], woods[w][6]},
{"mcl_core:wood", "mcl_core:wood"} {woods[w][6], woods[w][6]}
} }
}) })
--- Acacia Door -- minetest.register_craft({
mcl_doors:register_door("mcl_doors:acacia_door", { type = "fuel",
description = S("Acacia Door"), recipe = "mcl_doors:"..woods[w][1],
burntime = 10,
})
end
--Register non-flammable doors--
local woods_nether = {
--id, desc, textures, craftitem
{"crimson_door",S("Crimson Door"),"mcl_doors_door_crimson.png",{"mcl_doors_door_crimson_lower.png", "mcl_doors_door_crimson_side_lower.png"},{"mcl_doors_door_crimson_upper.png", "mcl_doors_door_crimson_side_upper.png"},"mcl_mushroom:crimson_hyphae_wood"},
{"warped_door",S("Warped Door"),"mcl_doors_door_warped.png",{"mcl_doors_door_warped_lower.png", "mcl_doors_door_warped_side_lower.png"},{"mcl_doors_door_warped_upper.png", "mcl_doors_door_warped_side_upper.png"},"mcl_mushroom:warped_hyphae_wood"},
}
for w=1, #woods_nether do
mcl_doors:register_door("mcl_doors:"..woods_nether[w][1], {
description = woods_nether[w][2],
_doc_items_longdesc = wood_longdesc, _doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp, _doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_acacia.png", inventory_image = woods_nether[w][3],
groups = {handy=1,axey=1, material_wood=1, flammable=-1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
tiles_bottom = {"mcl_doors_door_acacia_lower.png", "mcl_doors_door_acacia_side_lower.png"}, tiles_bottom = woods_nether[w][4],
tiles_top = {"mcl_doors_door_acacia_upper.png", "mcl_doors_door_acacia_side_upper.png"}, tiles_top = woods_nether[w][5],
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
}) })
minetest.register_craft({ minetest.register_craft({
output = "mcl_doors:acacia_door 3", output = "mcl_doors:"..woods_nether[w][1].." 3",
recipe = { recipe = {
{"mcl_core:acaciawood", "mcl_core:acaciawood"}, {woods_nether[w][6], woods_nether[w][6]},
{"mcl_core:acaciawood", "mcl_core:acaciawood"}, {woods_nether[w][6], woods_nether[w][6]},
{"mcl_core:acaciawood", "mcl_core:acaciawood"} {woods_nether[w][6], woods_nether[w][6]}
} }
}) })
--- Birch Door -- minetest.register_craft({
mcl_doors:register_door("mcl_doors:birch_door", {
description = S("Birch Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_birch.png",
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"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:birch_door 3",
recipe = {
{"mcl_core:birchwood", "mcl_core:birchwood"},
{"mcl_core:birchwood", "mcl_core:birchwood"},
{"mcl_core:birchwood", "mcl_core:birchwood"},
}
})
--- Dark Oak Door --
mcl_doors:register_door("mcl_doors:dark_oak_door", {
description = S("Dark Oak Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_dark_oak.png",
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"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:dark_oak_door 3",
recipe = {
{"mcl_core:darkwood", "mcl_core:darkwood"},
{"mcl_core:darkwood", "mcl_core:darkwood"},
{"mcl_core:darkwood", "mcl_core:darkwood"},
}
})
--- Jungle Door --
mcl_doors:register_door("mcl_doors:jungle_door", {
description = S("Jungle Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_jungle.png",
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"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:jungle_door 3",
recipe = {
{"mcl_core:junglewood", "mcl_core:junglewood"},
{"mcl_core:junglewood", "mcl_core:junglewood"},
{"mcl_core:junglewood", "mcl_core:junglewood"}
}
})
--- Spruce Door --
mcl_doors:register_door("mcl_doors:spruce_door", {
description = S("Spruce Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_spruce.png",
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"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:spruce_door 3",
recipe = {
{"mcl_core:sprucewood", "mcl_core:sprucewood"},
{"mcl_core:sprucewood", "mcl_core:sprucewood"},
{"mcl_core:sprucewood", "mcl_core:sprucewood"}
}
})
--- Crimson Door --
mcl_doors:register_door("mcl_doors:crimson_door", {
description = S("Crimson Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_crimson.png",
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
tiles_bottom = {"mcl_doors_door_crimson_lower.png", "mcl_doors_door_crimson_side_lower.png"},
tiles_top = {"mcl_doors_door_crimson_upper.png", "mcl_doors_door_crimson_side_upper.png"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:crimson_door 3",
recipe = {
{"mcl_mushroom:crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood"},
{"mcl_mushroom:crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood"},
{"mcl_mushroom:crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood"}
}
})
--- Warped Door --
mcl_doors:register_door("mcl_doors:warped_door", {
description = S("Warped Door"),
_doc_items_longdesc = wood_longdesc,
_doc_items_usagehelp = wood_usagehelp,
inventory_image = "mcl_doors_door_warped.png",
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
tiles_bottom = {"mcl_doors_door_warped_lower.png", "mcl_doors_door_warped_side_lower.png"},
tiles_top = {"mcl_doors_door_warped_upper.png", "mcl_doors_door_warped_side_upper.png"},
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:warped_door 3",
recipe = {
{"mcl_mushroom:warped_hyphae_wood", "mcl_mushroom:warped_hyphae_wood"},
{"mcl_mushroom:warped_hyphae_wood", "mcl_mushroom:warped_hyphae_wood"},
{"mcl_mushroom:warped_hyphae_wood", "mcl_mushroom:warped_hyphae_wood"}
}
})
minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "mcl_doors:wooden_door", recipe = "mcl_doors:"..woods_nether[w][1],
burntime = 10, burntime = 10,
}) })
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:jungle_door",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:dark_oak_door",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:birch_door",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:acacia_door",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:spruce_door",
burntime = 10,
})
minetest.register_craft({ end
type = "fuel",
recipe = "mcl_doors:crimson_door",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:warped_door",
burntime = 10,
})
--- Iron Door --- --- Iron Door ---
mcl_doors:register_door("mcl_doors:iron_door", { mcl_doors:register_door("mcl_doors:iron_door", {
@ -262,6 +117,9 @@ minetest.register_craft({
--[[ Trapdoors ]] --[[ Trapdoors ]]
--Register flammable trapdoors--
local woods = { local woods = {
-- id, desc, texture, craftitem -- id, desc, texture, craftitem
{ "trapdoor", S("Oak Trapdoor"), "doors_trapdoor.png", "doors_trapdoor_side.png", "mcl_core:wood" }, { "trapdoor", S("Oak Trapdoor"), "doors_trapdoor.png", "doors_trapdoor_side.png", "mcl_core:wood" },
@ -270,8 +128,6 @@ local woods = {
{ "spruce_trapdoor", S("Spruce Trapdoor"), "mcl_doors_trapdoor_spruce.png", "mcl_doors_trapdoor_spruce_side.png", "mcl_core:sprucewood" }, { "spruce_trapdoor", S("Spruce Trapdoor"), "mcl_doors_trapdoor_spruce.png", "mcl_doors_trapdoor_spruce_side.png", "mcl_core:sprucewood" },
{ "dark_oak_trapdoor", S("Dark Oak Trapdoor"), "mcl_doors_trapdoor_dark_oak.png", "mcl_doors_trapdoor_dark_oak_side.png", "mcl_core:darkwood" }, { "dark_oak_trapdoor", S("Dark Oak Trapdoor"), "mcl_doors_trapdoor_dark_oak.png", "mcl_doors_trapdoor_dark_oak_side.png", "mcl_core:darkwood" },
{ "jungle_trapdoor", S("Jungle Trapdoor"), "mcl_doors_trapdoor_jungle.png", "mcl_doors_trapdoor_jungle_side.png", "mcl_core:junglewood" }, { "jungle_trapdoor", S("Jungle Trapdoor"), "mcl_doors_trapdoor_jungle.png", "mcl_doors_trapdoor_jungle_side.png", "mcl_core:junglewood" },
{ "crimson_trapdoor", S("Crimson Trapdoor"), "mcl_doors_trapdoor_crimson.png", "mcl_doors_trapdoor_crimson_side.png", "mcl_mushroom:crimson_hyphae_wood" },
{ "warped_trapdoor", S("Warped Trapdoor"), "mcl_doors_trapdoor_warped.png", "mcl_doors_trapdoor_warped_side.png", "mcl_mushroom:warped_hyphae_wood" },
} }
for w=1, #woods do for w=1, #woods do
@ -303,6 +159,45 @@ for w=1, #woods do
}) })
end end
--Register non-flammable trapdoors--
local woods_nether = {
-- id, desc, texture, craftitem
{ "crimson_trapdoor", S("Crimson Trapdoor"), "mcl_doors_trapdoor_crimson.png", "mcl_doors_trapdoor_crimson_side.png", "mcl_mushroom:crimson_hyphae_wood" },
{ "warped_trapdoor", S("Warped Trapdoor"), "mcl_doors_trapdoor_warped.png", "mcl_doors_trapdoor_warped_side.png", "mcl_mushroom:warped_hyphae_wood" },
}
for w=1, #woods_nether do
mcl_doors:register_trapdoor("mcl_doors:"..woods_nether[w][1], {
description = woods_nether[w][2],
_doc_items_longdesc = S("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 = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."),
tile_front = woods_nether[w][3],
tile_side = woods_nether[w][4],
wield_image = woods_nether[w][3],
groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1},
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
sounds = mcl_sounds.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "mcl_doors:"..woods_nether[w][1].." 2",
recipe = {
{woods_nether[w][5], woods_nether[w][5], woods_nether[w][5]},
{woods_nether[w][5], woods_nether[w][5], woods_nether[w][5]},
}
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_doors:"..woods_nether[w][1],
burntime = 15,
})
end
--Iron Trapdoor--
mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", { mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", {
description = S("Iron Trapdoor"), description = S("Iron Trapdoor"),
_doc_items_longdesc = S("Iron trapdoors are horizontal barriers which can only be opened and closed by redstone signals, but not by hand. 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 = S("Iron trapdoors are horizontal barriers which can only be opened and closed by redstone signals, but not by hand. 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."),

View File

@ -19,10 +19,12 @@ end
-- Warped fungus -- Warped fungus
-- Crimson fungus -- Crimson fungus
-- Nether woods
-- Functions and Biomes -- Functions and Biomes
-- WARNING: The most comments are in german. Please Translate with an translater if you don't speak good german -- WARNING: The most comments are in german. Please Translate with an translater if you don't speak good german
---Warped fungus
minetest.register_node("mcl_mushroom:warped_fungus", { minetest.register_node("mcl_mushroom:warped_fungus", {
description = S("Warped Fungus Mushroom"), description = S("Warped Fungus Mushroom"),
drawtype = "plantlike", drawtype = "plantlike",
@ -158,22 +160,6 @@ minetest.register_node("mcl_mushroom:shroomlight", {
light_source = 14, light_source = 14,
}) })
minetest.register_node("mcl_mushroom:warped_hyphae", {
description = S("Warped Hyphae"),
tiles = {
"warped_hyphae.png",
"warped_hyphae.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
},
groups = {handy=5,axey=1, bark=1, building_block=1, material_wood=1,},
paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
minetest.register_node("mcl_mushroom:warped_nylium", { minetest.register_node("mcl_mushroom:warped_nylium", {
description = S("Warped Nylium"), description = S("Warped Nylium"),
tiles = { tiles = {
@ -213,23 +199,7 @@ minetest.register_node("mcl_mushroom:warped_checknode", {
drop = "mcl_nether:netherrack" drop = "mcl_nether:netherrack"
}) })
minetest.register_node("mcl_mushroom:warped_hyphae_wood", {
description = S("Warped Hyphae Wood"),
tiles = {"warped_hyphae_wood.png"},
groups = {handy=5,axey=1, flammable=3,wood=1,building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
--paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
mcl_stairs.register_stair_and_slab_simple("warped_hyphae_wood", "mcl_mushroom:warped_hyphae_wood", S("Warped Stair"), S("Warped Slab"), S("Double Warped Slab"), "woodlike")
minetest.register_craft({
output = "mcl_mushroom:warped_hyphae_wood 4",
recipe = {
{"mcl_mushroom:warped_hyphae"},
}
})
minetest.register_craft({ minetest.register_craft({
output = "mcl_mushroom:warped_nylium 2", output = "mcl_mushroom:warped_nylium 2",
@ -295,8 +265,7 @@ minetest.register_abm({
--max_height = 200, --max_height = 200,
})]] })]]
--- Crimson Fungus
minetest.register_node("mcl_mushroom:crimson_fungus", { minetest.register_node("mcl_mushroom:crimson_fungus", {
description = S("Crimson Fungus Mushroom"), description = S("Crimson Fungus Mushroom"),
drawtype = "plantlike", drawtype = "plantlike",
@ -349,31 +318,6 @@ minetest.register_node("mcl_mushroom:crimson_roots", {
stack_max = 64, stack_max = 64,
}) })
minetest.register_node("mcl_mushroom:crimson_hyphae", {
description = S("Crimson Hyphae"),
tiles = {
"crimson_hyphae.png",
"crimson_hyphae.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
},
groups = {handy=5,axey=1, bark=1, building_block=1, material_wood=1,},
paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
minetest.register_node("mcl_mushroom:crimson_hyphae_wood", {
description = S("Crimson Hyphae Wood"),
tiles = {"crimson_hyphae_wood.png"},
groups = {handy=5,axey=1, wood=1,building_block=1, material_wood=1,},
paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
minetest.register_node("mcl_mushroom:crimson_nylium", { minetest.register_node("mcl_mushroom:crimson_nylium", {
description = S("Crimson Nylium"), description = S("Crimson Nylium"),
tiles = { tiles = {
@ -413,12 +357,6 @@ minetest.register_node("mcl_mushroom:crimson_checknode", {
drop = "mcl_nether:netherrack" drop = "mcl_nether:netherrack"
}) })
minetest.register_craft({
output = "mcl_mushroom:crimson_hyphae_wood 4",
recipe = {
{"mcl_mushroom:crimson_hyphae"},
}
})
minetest.register_craft({ minetest.register_craft({
output = "mcl_mushroom:crimson_nylium 2", output = "mcl_mushroom:crimson_nylium 2",
@ -428,8 +366,6 @@ minetest.register_craft({
} }
}) })
mcl_stairs.register_stair_and_slab_simple("crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood", "Crimson Stair", "Crimson Slab", "Double Crimson Slab", "woodlike")
minetest.register_abm({ minetest.register_abm({
label = "mcl_mushroom:crimson_fungus", label = "mcl_mushroom:crimson_fungus",
nodenames = {"mcl_mushroom:crimson_fungus"}, nodenames = {"mcl_mushroom:crimson_fungus"},
@ -471,6 +407,252 @@ minetest.register_abm({
end end
}) })
---Nether Woods
minetest.register_node("mcl_mushroom:warped_hyphae", {
description = S("Warped Hyphae"),
_doc_items_longdesc = S("The stem of a warped hyphae"),
_doc_items_hidden = false,
tiles = {
"warped_hyphae.png",
"warped_hyphae.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
"warped_hyphae_side.png",
},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {handy=1,axey=1, tree=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
stack_max = 64,
_mcl_hardness = 2,
_mcl_stripped_variant = "mcl_mushroom:stripped_warped_hyphae",
})
--Stem bark, stripped stem and bark
minetest.register_node("mcl_mushroom:warped_hyphae_bark", {
description = S("Warped Hyphae Bark"),
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."),
tiles = {"warped_hyphae_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1,axey=1, bark=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
is_ground_content = false,
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
_mcl_stripped_variant = "mcl_mushroom:stripped_warped_hyphae_bark",
})
minetest.register_craft({
output = "mcl_mushroom:warped_hyphae_bark 3",
recipe = {
{ "mcl_mushroom:warped_hyphae", "mcl_mushroom:warped_hyphae" },
{ "mcl_mushroom:warped_hyphae", "mcl_mushroom:warped_hyphae" },
}
})
minetest.register_node("mcl_mushroom:stripped_warped_hyphae", {
description = S("Stripped Warped Hyphae"),
_doc_items_longdesc = S("The stripped stem of a warped hyphae"),
_doc_items_hidden = false,
tiles = {"stripped_warped_stem_top.png", "stripped_warped_stem_top.png", "stripped_warped_stem_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1, axey=1, tree=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("mcl_mushroom:stripped_warped_hyphae_bark", {
description = S("Stripped Warped Hyphae Bark"),
_doc_items_longdesc = S("The stripped wood of a warped hyphae"),
tiles = {"stripped_warped_stem_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1, axey=1, bark=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
is_ground_content = false,
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_craft({
output = "mcl_mushroom:stripped_warped_hyphae_bark 3",
recipe = {
{ "mcl_mushroom:stripped_warped_hyphae", "mcl_mushroom:stripped_warped_hyphae" },
{ "mcl_mushroom:stripped_warped_hyphae", "mcl_mushroom:stripped_warped_hyphae" },
}
})
--Wood
minetest.register_node("mcl_mushroom:warped_hyphae_wood", {
description = S("Warped Hyphae Wood"),
tiles = {"warped_hyphae_wood.png"},
groups = {handy=5,axey=1, wood=1,building_block=1, material_wood=1},
--paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
mcl_stairs.register_stair_and_slab_simple("warped_hyphae_wood", "mcl_mushroom:warped_hyphae_wood", S("Warped Stair"), S("Warped Slab"), S("Double Warped Slab"), "woodlike")
minetest.register_craft({
output = "mcl_mushroom:warped_hyphae_wood 4",
recipe = {
{"mcl_mushroom:warped_hyphae"},
}
})
minetest.register_node("mcl_mushroom:crimson_hyphae", {
description = S("Crimson Hyphae"),
_doc_items_longdesc = S("The stem of a crimson hyphae"),
_doc_items_hidden = false,
tiles = {
"crimson_hyphae.png",
"crimson_hyphae.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
"crimson_hyphae_side.png",
},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
groups = {handy=1,axey=1, tree=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
stack_max = 64,
_mcl_hardness = 2,
_mcl_stripped_variant = "mcl_mushroom:stripped_crimson_hyphae",
})
--Stem bark, stripped stem and bark
minetest.register_node("mcl_mushroom:crimson_hyphae_bark", {
description = S("Crimson Hyphae Bark"),
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."),
tiles = {"crimson_hyphae_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1,axey=1, bark=1, building_block=1, material_wood=1,},
sounds = mcl_sounds.node_sound_wood_defaults(),
is_ground_content = false,
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
_mcl_stripped_variant = "mcl_mushroom:stripped_crimson_hyphae_bark",
})
minetest.register_craft({
output = "mcl_mushroom:crimson_hyphae_bark 3",
recipe = {
{ "mcl_mushroom:crimson_hyphae", "mcl_mushroom:crimson_hyphae" },
{ "mcl_mushroom:crimson_hyphae", "mcl_mushroom:crimson_hyphae" },
}
})
minetest.register_node("mcl_mushroom:stripped_crimson_hyphae", {
description = S("Stripped Crimson Hyphae"),
_doc_items_longdesc = S("The stripped stem of a crimson hyphae"),
_doc_items_hidden = false,
tiles = {"stripped_crimson_stem_top.png", "stripped_crimson_stem_top.png", "stripped_crimson_stem_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1, axey=1, tree=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("mcl_mushroom:stripped_crimson_hyphae_bark", {
description = S("Stripped Crimson Hyphae Bark"),
_doc_items_longdesc = S("The stripped wood of a crimson hyphae"),
tiles = {"stripped_crimson_stem_side.png"},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
stack_max = 64,
groups = {handy=1, axey=1, bark=1, building_block=1, material_wood=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
is_ground_content = false,
on_rotate = on_rotate,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_craft({
output = "mcl_mushroom:stripped_crimson_hyphae_bark 3",
recipe = {
{ "mcl_mushroom:stripped_crimson_hyphae", "mcl_mushroom:stripped_crimson_hyphae" },
{ "mcl_mushroom:stripped_crimson_hyphae", "mcl_mushroom:stripped_crimson_hyphae" },
}
})
--Wood
minetest.register_node("mcl_mushroom:crimson_hyphae_wood", {
description = S("Crimson Hyphae Wood"),
tiles = {"crimson_hyphae_wood.png"},
groups = {handy=5,axey=1, wood=1,building_block=1, material_wood=1,},
paramtype2 = "facedir",
stack_max = 64,
_mcl_hardness = 2,
})
minetest.register_craft({
output = "mcl_mushroom:crimson_hyphae_wood 4",
recipe = {
{"mcl_mushroom:crimson_hyphae"},
}
})
mcl_stairs.register_stair_and_slab_simple("crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood", "Crimson Stair", "Crimson Slab", "Double Crimson Slab", "woodlike")
--Hyphae Stairs and slabs
local barks = {
{ "warped", S("Warped Bark Stairs"), S("Warped Bark Slab"), S("Double Warped Bark Slab") },
{ "crimson", S("Crimson Bark Stairs"), S("Crimson Oak Bark Slab"), S("Double Crimson Bark Slab") },
}
for b=1, #barks do
local bark = barks[b]
local sub = bark[1].."_hyphae_bark"
local id = "mcl_mushroom:"..bark[1].."_hyphae"
mcl_stairs.register_stair(sub, id,
{handy=1,axey=1, bark_stairs=1, material_wood=1},
{minetest.registered_nodes[id].tiles[3]},
bark[2],
mcl_sounds.node_sound_wood_defaults(), 3, 2,
"woodlike")
mcl_stairs.register_slab(sub, id,
{handy=1,axey=1, bark_slab=1, material_wood=1},
{minetest.registered_nodes[id].tiles[3]},
bark[3],
mcl_sounds.node_sound_wood_defaults(), 3, 2,
bark[4])
end
---Mapgen and fungus tree
function generate_warped_tree(pos) function generate_warped_tree(pos)
local breakgrow = false local breakgrow = false
local breakgrow2 = false local breakgrow2 = false
@ -756,3 +938,4 @@ minetest.register_decoration({
y_min = -29065, y_min = -29065,
decoration = "mcl_mushroom:crimson_fungus", decoration = "mcl_mushroom:crimson_fungus",
}) })

View File

@ -7,6 +7,16 @@ Warped Roots=
Warped Wart Block= Warped Wart Block=
Shroomlight= Shroomlight=
Warped Hyphae= Warped Hyphae=
The stem of a warped hyphae=
Warped Hyphae Bark=
This is a decorative block surrounded by the bark of an hyphae.=
Stripped Warped Hyphae=
The stripped stem of a warped hyphae=
Stripped Warped Hyphae Bark=
The stripped wood of a warped hyphae=
Warped Hyphae Wood=
Warped Bark Slab=
Double Warped Bark Slab=
Warped Nylium= Warped Nylium=
Warped Checknode - only to check!= Warped Checknode - only to check!=
Warped Hyphae Wood= Warped Hyphae Wood=
@ -15,6 +25,14 @@ Warped Slab=
Crimson Fungus Mushroom= Crimson Fungus Mushroom=
Crimson Roots= Crimson Roots=
Crimson Hyphae= Crimson Hyphae=
The stem of a crimson hyphae=
Crimson Hyphae Bark=
Stripped Crimson Hyphae=
The stripped stem of a crimson hyphae=
Stripped Crimson Hyphae Bark=
The stripped wood of a warped hyphae=
Crimson Oak Bark Slab=
Double Crimson Bark Slab=
Crimson Hyphae Wood= Crimson Hyphae Wood=
Crimson Stair= Crimson Stair=
Crimson Slab= Crimson Slab=

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

View File

@ -30,7 +30,7 @@ mcl_fences.register_fence_and_fence_gate(
"crimson_wood_fence", "crimson_wood_fence",
S("Crimson Hyphae Wood Fence"), S("Crimson Hyphae Wood Fence Gate"), S("Crimson Hyphae Wood Fence"), S("Crimson Hyphae Wood Fence Gate"),
"mcl_fences_fence_crimson.png", "mcl_fences_fence_crimson.png",
{handy=1,axey=1, flammable=2,fence_wood=1, fire_encouragement=5, fire_flammability=20}, {handy=1,axey=1, fence_wood=1},
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness, minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance, minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
{"group:fence_wood"}, {"group:fence_wood"},
@ -43,7 +43,7 @@ mcl_fences.register_fence_and_fence_gate(
"warped_wood_fence", "warped_wood_fence",
S("Warped Hyphae Wood Fence"), S("Warped Hyphae Wood Fence Gate"), S("Warped Hyphae Wood Fence"), S("Warped Hyphae Wood Fence Gate"),
"mcl_fences_fence_warped.png", "mcl_fences_fence_warped.png",
{handy=1,axey=1, flammable=2,fence_wood=1, fire_encouragement=5, fire_flammability=20}, {handy=1,axey=1, fence_wood=1},
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness, minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance, minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
{"group:fence_wood"}, {"group:fence_wood"},