forked from MineClone5/MineClone5
Add more decoration blocks.
Added the decorations lbocks, and chancheg generation of decoration a bit.
This commit is contained in:
parent
51372c5601
commit
da0cb4853d
|
@ -67,8 +67,7 @@ minetest.register_node("mcl_mushroom:twisting_vines", {
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
buildable_to = 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},
|
groups = {dig_immediate=3,vines=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,deco_block=1, shearsy = 1},
|
||||||
light_source = 1,
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -3/16, -0.5, -3/16, 3/16, 0.5, 3/16 },
|
fixed = { -3/16, -0.5, -3/16, 3/16, 0.5, 3/16 },
|
||||||
|
@ -84,6 +83,60 @@ minetest.register_node("mcl_mushroom:twisting_vines", {
|
||||||
grow_twisting_vines(pos, math.random(1, 3))
|
grow_twisting_vines(pos, math.random(1, 3))
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {"mcl_mushroom: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_blast_resistance = 0,
|
||||||
|
stack_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_mushroom:nether_sprouts", {
|
||||||
|
description = S("Nether Sprouts"),
|
||||||
|
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,
|
||||||
|
_mcl_blast_resistance = 0,
|
||||||
|
stack_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_mushroom:warped_roots", {
|
||||||
|
description = S("Warped Roots"),
|
||||||
|
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,
|
||||||
_mcl_blast_resistance = 0,
|
_mcl_blast_resistance = 0,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
})
|
})
|
||||||
|
@ -218,6 +271,10 @@ minetest.register_abm({
|
||||||
grow_twisting_vines({ x = pos.x, y = pos.y, z = pos.z } ,math.random(1, 4))
|
grow_twisting_vines({ x = pos.x, y = pos.y, z = pos.z } ,math.random(1, 4))
|
||||||
elseif randomg > 45 and randomg <= 50 then
|
elseif randomg > 45 and randomg <= 50 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_mushroom:crimson_fungus" })
|
||||||
|
elseif randomg > 50 and randomg <= 150 then
|
||||||
|
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:nether_sprouts" })
|
||||||
|
elseif randomg > 150 and randomg <= 250 then
|
||||||
|
minetest.set_node({ x = pos.x, y = pos.y + 1, z = pos.z }, { name = "mcl_mushroom:warped_roots" })
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -273,6 +330,26 @@ minetest.register_node("mcl_mushroom:crimson_fungus", {
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_mushroom:crimson_roots", {
|
||||||
|
description = S("Crimson Roots"),
|
||||||
|
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,
|
||||||
|
_mcl_blast_resistance = 0,
|
||||||
|
stack_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("mcl_mushroom:crimson_hyphae", {
|
minetest.register_node("mcl_mushroom:crimson_hyphae", {
|
||||||
description = S("Crimson Hyphae"),
|
description = S("Crimson Hyphae"),
|
||||||
tiles = {"crimson_hyphae.png",
|
tiles = {"crimson_hyphae.png",
|
||||||
|
@ -375,12 +452,16 @@ minetest.register_abm({
|
||||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
||||||
if nodepos.name == "air" then
|
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_mushroom:crimson_nylium" })
|
||||||
local randomg = math.random(1, 40)
|
local randomg = math.random(1, 400)
|
||||||
if randomg == 2 then
|
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_mushroom:crimson_fungus" })
|
||||||
elseif randomg == 7 then
|
elseif randomg > 10 and randomg <= 25 then
|
||||||
local pos1 = { x = pos.x, y = pos.y + 1, z = pos.z }
|
local pos1 = { x = pos.x, y = pos.y + 1, z = pos.z }
|
||||||
generate_crimson_tree(pos1)
|
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" })
|
||||||
|
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" })
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_nether:netherrack" })
|
minetest.swap_node({ x = pos.x, y = pos.y, z = pos.z }, { name = "mcl_nether:netherrack" })
|
||||||
|
|
Loading…
Reference in New Issue