2022-05-26 20:47:35 +03:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local S = minetest.get_translator(modname)
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
-- Warped and Crimson fungus
|
|
|
|
-- by debiankaios
|
|
|
|
-- adapted for mcl2 by cora
|
2022-04-29 13:24:29 +03:00
|
|
|
|
2022-05-26 20:47:35 +03:00
|
|
|
local function generate_warped_tree(pos)
|
2022-05-27 03:06:55 +03:00
|
|
|
minetest.place_schematic(vector.offset(pos,-2,0,-2),modpath.."/schematics/warped_mushroom.mts","random")
|
2022-05-26 20:47:35 +03:00
|
|
|
end
|
2022-04-29 13:24:29 +03:00
|
|
|
|
2022-05-26 20:47:35 +03:00
|
|
|
function generate_crimson_tree(pos)
|
2022-05-27 03:06:55 +03:00
|
|
|
minetest.place_schematic(vector.offset(pos,-2,0,-2),modpath.."/schematics/crimson_mushroom.mts","random")
|
2022-05-26 20:47:35 +03:00
|
|
|
end
|
2022-04-29 13:24:29 +03:00
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_fungus", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Fungus Mushroom"),
|
2022-04-29 13:24:29 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "farming_warped_fungus.png" },
|
|
|
|
inventory_image = "farming_warped_fungus.png",
|
|
|
|
wield_image = "farming_warped_fungus.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,enderman_takable=1,deco_block=1},
|
|
|
|
light_source = 1,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -3/16, -0.5, -3/16, 3/16, -2/16, 3/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
on_rightclick = function(pos, node, pointed_thing, player, itemstack)
|
2022-05-04 13:23:08 +03:00
|
|
|
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_crimson:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
|
|
|
local random = math.random(1, 5)
|
|
|
|
if random == 1 then
|
|
|
|
generate_warped_tree(pos)
|
|
|
|
end
|
|
|
|
end
|
2022-05-04 01:24:09 +03:00
|
|
|
end
|
|
|
|
end,
|
2022-04-29 13:24:29 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
2021-07-19 11:11:16 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:twisting_vines", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Twisting Vines"),
|
2021-07-19 11:11:16 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "twisting_vines_plant.png" },
|
|
|
|
inventory_image = "twisting_vines.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {dig_immediate=3,vines=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,deco_block=1, shearsy = 1},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -3/16, -0.5, -3/16, 3/16, 0.5, 3/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
on_rightclick = function(pos, node, pointed_thing, itemstack)
|
2022-05-04 13:23:08 +03:00
|
|
|
if pointed_thing:get_wielded_item():get_name() == "mcl_crimson:twisting_vines" then
|
2022-05-04 01:24:09 +03:00
|
|
|
itemstack:take_item()
|
|
|
|
grow_twisting_vines(pos, 1)
|
2022-05-04 13:23:08 +03:00
|
|
|
elseif pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
2022-05-04 01:24:09 +03:00
|
|
|
itemstack:take_item()
|
|
|
|
grow_twisting_vines(pos, math.random(1, 3))
|
2022-05-04 13:23:08 +03:00
|
|
|
end
|
2021-07-19 11:11:16 +03:00
|
|
|
end,
|
|
|
|
drop = {
|
2022-05-04 13:23:08 +03:00
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2022-05-04 01:12:53 +03:00
|
|
|
{items = {"mcl_crimson:twisting_vines"}, rarity = 3},
|
2022-05-04 13:23:08 +03:00
|
|
|
},
|
2021-07-19 11:11:16 +03:00
|
|
|
},
|
|
|
|
_mcl_shears_drop = true,
|
|
|
|
_mcl_silk_touch_drop = true,
|
2022-05-04 13:23:08 +03:00
|
|
|
_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",
|
|
|
|
},
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
2021-07-19 11:11:16 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:nether_sprouts", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Nether Sprouts"),
|
2021-07-19 11:11:16 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "nether_sprouts.png" },
|
|
|
|
inventory_image = "nether_sprouts.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {dig_immediate=3,vines=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,deco_block=1, shearsy = 1},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -4/16, -0.5, -4/16, 4/16, 0, 4/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
drop = "",
|
|
|
|
_mcl_shears_drop = true,
|
|
|
|
_mcl_silk_touch_drop = false,
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
2021-07-19 11:11:16 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_roots", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Roots"),
|
2021-07-19 11:11:16 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "warped_roots.png" },
|
|
|
|
inventory_image = "warped_roots.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {dig_immediate=3,vines=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,deco_block=1, shearsy = 1},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -6/16, -0.5, -6/16, 6/16, -4/16, 6/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
_mcl_silk_touch_drop = false,
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_wart_block", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Wart Block"),
|
|
|
|
tiles = {"warped_wart_block.png"},
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {handy = 1, hoe = 7, swordy = 1, deco_block = 1},
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_hardness = 2,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:shroomlight", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Shroomlight"),
|
|
|
|
tiles = {"shroomlight.png"},
|
2022-06-16 23:17:11 +03:00
|
|
|
groups = {handy = 1, hoe = 7, swordy = 1, leafdecay = 5, leaves = 1, deco_block = 1},
|
2022-06-17 16:54:36 +03:00
|
|
|
light_source = minetest.LIGHT_MAX,
|
2022-05-04 13:23:08 +03:00
|
|
|
_mcl_hardness = 2,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_hyphae", {
|
2022-04-20 03:29:44 +03:00
|
|
|
description = S("Warped Hyphae"),
|
|
|
|
_doc_items_longdesc = S("The stem of a warped hyphae"),
|
|
|
|
_doc_items_hidden = false,
|
|
|
|
tiles = {
|
|
|
|
"warped_hyphae.png",
|
2022-05-04 01:24:09 +03:00
|
|
|
"warped_hyphae.png",
|
|
|
|
"warped_hyphae_side.png",
|
|
|
|
"warped_hyphae_side.png",
|
|
|
|
"warped_hyphae_side.png",
|
|
|
|
"warped_hyphae_side.png",
|
|
|
|
},
|
2022-04-20 03:29:44 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = mcl_util.rotate_axis,
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {handy = 1, axey = 1, tree = 1, building_block = 1, material_wood = 1},
|
2022-04-20 03:29:44 +03:00
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
on_rotate = on_rotate,
|
|
|
|
_mcl_blast_resistance = 2,
|
|
|
|
_mcl_hardness = 2,
|
2022-05-04 01:12:53 +03:00
|
|
|
_mcl_stripped_variant = "mcl_crimson:stripped_warped_hyphae",
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_nylium", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Nylium"),
|
2022-05-04 13:23:08 +03:00
|
|
|
tiles = {
|
|
|
|
"warped_nylium.png",
|
|
|
|
"mcl_nether_netherrack.png",
|
|
|
|
"mcl_nether_netherrack.png^warped_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^warped_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^warped_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^warped_nylium_side.png",
|
|
|
|
},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
drop = "mcl_nether:netherrack",
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1},
|
|
|
|
_mcl_hardness = 0.4,
|
|
|
|
_mcl_blast_resistance = 0.4,
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_silk_touch_drop = true,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_checknode", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Checknode - only to check!"),
|
2022-05-04 13:23:08 +03:00
|
|
|
tiles = {"mcl_nether_netherrack.png"},
|
|
|
|
groups = {pickaxey = 1, building_block = 1, material_stone = 1, not_in_creative_inventory = 1},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
_mcl_hardness = 0.4,
|
|
|
|
_mcl_blast_resistance = 0.4,
|
|
|
|
is_ground_content = true,
|
|
|
|
drop = "mcl_nether:netherrack"
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-04-20 00:11:01 +03:00
|
|
|
--Stem bark, stripped stem and bark
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_hyphae_bark", {
|
2022-05-04 13:23:08 +03:00
|
|
|
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,
|
|
|
|
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_crimson:stripped_warped_hyphae_bark",
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 13:23:08 +03:00
|
|
|
output = "mcl_crimson:warped_hyphae_bark 3",
|
|
|
|
recipe = {
|
|
|
|
{ "mcl_crimson:warped_hyphae", "mcl_crimson:warped_hyphae" },
|
|
|
|
{ "mcl_crimson:warped_hyphae", "mcl_crimson:warped_hyphae" },
|
|
|
|
},
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:stripped_warped_hyphae", {
|
2022-05-04 13:23:08 +03:00
|
|
|
description = description_stripped_trunk,
|
|
|
|
_doc_items_longdesc = longdesc,
|
|
|
|
_doc_items_hidden = false,
|
|
|
|
tiles = {tile_stripped_inner, tile_stripped_inner, tile_stripped_bark},
|
|
|
|
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,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:stripped_warped_hyphae_bark", {
|
2022-05-04 13:23:08 +03:00
|
|
|
description = description_stripped_bark,
|
|
|
|
_doc_items_longdesc = longdesc_wood,
|
|
|
|
tiles = {tile_stripped_bark},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = mcl_util.rotate_axis,
|
|
|
|
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,
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 13:23:08 +03:00
|
|
|
output = "mcl_crimson:stripped_warped_hyphae_bark 3",
|
|
|
|
recipe = {
|
|
|
|
{ "mcl_crimson:stripped_warped_hyphae", "mcl_crimson:stripped_warped_hyphae" },
|
|
|
|
{ "mcl_crimson:stripped_warped_hyphae", "mcl_crimson:stripped_warped_hyphae" },
|
|
|
|
},
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
--Wood
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:warped_hyphae_wood", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Warped Hyphae Wood"),
|
|
|
|
tiles = {"warped_hyphae_wood.png"},
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {handy = 5,axey = 1, flammable = 3, wood=1,building_block = 1, material_wood = 1, fire_encouragement = 5, fire_flammability = 20},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
_mcl_hardness = 2,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
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"))
|
2022-04-29 13:24:29 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 01:24:09 +03:00
|
|
|
output = "mcl_crimson:warped_hyphae_wood 4",
|
|
|
|
recipe = {
|
2022-05-04 13:23:08 +03:00
|
|
|
{"mcl_crimson:warped_hyphae"},
|
|
|
|
},
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 01:24:09 +03:00
|
|
|
output = "mcl_crimson:warped_nyliumd 2",
|
|
|
|
recipe = {
|
2022-05-04 13:23:08 +03:00
|
|
|
{"mcl_crimson:warped_wart_block"},
|
|
|
|
{"mcl_nether:netherrack"},
|
|
|
|
},
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_abm({
|
2022-05-04 01:12:53 +03:00
|
|
|
label = "mcl_crimson:warped_fungus",
|
|
|
|
nodenames = {"mcl_crimson:warped_fungus"},
|
2022-04-29 13:24:29 +03:00
|
|
|
interval = 11,
|
|
|
|
chance = 128,
|
|
|
|
action = function(pos)
|
2022-05-04 13:23:08 +03:00
|
|
|
local nodepos = minetest.get_node(vector.offset(pos, 0, -1, 0))
|
|
|
|
if nodepos.name == "mcl_crimson:warped_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
|
|
|
if pos.y < -28400 then
|
|
|
|
generate_warped_tree(pos)
|
|
|
|
end
|
2022-05-04 01:24:09 +03:00
|
|
|
end
|
|
|
|
end
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_fungus", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Crimson Fungus Mushroom"),
|
2022-04-29 13:24:29 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "farming_crimson_fungus.png" },
|
|
|
|
inventory_image = "farming_crimson_fungus.png",
|
|
|
|
wield_image = "farming_crimson_fungus.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,enderman_takable=1,deco_block=1},
|
|
|
|
light_source = 1,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -3/16, -0.5, -3/16, 3/16, -2/16, 3/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
on_rightclick = function(pos, node, pointed_thing, player)
|
2022-05-04 13:23:08 +03:00
|
|
|
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
|
|
|
local nodepos = minetest.get_node(vector.offset(pos, 0, -1, 0))
|
|
|
|
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)
|
|
|
|
end
|
|
|
|
end
|
2022-05-04 01:24:09 +03:00
|
|
|
end
|
|
|
|
end,
|
2022-04-29 13:24:29 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_roots", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Crimson Roots"),
|
2021-07-19 11:11:16 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "crimson_roots.png" },
|
|
|
|
inventory_image = "crimson_roots.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {dig_immediate=3,vines=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,deco_block=1, shearsy = 1},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -6/16, -0.5, -6/16, 6/16, -4/16, 6/16 },
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
|
|
|
_mcl_silk_touch_drop = false,
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_blast_resistance = 0,
|
2021-07-19 11:11:16 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_hyphae", {
|
2022-04-20 03:29:44 +03:00
|
|
|
description = S("Crimson Hyphae"),
|
|
|
|
_doc_items_longdesc = S("The stem of a crimson hyphae"),
|
|
|
|
_doc_items_hidden = false,
|
|
|
|
tiles = {
|
|
|
|
"crimson_hyphae.png",
|
2022-05-04 01:24:09 +03:00
|
|
|
"crimson_hyphae.png",
|
|
|
|
"crimson_hyphae_side.png",
|
|
|
|
"crimson_hyphae_side.png",
|
|
|
|
"crimson_hyphae_side.png",
|
|
|
|
"crimson_hyphae_side.png",
|
|
|
|
},
|
2022-04-20 03:29:44 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = mcl_util.rotate_axis,
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {handy = 1, axey = 1, tree = 1, building_block = 1, material_wood = 1},
|
2022-04-20 03:29:44 +03:00
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
on_rotate = on_rotate,
|
|
|
|
_mcl_blast_resistance = 2,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
_mcl_stripped_variant = stripped_variant,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-04-20 00:11:01 +03:00
|
|
|
--Stem bark, stripped stem and bark
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_hyphae_bark", {
|
2022-05-04 13:23:08 +03:00
|
|
|
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,
|
|
|
|
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_crimson:stripped_crimson_hyphae_bark",
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 13:23:08 +03:00
|
|
|
output = "mcl_crimson:crimson_hyphae_bark 3",
|
|
|
|
recipe = {
|
|
|
|
{ "mcl_crimson:crimson_hyphae", "mcl_crimson:crimson_hyphae" },
|
|
|
|
{ "mcl_crimson:crimson_hyphae", "mcl_crimson:crimson_hyphae" },
|
|
|
|
},
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:stripped_crimson_hyphae", {
|
2022-05-04 13:23:08 +03:00
|
|
|
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,
|
|
|
|
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,
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:stripped_crimson_hyphae_bark", {
|
2022-05-04 13:23:08 +03:00
|
|
|
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,
|
|
|
|
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,
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 13:23:08 +03:00
|
|
|
output = "mcl_crimson:stripped_crimson_hyphae_bark 3",
|
|
|
|
recipe = {
|
|
|
|
{ "mcl_crimson:stripped_crimson_hyphae", "mcl_crimson:stripped_crimson_hyphae" },
|
|
|
|
{ "mcl_crimson:stripped_crimson_hyphae", "mcl_crimson:stripped_crimson_hyphae" },
|
|
|
|
},
|
|
|
|
})
|
2022-04-20 00:11:01 +03:00
|
|
|
|
|
|
|
--Wood
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_hyphae_wood", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Crimson Hyphae Wood"),
|
|
|
|
tiles = {"crimson_hyphae_wood.png"},
|
2022-05-04 13:23:08 +03:00
|
|
|
groups = {handy = 5, axey = 1, wood = 1, building_block = 1, material_wood = 1},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
_mcl_hardness = 2,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_nylium", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Crimson Nylium"),
|
2022-05-04 13:23:08 +03:00
|
|
|
tiles = {
|
|
|
|
"crimson_nylium.png",
|
|
|
|
"mcl_nether_netherrack.png",
|
|
|
|
"mcl_nether_netherrack.png^crimson_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^crimson_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^crimson_nylium_side.png",
|
|
|
|
"mcl_nether_netherrack.png^crimson_nylium_side.png",
|
|
|
|
},
|
|
|
|
groups = {pickaxey = 1, building_block = 1, material_stone = 1},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
drop = "mcl_nether:netherrack",
|
2022-05-04 13:23:08 +03:00
|
|
|
_mcl_hardness = 0.4,
|
|
|
|
_mcl_blast_resistance = 0.4,
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_silk_touch_drop = true,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
minetest.register_node("mcl_crimson:crimson_checknode", {
|
2022-05-04 01:24:09 +03:00
|
|
|
description = S("Crimson Checknode - only to check!"),
|
2022-05-04 13:23:08 +03:00
|
|
|
tiles = {"mcl_nether_netherrack.png"},
|
|
|
|
groups = {pickaxey = 1, building_block = 1, material_stone = 1, not_in_creative_inventory = 1},
|
2022-05-04 01:24:09 +03:00
|
|
|
paramtype2 = "facedir",
|
2022-05-04 13:23:08 +03:00
|
|
|
is_ground_content = true,
|
|
|
|
drop = "mcl_nether:netherrack",
|
2022-05-04 01:24:09 +03:00
|
|
|
_mcl_hardness = 0.4,
|
|
|
|
_mcl_blast_resistance = 0.4,
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 01:24:09 +03:00
|
|
|
output = "mcl_crimson:crimson_hyphae_wood 4",
|
|
|
|
recipe = {
|
2022-05-04 13:23:08 +03:00
|
|
|
{"mcl_crimson:crimson_hyphae"},
|
|
|
|
},
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2022-05-04 01:24:09 +03:00
|
|
|
output = "mcl_crimson:crimson_nyliumd 2",
|
|
|
|
recipe = {
|
2022-05-04 13:23:08 +03:00
|
|
|
{"mcl_nether:nether_wart"},
|
|
|
|
{"mcl_nether:netherrack"},
|
|
|
|
},
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|
|
|
|
|
2022-05-04 01:12:53 +03:00
|
|
|
mcl_stairs.register_stair_and_slab_simple("crimson_hyphae_wood", "mcl_crimson:crimson_hyphae_wood", "Crimson Stair", "Crimson Slab", "Double Crimson Slab")
|
2022-04-29 13:24:29 +03:00
|
|
|
|
|
|
|
minetest.register_abm({
|
2022-05-04 01:12:53 +03:00
|
|
|
label = "mcl_crimson:crimson_fungus",
|
|
|
|
nodenames = {"mcl_crimson:crimson_fungus"},
|
2022-04-29 13:24:29 +03:00
|
|
|
interval = 11,
|
|
|
|
chance = 128,
|
|
|
|
action = function(pos)
|
2022-05-04 13:23:08 +03:00
|
|
|
local nodepos = minetest.get_node(vector.offset(pos, 0, -1, 0))
|
|
|
|
if nodepos.name == "mcl_crimson:crimson_nylium" or nodepos.name == "mcl_nether:netherrack" then
|
|
|
|
if pos.y < -28400 then
|
|
|
|
generate_crimson_tree(pos)
|
|
|
|
end
|
2022-05-04 01:24:09 +03:00
|
|
|
end
|
|
|
|
end
|
2022-04-29 13:24:29 +03:00
|
|
|
})
|