rename mcl_mushroom to mcl_crimson
|
@ -6,7 +6,7 @@ local S = minetest.get_translator("mcl_mushroom")
|
|||
|
||||
-- WARNING: The most comments are in german. Please Translate with an translater if you don't speak good german
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_fungus", {
|
||||
minetest.register_node("mcl_crimson:warped_fungus", {
|
||||
description = S("Warped Fungus Mushroom"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "farming_warped_fungus.png" },
|
||||
|
@ -26,7 +26,7 @@ minetest.register_node("mcl_mushroom:warped_fungus", {
|
|||
on_rightclick = function(pos, node, pointed_thing, player, itemstack)
|
||||
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||
if nodepos.name == "mcl_mushroom:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if nodepos.name == "mcl_crimson:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
local random = math.random(1, 5)
|
||||
if random == 1 then
|
||||
generate_warped_tree(pos)
|
||||
|
@ -38,7 +38,7 @@ minetest.register_node("mcl_mushroom:warped_fungus", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:twisting_vines", {
|
||||
minetest.register_node("mcl_crimson:twisting_vines", {
|
||||
description = S("Twisting Vines"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "twisting_vines_plant.png" },
|
||||
|
@ -56,7 +56,7 @@ minetest.register_node("mcl_mushroom:twisting_vines", {
|
|||
node_placement_prediction = "",
|
||||
on_rightclick = function(pos, node, pointed_thing, itemstack)
|
||||
|
||||
if pointed_thing:get_wielded_item():get_name() == "mcl_mushroom:twisting_vines" then
|
||||
if pointed_thing:get_wielded_item():get_name() == "mcl_crimson:twisting_vines" then
|
||||
itemstack:take_item()
|
||||
grow_twisting_vines(pos, 1)
|
||||
elseif pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||
|
@ -67,20 +67,20 @@ minetest.register_node("mcl_mushroom:twisting_vines", {
|
|||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"mcl_mushroom:twisting_vines"}, rarity = 3},
|
||||
{items = {"mcl_crimson:twisting_vines"}, rarity = 3},
|
||||
}
|
||||
},
|
||||
_mcl_shears_drop = true,
|
||||
_mcl_silk_touch_drop = true,
|
||||
_mcl_fortune_drop = { items = {{items = {"mcl_mushroom:twisting_vines"}, rarity = 3},},
|
||||
items = {{items = {"mcl_mushroom:twisting_vines"}, rarity = 1.8181818181818181},},
|
||||
"mcl_mushroom:twisting_vines",
|
||||
"mcl_mushroom:twisting_vines"},
|
||||
_mcl_fortune_drop = { items = {{items = {"mcl_crimson:twisting_vines"}, rarity = 3},},
|
||||
items = {{items = {"mcl_crimson:twisting_vines"}, rarity = 1.8181818181818181},},
|
||||
"mcl_crimson:twisting_vines",
|
||||
"mcl_crimson:twisting_vines"},
|
||||
_mcl_blast_resistance = 0,
|
||||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:nether_sprouts", {
|
||||
minetest.register_node("mcl_crimson:nether_sprouts", {
|
||||
description = S("Nether Sprouts"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "nether_sprouts.png" },
|
||||
|
@ -102,7 +102,7 @@ minetest.register_node("mcl_mushroom:nether_sprouts", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_roots", {
|
||||
minetest.register_node("mcl_crimson:warped_roots", {
|
||||
description = S("Warped Roots"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "warped_roots.png" },
|
||||
|
@ -122,7 +122,7 @@ minetest.register_node("mcl_mushroom:warped_roots", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_wart_block", {
|
||||
minetest.register_node("mcl_crimson:warped_wart_block", {
|
||||
description = S("Warped Wart Block"),
|
||||
tiles = {"warped_wart_block.png"},
|
||||
groups = {handy=1,hoe=7,swordy=1, deco_block=1, },
|
||||
|
@ -130,7 +130,7 @@ minetest.register_node("mcl_mushroom:warped_wart_block", {
|
|||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:shroomlight", {
|
||||
minetest.register_node("mcl_crimson:shroomlight", {
|
||||
description = S("Shroomlight"),
|
||||
tiles = {"shroomlight.png"},
|
||||
groups = {handy=1,hoe=7,swordy=1, leafdecay=1, leafdecay_distance=1, leaves=1, deco_block=1, },
|
||||
|
@ -140,7 +140,7 @@ minetest.register_node("mcl_mushroom:shroomlight", {
|
|||
light_source = 14,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_hyphae", {
|
||||
minetest.register_node("mcl_crimson:warped_hyphae", {
|
||||
description = S("Warped Hyphae"),
|
||||
_doc_items_longdesc = S("The stem of a warped hyphae"),
|
||||
_doc_items_hidden = false,
|
||||
|
@ -160,10 +160,10 @@ minetest.register_node("mcl_mushroom:warped_hyphae", {
|
|||
_mcl_blast_resistance = 2,
|
||||
stack_max = 64,
|
||||
_mcl_hardness = 2,
|
||||
_mcl_stripped_variant = "mcl_mushroom:stripped_warped_hyphae",
|
||||
_mcl_stripped_variant = "mcl_crimson:stripped_warped_hyphae",
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_nylium", {
|
||||
minetest.register_node("mcl_crimson:warped_nylium", {
|
||||
description = S("Warped Nylium"),
|
||||
tiles = {"warped_nylium.png",
|
||||
"mcl_nether_netherrack.png",
|
||||
|
@ -182,7 +182,7 @@ minetest.register_node("mcl_mushroom:warped_nylium", {
|
|||
_mcl_silk_touch_drop = true,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_checknode", {
|
||||
minetest.register_node("mcl_crimson:warped_checknode", {
|
||||
description = S("Warped Checknode - only to check!"),
|
||||
tiles = {"mcl_nether_netherrack.png",
|
||||
"mcl_nether_netherrack.png",
|
||||
|
@ -202,7 +202,7 @@ minetest.register_node("mcl_mushroom:warped_checknode", {
|
|||
|
||||
--Stem bark, stripped stem and bark
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_hyphae_bark", {
|
||||
minetest.register_node("mcl_crimson: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"},
|
||||
|
@ -215,18 +215,18 @@ minetest.register_node("mcl_mushroom:warped_hyphae_bark", {
|
|||
on_rotate = on_rotate,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
_mcl_stripped_variant = "mcl_mushroom:stripped_warped_hyphae_bark",
|
||||
_mcl_stripped_variant = "mcl_crimson:stripped_warped_hyphae_bark",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:warped_hyphae_bark 3",
|
||||
output = "mcl_crimson:warped_hyphae_bark 3",
|
||||
recipe = {
|
||||
{ "mcl_mushroom:warped_hyphae", "mcl_mushroom:warped_hyphae" },
|
||||
{ "mcl_mushroom:warped_hyphae", "mcl_mushroom:warped_hyphae" },
|
||||
{ "mcl_crimson:warped_hyphae", "mcl_crimson:warped_hyphae" },
|
||||
{ "mcl_crimson:warped_hyphae", "mcl_crimson:warped_hyphae" },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:stripped_warped_hyphae", {
|
||||
minetest.register_node("mcl_crimson:stripped_warped_hyphae", {
|
||||
description = description_stripped_trunk,
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_hidden = false,
|
||||
|
@ -241,7 +241,7 @@ minetest.register_node("mcl_mushroom:stripped_warped_hyphae", {
|
|||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:stripped_warped_hyphae_bark", {
|
||||
minetest.register_node("mcl_crimson:stripped_warped_hyphae_bark", {
|
||||
description = description_stripped_bark,
|
||||
_doc_items_longdesc = longdesc_wood,
|
||||
tiles = {tile_stripped_bark},
|
||||
|
@ -257,16 +257,16 @@ minetest.register_node("mcl_mushroom:stripped_warped_hyphae_bark", {
|
|||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:stripped_warped_hyphae_bark 3",
|
||||
output = "mcl_crimson: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" },
|
||||
{ "mcl_crimson:stripped_warped_hyphae", "mcl_crimson:stripped_warped_hyphae" },
|
||||
{ "mcl_crimson:stripped_warped_hyphae", "mcl_crimson:stripped_warped_hyphae" },
|
||||
}
|
||||
})
|
||||
|
||||
--Wood
|
||||
|
||||
minetest.register_node("mcl_mushroom:warped_hyphae_wood", {
|
||||
minetest.register_node("mcl_crimson: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},
|
||||
|
@ -275,31 +275,31 @@ minetest.register_node("mcl_mushroom:warped_hyphae_wood", {
|
|||
_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"))
|
||||
mcl_stairs.register_stair_and_slab_simple("warped_hyphae_wood", "mcl_crimson:warped_hyphae_wood", S("Warped Stair"), S("Warped Slab"), S("Double Warped Slab"))
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:warped_hyphae_wood 4",
|
||||
output = "mcl_crimson:warped_hyphae_wood 4",
|
||||
recipe = {
|
||||
{"mcl_mushroom:warped_hyphae"},
|
||||
{"mcl_crimson:warped_hyphae"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:warped_nyliumd 2",
|
||||
output = "mcl_crimson:warped_nyliumd 2",
|
||||
recipe = {
|
||||
{"mcl_mushroom:warped_wart_block"},
|
||||
{"mcl_crimson:warped_wart_block"},
|
||||
{"mcl_nether:netherrack"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_mushroom:warped_fungus",
|
||||
nodenames = {"mcl_mushroom:warped_fungus"},
|
||||
label = "mcl_crimson:warped_fungus",
|
||||
nodenames = {"mcl_crimson:warped_fungus"},
|
||||
interval = 11,
|
||||
chance = 128,
|
||||
action = function(pos)
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||
if nodepos.name == "mcl_mushroom:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if nodepos.name == "mcl_crimson:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if pos.y < -28400 then
|
||||
generate_warped_tree(pos)
|
||||
end
|
||||
|
@ -308,17 +308,17 @@ minetest.register_abm({
|
|||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_mushroom:warped_checknode",
|
||||
nodenames = {"mcl_mushroom:warped_checknode"},
|
||||
label = "mcl_crimson:warped_checknode",
|
||||
nodenames = {"mcl_crimson:warped_checknode"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
||||
if nodepos.name == "air" then
|
||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_mushroom:warped_nylium" })
|
||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_crimson:warped_nylium" })
|
||||
local randomg = math.random(1, 40)
|
||||
if randomg == 2 then
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:warped_fungus" })
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_crimson:warped_fungus" })
|
||||
elseif randomg == 7 then
|
||||
local pos1 = { x = pos.x, y = pos.y + 1, z = pos.z }
|
||||
generate_warped_tree(pos1)
|
||||
|
@ -331,7 +331,7 @@ minetest.register_abm({
|
|||
|
||||
mobs:spawn({
|
||||
name = "mobs_mc:enderman",
|
||||
nodes = "mcl_mushroom:warped_nylium",
|
||||
nodes = "mcl_crimson:warped_nylium",
|
||||
max_light = 15,
|
||||
min_light = 0,
|
||||
chance = 300,
|
||||
|
@ -341,7 +341,7 @@ mobs:spawn({
|
|||
|
||||
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_fungus", {
|
||||
minetest.register_node("mcl_crimson:crimson_fungus", {
|
||||
description = S("Crimson Fungus Mushroom"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "farming_crimson_fungus.png" },
|
||||
|
@ -361,7 +361,7 @@ minetest.register_node("mcl_mushroom:crimson_fungus", {
|
|||
on_rightclick = function(pos, node, pointed_thing, player)
|
||||
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||
if nodepos.name == "mcl_mushroom:crimson_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if nodepos.name == "mcl_crimson:crimson_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
local random = math.random(1, 5)
|
||||
if random == 1 then
|
||||
generate_crimson_tree(pos)
|
||||
|
@ -374,7 +374,7 @@ minetest.register_node("mcl_mushroom:crimson_fungus", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_roots", {
|
||||
minetest.register_node("mcl_crimson:crimson_roots", {
|
||||
description = S("Crimson Roots"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "crimson_roots.png" },
|
||||
|
@ -394,7 +394,7 @@ minetest.register_node("mcl_mushroom:crimson_roots", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_hyphae", {
|
||||
minetest.register_node("mcl_crimson:crimson_hyphae", {
|
||||
description = S("Crimson Hyphae"),
|
||||
_doc_items_longdesc = S("The stem of a crimson hyphae"),
|
||||
_doc_items_hidden = false,
|
||||
|
@ -419,7 +419,7 @@ minetest.register_node("mcl_mushroom:crimson_hyphae", {
|
|||
|
||||
--Stem bark, stripped stem and bark
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_hyphae_bark", {
|
||||
minetest.register_node("mcl_crimson: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"},
|
||||
|
@ -432,18 +432,18 @@ minetest.register_node("mcl_mushroom:crimson_hyphae_bark", {
|
|||
on_rotate = on_rotate,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
_mcl_stripped_variant = "mcl_mushroom:stripped_crimson_hyphae_bark",
|
||||
_mcl_stripped_variant = "mcl_crimson:stripped_crimson_hyphae_bark",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:crimson_hyphae_bark 3",
|
||||
output = "mcl_crimson:crimson_hyphae_bark 3",
|
||||
recipe = {
|
||||
{ "mcl_mushroom:crimson_hyphae", "mcl_mushroom:crimson_hyphae" },
|
||||
{ "mcl_mushroom:crimson_hyphae", "mcl_mushroom:crimson_hyphae" },
|
||||
{ "mcl_crimson:crimson_hyphae", "mcl_crimson:crimson_hyphae" },
|
||||
{ "mcl_crimson:crimson_hyphae", "mcl_crimson:crimson_hyphae" },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:stripped_crimson_hyphae", {
|
||||
minetest.register_node("mcl_crimson:stripped_crimson_hyphae", {
|
||||
description = S("Stripped Crimson Hyphae"),
|
||||
_doc_items_longdesc = S("The stripped stem of a crimson hyphae"),
|
||||
_doc_items_hidden = false,
|
||||
|
@ -458,7 +458,7 @@ minetest.register_node("mcl_mushroom:stripped_crimson_hyphae", {
|
|||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:stripped_crimson_hyphae_bark", {
|
||||
minetest.register_node("mcl_crimson: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"},
|
||||
|
@ -474,16 +474,16 @@ minetest.register_node("mcl_mushroom:stripped_crimson_hyphae_bark", {
|
|||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:stripped_crimson_hyphae_bark 3",
|
||||
output = "mcl_crimson: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" },
|
||||
{ "mcl_crimson:stripped_crimson_hyphae", "mcl_crimson:stripped_crimson_hyphae" },
|
||||
{ "mcl_crimson:stripped_crimson_hyphae", "mcl_crimson:stripped_crimson_hyphae" },
|
||||
}
|
||||
})
|
||||
|
||||
--Wood
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_hyphae_wood", {
|
||||
minetest.register_node("mcl_crimson: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,},
|
||||
|
@ -492,7 +492,7 @@ minetest.register_node("mcl_mushroom:crimson_hyphae_wood", {
|
|||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_nylium", {
|
||||
minetest.register_node("mcl_crimson:crimson_nylium", {
|
||||
description = S("Crimson Nylium"),
|
||||
tiles = {"crimson_nylium.png",
|
||||
"mcl_nether_netherrack.png",
|
||||
|
@ -511,7 +511,7 @@ minetest.register_node("mcl_mushroom:crimson_nylium", {
|
|||
_mcl_silk_touch_drop = true,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_mushroom:crimson_checknode", {
|
||||
minetest.register_node("mcl_crimson:crimson_checknode", {
|
||||
description = S("Crimson Checknode - only to check!"),
|
||||
tiles = {"mcl_nether_netherrack.png",
|
||||
"mcl_nether_netherrack.png",
|
||||
|
@ -530,30 +530,30 @@ minetest.register_node("mcl_mushroom:crimson_checknode", {
|
|||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:crimson_hyphae_wood 4",
|
||||
output = "mcl_crimson:crimson_hyphae_wood 4",
|
||||
recipe = {
|
||||
{"mcl_mushroom:crimson_hyphae"},
|
||||
{"mcl_crimson:crimson_hyphae"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_mushroom:crimson_nyliumd 2",
|
||||
output = "mcl_crimson:crimson_nyliumd 2",
|
||||
recipe = {
|
||||
{"mcl_nether:nether_wart"},
|
||||
{"mcl_nether:netherrack"},
|
||||
}
|
||||
})
|
||||
|
||||
mcl_stairs.register_stair_and_slab_simple("crimson_hyphae_wood", "mcl_mushroom:crimson_hyphae_wood", "Crimson Stair", "Crimson Slab", "Double Crimson Slab")
|
||||
mcl_stairs.register_stair_and_slab_simple("crimson_hyphae_wood", "mcl_crimson:crimson_hyphae_wood", "Crimson Stair", "Crimson Slab", "Double Crimson Slab")
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_mushroom:crimson_fungus",
|
||||
nodenames = {"mcl_mushroom:crimson_fungus"},
|
||||
label = "mcl_crimson:crimson_fungus",
|
||||
nodenames = {"mcl_crimson:crimson_fungus"},
|
||||
interval = 11,
|
||||
chance = 128,
|
||||
action = function(pos)
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||
if nodepos.name == "mcl_mushroom:crimson_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if nodepos.name == "mcl_crimson:crimson_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
||||
if pos.y < -28400 then
|
||||
generate_crimson_tree(pos)
|
||||
end
|
||||
|
@ -562,24 +562,24 @@ minetest.register_abm({
|
|||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_mushroom:crimson_checknode",
|
||||
nodenames = {"mcl_mushroom:crimson_checknode"},
|
||||
label = "mcl_crimson:crimson_checknode",
|
||||
nodenames = {"mcl_crimson:crimson_checknode"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
||||
if nodepos.name == "air" then
|
||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_mushroom:crimson_nylium" })
|
||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_crimson:crimson_nylium" })
|
||||
local randomg = math.random(1, 400)
|
||||
if randomg <= 10 then
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:crimson_fungus" })
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_crimson:crimson_fungus" })
|
||||
elseif randomg > 10 and randomg <= 25 then
|
||||
local pos1 = { x = pos.x, y = pos.y + 1, z = pos.z }
|
||||
generate_crimson_tree(pos1)
|
||||
elseif randomg > 25 and randomg <= 30 then
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:warped_fungus" })
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_crimson:warped_fungus" })
|
||||
elseif randomg > 30 and randomg <= 130 then
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:crimson_roots" })
|
||||
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_crimson:crimson_roots" })
|
||||
end
|
||||
else
|
||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_nether:netherrack" })
|
||||
|
@ -613,12 +613,12 @@ function generate_warped_tree(pos)
|
|||
if not (minetest.get_node({x = pos.x, y = pos.y + 7, z = pos.z}).name == "air") then breakgrow = true end
|
||||
|
||||
-- Holz
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_mushroom:warped_fungus") then breakgrow = true end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_crimson:warped_fungus") then breakgrow = true end
|
||||
for y = pos.y + 1, pos.y + 4 do
|
||||
if not (minetest.get_node({x = pos.x, y = y, z = pos.z}).name == "air") then breakgrow = true end
|
||||
print(minetest.get_node({x = pos.x, y = y, z = pos.z}).name)
|
||||
end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_mushroom:warped_fungus") then breakgrow2 = true end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_crimson:warped_fungus") then breakgrow2 = true end
|
||||
print(tostring(breakgrow))
|
||||
if breakgrow == false then
|
||||
-- Warzen
|
||||
|
@ -626,7 +626,7 @@ function generate_warped_tree(pos)
|
|||
for x = pos.x - 2,pos.x + 2 do
|
||||
for y = pos.y + 3, pos.y + 4 do
|
||||
for z = pos.z - 2, pos.z + 2 do
|
||||
minetest.set_node({x = x, y = y, z = z}, { name = "mcl_mushroom:warped_wart_block" })
|
||||
minetest.set_node({x = x, y = y, z = z}, { name = "mcl_crimson:warped_wart_block" })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -635,34 +635,34 @@ function generate_warped_tree(pos)
|
|||
for x = pos.x - 1,pos.x + 1 do
|
||||
for y = pos.y + 5, pos.y + 6 do
|
||||
for z = pos.z - 1, pos.z + 1 do
|
||||
minetest.set_node({x = x, y = y, z = z}, { name = "mcl_mushroom:warped_wart_block" })
|
||||
minetest.set_node({x = x, y = y, z = z}, { name = "mcl_crimson:warped_wart_block" })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- fünfte Etage
|
||||
minetest.set_node({x = pos.x, y = pos.y + 7, z = pos.z}, { name = "mcl_mushroom:warped_wart_block" })
|
||||
minetest.set_node({x = pos.x, y = pos.y + 7, z = pos.z}, { name = "mcl_crimson:warped_wart_block" })
|
||||
|
||||
-- Pilzlich
|
||||
local randomgenerate = math.random(1, 2)
|
||||
if randomgenerate == 1 then
|
||||
local randomx = math.random(-2, 2)
|
||||
local randomz = math.random(-2, 2)
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_mushroom:shroomlight" })
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_crimson:shroomlight" })
|
||||
end
|
||||
local randomgenerate = math.random(1, 8)
|
||||
if randomgenerate == 4 then
|
||||
local randomx = math.random(-2, 2)
|
||||
local randomz = math.random(-2, 2)
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_mushroom:shroomlight" })
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_crimson:shroomlight" })
|
||||
end
|
||||
-- Holz
|
||||
for y = pos.y, pos.y + 4 do
|
||||
minetest.set_node({x = pos.x, y = y, z = pos.z}, { name = "mcl_mushroom:warped_hyphae" })
|
||||
minetest.set_node({x = pos.x, y = y, z = pos.z}, { name = "mcl_crimson:warped_hyphae" })
|
||||
--print("Placed at " .. x .. " " .. y .. " " .. z)
|
||||
end
|
||||
else
|
||||
if breakgrow2 == false then minetest.set_node(pos,{ name = "mcl_mushroom:warped_fungus" }) end
|
||||
if breakgrow2 == false then minetest.set_node(pos,{ name = "mcl_crimson:warped_fungus" }) end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -692,12 +692,12 @@ function generate_crimson_tree(pos)
|
|||
if not (minetest.get_node({x = pos.x, y = pos.y + 7, z = pos.z}).name == "air") then breakgrow = true end
|
||||
|
||||
-- Holz
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_mushroom:crimson_fungus") then breakgrow = true end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_crimson:crimson_fungus") then breakgrow = true end
|
||||
for y = pos.y + 1, pos.y + 4 do
|
||||
if not (minetest.get_node({x = pos.x, y = y, z = pos.z}).name == "air") then breakgrow = true end
|
||||
print(minetest.get_node({x = pos.x, y = y, z = pos.z}).name)
|
||||
end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_mushroom:crimson_fungus") then breakgrow2 = true end
|
||||
if not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "air") and not (minetest.get_node({x = pos.x, y = pos.y, z = pos.z}).name == "mcl_crimson:crimson_fungus") then breakgrow2 = true end
|
||||
print(tostring(breakgrow))
|
||||
if breakgrow == false then
|
||||
-- Warzen
|
||||
|
@ -727,21 +727,21 @@ function generate_crimson_tree(pos)
|
|||
if randomgenerate == 1 then
|
||||
local randomx = math.random(-2, 2)
|
||||
local randomz = math.random(-2, 2)
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_mushroom:shroomlight" })
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_crimson:shroomlight" })
|
||||
end
|
||||
local randomgenerate = math.random(1, 8)
|
||||
if randomgenerate == 4 then
|
||||
local randomx = math.random(-2, 2)
|
||||
local randomz = math.random(-2, 2)
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_mushroom:shroomlight" })
|
||||
minetest.set_node({x = pos.x + randomx, y = pos.y + 3, z = pos.z + randomz}, { name = "mcl_crimson:shroomlight" })
|
||||
end
|
||||
-- Holz
|
||||
for y = pos.y, pos.y + 4 do
|
||||
minetest.set_node({x = pos.x, y = y, z = pos.z}, { name = "mcl_mushroom:crimson_hyphae" })
|
||||
minetest.set_node({x = pos.x, y = y, z = pos.z}, { name = "mcl_crimson:crimson_hyphae" })
|
||||
--print("Placed at " .. x .. " " .. y .. " " .. z)
|
||||
end
|
||||
else
|
||||
if breakgrow2 == false then minetest.set_node(pos,{ name = "mcl_mushroom:crimson_fungus" }) end
|
||||
if breakgrow2 == false then minetest.set_node(pos,{ name = "mcl_crimson:crimson_fungus" }) end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -755,7 +755,7 @@ minetest.register_biome({
|
|||
name = "WarpedForest",
|
||||
node_filler = "mcl_nether:netherrack",
|
||||
node_stone = "mcl_nether:netherrack",
|
||||
node_top = "mcl_mushroom:warped_nylium",
|
||||
node_top = "mcl_crimson:warped_nylium",
|
||||
node_water = "air",
|
||||
node_river_water = "air",
|
||||
y_min = -29065,
|
||||
|
@ -767,7 +767,7 @@ minetest.register_biome({
|
|||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_mushroom:warped_nylium"},
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.01,
|
||||
|
@ -780,13 +780,13 @@ minetest.register_decoration({
|
|||
biomes = {"WarpedForest"},
|
||||
y_min = -29065,
|
||||
y_max = -28940 + 80,
|
||||
decoration = "mcl_mushroom:warped_fungus",
|
||||
decoration = "mcl_crimson:warped_fungus",
|
||||
})
|
||||
]]
|
||||
--[[ No Ore gen for now
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "mcl_mushroom:warped_checknode",
|
||||
ore = "mcl_crimson:warped_checknode",
|
||||
-- Note: Stone is included only for v6 mapgen support. Netherrack is not generated naturally
|
||||
-- in v6, but instead set with the on_generated function in mcl_mapgen_core.
|
||||
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
||||
|
@ -807,7 +807,7 @@ minetest.register_ore({
|
|||
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "mcl_mushroom:crimson_checknode",
|
||||
ore = "mcl_crimson:crimson_checknode",
|
||||
-- Note: Stone is included only for v6 mapgen support. Netherrack is not generated naturally
|
||||
-- in v6, but instead set with the on_generated function in mcl_mapgen_core.
|
||||
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
||||
|
@ -829,23 +829,23 @@ minetest.register_ore({
|
|||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_mushroom:warped_nylium"},
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.1,
|
||||
biomes = {"Nether"},
|
||||
y_max = -28940,
|
||||
y_min = -29065,
|
||||
decoration = "mcl_mushroom:warped_fungus",
|
||||
decoration = "mcl_crimson:warped_fungus",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_mushroom:crimson_nylium"},
|
||||
place_on = {"mcl_crimson:crimson_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.1,
|
||||
biomes = {"Nether"},
|
||||
y_max = -28940,
|
||||
y_min = -29065,
|
||||
decoration = "mcl_mushroom:crimson_fungus",
|
||||
decoration = "mcl_crimson:crimson_fungus",
|
||||
})
|
|
@ -1,2 +1,2 @@
|
|||
depends = mcl_stairs, mobs_mc
|
||||
name = mcl_mushroom
|
||||
name = mcl_crimson
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 446 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 428 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 581 B After Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 434 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |