A WIMBA WAY A WIMBA WAY A WIMBA WAY A WIMBA WAY A WIMBA WAY A WIMBA WAY

master
Jordach 2018-09-19 17:43:50 +01:00
parent bfbff578f2
commit de50368241
7 changed files with 409 additions and 67 deletions

View File

@ -705,8 +705,13 @@ minetest.register_node("core:oak_sapling", {
tiles = {"core_oak_sapling.png"},
waving = 1,
walkable = false,
paramtype2 = "meshoptions",
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("core:pine_sapling", {
@ -716,8 +721,13 @@ minetest.register_node("core:pine_sapling", {
tiles = {"core_pine_sapling.png"},
waving = 1,
walkable = false,
paramtype2 = "meshoptions",
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("core:birch_sapling", {
@ -727,8 +737,13 @@ minetest.register_node("core:birch_sapling", {
tiles = {"core_birch_sapling.png"},
waving = 1,
walkable = false,
paramtype2 = "meshoptions",
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("core:cherry_sapling", {
@ -736,10 +751,15 @@ minetest.register_node("core:cherry_sapling", {
drawtype = "plantlike",
paramtype = "light",
tiles = {"core_cherry_sapling.png"},
paramtype2 = "meshoptions",
waving = 1,
walkable = false,
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("core:acacia_sapling", {
@ -748,11 +768,31 @@ minetest.register_node("core:acacia_sapling", {
paramtype = "light",
tiles = {"core_cherry_sapling.png"},
waving = 1,
paramtype2 = "meshoptions",
walkable = false,
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("core:wimba_sapling", {
description = "Wimba Sapling",
drawtype = "plantlike",
paramtype = "light",
tiles = {"core_wimba_sapling.png"},
waving = 1,
walkable = false,
groups = {snappy=3, flammable=2, attached_node=1},
sounds = mcore.sound_plants,
paramtype2 = "meshoptions",
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- acacia
@ -809,48 +849,109 @@ minetest.register_node("core:acacia_planks", {
sounds = mcore.sound_wood,
})
-- a wimba way a wimba way
minetest.register_node("core:wimba_log", {
description = "Wimba Log",
tiles = {"core_wimba_log_top.png", "core_wimba_log_top.png", "core_wimba_log.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree=1, choppy=3, flammable=2, solid=1},
on_place = mcore.sensible_facedir,
sounds = mcore.sound_wood,
})
minetest.register_node("core:wimba_log_grassy", {
description = "Wimba Log (Grassy)",
tiles = {"core_wimba_log_top.png", "core_wimba_log_top.png", "core_wimba_log.png^core_long_grass_wild_1.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree=1, choppy=3, flammable=2, solid=1, nodec=1},
on_place = mcore.sensible_facedir,
sounds = mcore.sound_wood,
})
minetest.register_node("core:wimba_leaves", {
description = "Wimba Leaves",
tiles = {"core_wimba_leaves.png"},
special_tiles = {"core_wimba_leaves.png"},
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.3,
paramtype = "light",
is_ground_content = false,
groups = {snappy=3, leafdecay=3, flammable=2},
drop = {
max_items = 1,
items = {
{
items = {"core:wimba_sapling"},
rarity = 16,
},
{
items = {"core:wimba_leaves"},
}
}
},
after_place_node = default.after_place_leaves,
sounds = mcore.sound_plants,
})
minetest.register_node("core:wimba_planks", {
description = "Wimba Planks",
tiles = {"core_wimba_planks.png"},
groups = {choppy=3, flammable=2, solid=1, planks=1},
sounds = mcore.sound_wood,
})
minetest.register_node("core:vine", {
description = "Vines",
tiles = {"core_vine.png"},
groups = {snappy=3, flammable=2, attached_node=1},
drawtype = "plantlike",
paramtype = "light",
sunlight_propagates = true,
climbable = true,
walkable = false,
})
-- leafdecay definitions
default.register_leafdecay({
trunks = {"core:oak_log"},
leaves = {"core:oak_leaves"},
radius = 3,
})
default.register_leafdecay({
trunks = {"core:birch_log"},
leaves = {"core:birch_leaves"},
radius = 3,
})
default.register_leafdecay({
trunks = {"core:pine_log"},
leaves = {"core:pine_needles_snowy", "core:pine_needles"},
radius = 5,
})
default.register_leafdecay({
trunks = {"core:cherry_log"},
leaves = {"core:cherry_leaves", "core:fallen_cherry_leaves"},
radius = 3,
})
default.register_leafdecay({
trunks = {"core:acacia_log"},
leaves = {"core:acacia_leaves"},
radius = 5,
})
default.register_leafdecay({
trunks = {"core:wimba_log"},
leaves = {"core:wimba_leaves"},
radius = 5,
})
-- cacti
@ -861,7 +962,6 @@ minetest.register_node("core:cactus", {
drawtype = "mesh",
paramtype = "light",
mesh = "core_cactus.b3d",
groups = {choppy=3, flammable=2, attached_node=1},
sounds = mcore.sound_wood,
damage_per_second = 1,

View File

@ -363,6 +363,22 @@ minetest.register_craft({
},
})
minetest.register_craft({
type = "shapeless",
output = "core:wimba_planks 6",
recipe = {
"core:wimba_log",
},
})
minetest.register_craft({
type = "shapeless",
output = "core:wimba_planks 6",
recipe = {
"core:wimba_log_grassy",
},
})
-- craft some grassy versions of logs
minetest.register_craft({
@ -401,6 +417,25 @@ minetest.register_craft({
},
})
minetest.register_craft({
type = "shapeless",
output = "core:acacia_log_grassy 1",
recipe = {
"core:acacia_log",
"core:grass_wild_1"
},
})
minetest.register_craft({
type = "shapeless",
output = "core:wimba_log_grassy 1",
recipe = {
"core:wimba_log",
"core:grass_wild_1"
},
})
-- sticks
minetest.register_craftitem("core:stick", {

View File

@ -98,6 +98,14 @@ minetest.register_node("core:mg_acacia_sapling", {
groups = {not_in_creative_inventory=1},
})
minetest.register_node("core:mg_wimba_sapling", {
description = "Impossible to get node.",
drawtype = "airlike",
paramtype = "light",
--tiles = {"xfences_space.png"},
groups = {not_in_creative_inventory=1},
})
-- vmanip on generate
local c_mg_birch_sap = minetest.get_content_id("core:mg_birch_sapling")
@ -108,6 +116,7 @@ local c_mg_pine_snowy_sap = minetest.get_content_id("core:mg_pine_snowy_sapling"
local c_mg_grass = minetest.get_content_id("core:mg_grass")
local c_mg_grass_snowy = minetest.get_content_id("core:mg_grass_snowy")
local c_mg_aca_sap = minetest.get_content_id("core:mg_acacia_sapling")
local c_mg_wim_sap = minetest.get_content_id("core:mg_wimba_sapling")
minetest.register_on_generated(function(minp, maxp, seed)
local timer = os.clock()
@ -144,7 +153,10 @@ minetest.register_on_generated(function(minp, maxp, seed)
elseif content_id == c_mg_aca_sap then
mcore.create_acacia_tree({x=x, y=y, z=z})
trees_grown = trees_grown + 1
elseif content_id == c_mg_wim_sap then
mcore.create_wimba_tree({x=x, y=y, z=z})
trees_grown = trees_grown + 1
end
end
end
@ -155,8 +167,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
vm:set_data(data)
vm:calc_lighting()
vm:update_liquids()
--vm:write_to_map()
vm:update_map()
vm:update_map()
end)
-- tree vmanip function
@ -207,7 +218,6 @@ function mcore.grow_pine(pos, boolsnow)
for yy = maxy - 1, maxy + 1 do
for zz = z - dev, z + dev do
local vi = a:index(x - dev, yy, zz)
local via = a:index(x - dev, yy + 1, zz)
for xx = x - dev, x + dev do
if math.random() < 0.95 - dev * 0.05 then
if boolsnow == false then
@ -219,7 +229,6 @@ function mcore.grow_pine(pos, boolsnow)
end
end
vi = vi + 1
via = via + 1
end
end
dev = dev - 1
@ -250,7 +259,6 @@ function mcore.grow_pine(pos, boolsnow)
end
for zz = zi, zi+1 do
local vi = a:index(xi, yy, zz)
local via = a:index(xi, yy + 1, zz)
for xx = xi, xi + 1 do
if boolsnow == false then
add_pine_needles(data, vi, c_air, c_ignore)
@ -261,7 +269,6 @@ function mcore.grow_pine(pos, boolsnow)
add_pine_snow(data, vi, c_air, c_ignore)
end
vi = vi + 1
via = via + 1
end
end
end
@ -270,7 +277,6 @@ function mcore.grow_pine(pos, boolsnow)
for yy = my + 1, my + 2 do
for zz = z - dev, z + dev do
local vi = a:index(x - dev, yy, zz)
local via = a:index(x - dev, yy + 1, zz)
for xx = x - dev, x + dev do
if random() < 0.95 - dev * 0.05 then
if boolsnow == false then
@ -283,7 +289,6 @@ function mcore.grow_pine(pos, boolsnow)
end
end
vi = vi + 1
via = via + 1
end
end
dev = dev - 1
@ -442,7 +447,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 2 and zl == -2 then
elseif xl == 2 and zl == 2 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -462,7 +467,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 3 and zl == -3 then
elseif xl == 3 and zl == 3 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -482,7 +487,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 2 and zl == -2 then
elseif xl == 2 and zl == 2 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -502,7 +507,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 3 and zl == -3 then
elseif xl == 3 and zl == 3 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -524,7 +529,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 2 and zl == -2 then
elseif xl == 2 and zl == 2 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -544,7 +549,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 3 and zl == -3 then
elseif xl == 3 and zl == 3 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -572,7 +577,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 2 and zl == -2 then
elseif xl == 2 and zl == 2 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -592,7 +597,7 @@ function mcore.create_acacia_tree(pos)
elseif xl == 3 and zl == -3 then
elseif xl == 3 and zl == 3 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
@ -674,6 +679,125 @@ function mcore.grow_tree(pos, is_apple_tree, trunk_node, leaves_node, fallen_lea
vm:update_map()
end
function mcore.create_wimba_tree(pos)
local c_air = minetest.get_content_id("air")
local c_dirt = minetest.get_content_id("core:dirt")
local c_leaves = minetest.get_content_id("core:wimba_leaves")
local c_trunk = minetest.get_content_id("core:wimba_log")
local c_trunk_grassy = minetest.get_content_id("core:wimba_log_grassy")
local c_vine_co = minetest.get_content_id("core:vine")
local x2, y2, z2 = pos.x, pos.y, pos.z
local height = math.random(8, 16)
local vm = minetest.get_voxel_manip()
local minp, maxp = vm:read_from_map(
{x = pos.x - 5, y = pos.y - 1, z = pos.z - 5},
{x = pos.x + 5, y = pos.y + height + 1, z = pos.z + 5}
)
local a = VoxelArea:new({MinEdge = minp, MaxEdge = maxp})
local data = vm:get_data()
for i=0, height do
local vi = a:index(x2, y2 + i, z2)
if i == 0 then
data[vi] = c_trunk_grassy
elseif data[vi] == c_air or data[vi] == c_ignore then
data[vi] = c_trunk
end
end
-- draw the little X shaped trunk at the bottom:
local vi = a:index(x2-1, y2-1, z2-1)
data[vi] = c_trunk_grassy
vi = a:index(x2-1, y2-1, z2+1)
data[vi] = c_trunk_grassy
vi = a:index(x2+1, y2-1, z2-1)
data[vi] = c_trunk_grassy
vi = a:index(x2+1, y2-1, z2+1)
data[vi] = c_trunk_grassy
vi = a:index(x2-1, y2, z2-1)
data[vi] = c_trunk
vi = a:index(x2-1, y2, z2+1)
data[vi] = c_trunk
vi = a:index(x2+1, y2, z2-1)
data[vi] = c_trunk
vi = a:index(x2+1, y2, z2+1)
data[vi] = c_trunk
for xl=-4, 4 do -- lower leaves
for zl=-4, 4 do
vi = a:index(x2 + xl, y2 + height, z2 + zl)
if xl == -4 and zl == -4 then
elseif xl == -4 and zl == 4 then
elseif xl == 4 and zl == -4 then
elseif xl == 4 and zl == 4 then
elseif data[vi] == c_air then
if math.random (1,100) < 92 then
data[vi] = c_leaves
end
end
-- RIP vine.co
if xl == -4 and zl == -4 then
elseif xl == -4 and zl == 4 then
elseif xl == 4 and zl == -4 then
elseif xl == 4 and zl == 4 then
else
if math.random (1,12) == 1 then
for y1 = 1, math.random(5, height-1) do
vi = a:index(x2 + xl, y2 + height - y1, z2 + zl)
if data[vi] == c_air then
data[vi] = c_vine_co
end
end
end
end
end
end
for xl=-3, 3 do -- top part
for zl=-3, 3 do
local vi = a:index(x2 + xl, y2 + height + 1, z2 + zl)
if xl == -3 and zl == -3 then
elseif xl == -3 and zl == 3 then
elseif xl == 3 and zl == -3 then
elseif xl == 3 and zl == 3 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
end
end
for xl=-2, 2 do -- top part
for zl=-2, 2 do
local vi = a:index(x2 + xl, y2 + height + 2, z2 + zl)
if xl == -2 and zl == -2 then
elseif xl == -2 and zl == 2 then
elseif xl == 2 and zl == -2 then
elseif xl == 2 and zl == 2 then
elseif data[vi] == c_air then
if math.random (1,100) < 85 then
data[vi] = c_leaves
end
end
end
end
vm:set_data(data)
vm:calc_lighting()
vm:write_to_map()
vm:update_map()
end
-- biome defs
minetest.register_biome({
@ -1045,7 +1169,7 @@ minetest.register_decoration({
minetest.register_decoration({
deco_type = "simple",
place_on = "core:grass",
place_on = {"core:grass"},
decoration = {"core:mg_oak_sapling", "core:mg_cherry_sapling", "core:mg_birch_sapling"},
sidelen = 80,
fill_ratio = 0.0001,
@ -1059,7 +1183,7 @@ minetest.register_decoration({
decoration = {"core:grass_1", "core:grass_2", "core:grass_3"},
sidelen = 16,
fill_ratio = 0.2,
biomes = {"plains", "plains_forest", "jungle", "highlands"},
biomes = {"plains", "plains_forest", "highlands"},
height = 1,
param2 = mcore.options("cross", true, true, false),
})
@ -1079,10 +1203,10 @@ minetest.register_decoration({
place_on = "core:grass_wildland",
decoration = {"core:grass_wild_1", "core:grass_wild_2", "core:grass_wild_3"},
sidelen = 20,
fill_ratio = 0.005,
fill_ratio = 0.02,
biomes = {"wildlands"},
height = 1,
param2 = mcore.options("cross", true, true, false),
param2 = mcore.options("cross", true, true, true),
})
minetest.register_decoration({
@ -1090,10 +1214,10 @@ minetest.register_decoration({
place_on = "core:grass_wildland",
decoration = {"core:grass_wild_1", "core:grass_wild_2", "core:grass_wild_3"},
sidelen = 20,
fill_ratio = 0.01,
fill_ratio = 0.3,
biomes = {"jungle"},
height = 1,
param2 = mcore.options("cross", true, true, false),
param2 = mcore.options("cross", true, true, true),
})
minetest.register_decoration({
@ -1101,8 +1225,8 @@ minetest.register_decoration({
place_on = "core:grass_wildland",
decoration = {"core:bamboo"},
sidelen = 20,
fill_ratio = 0.01,
biomes = {"wildlands"},
fill_ratio = 0.02,
biomes = {"jungle"},
height = 4,
height_max = 6,
})
@ -1110,12 +1234,13 @@ minetest.register_decoration({
minetest.register_decoration({
deco_type = "simple",
place_on = "core:grass_wildland",
decoration = {"core:cobble"},
decoration = {"core:mg_wimba_sapling"},
sidelen = 16,
fill_ratio = 0.02,
biomes = {"wildlands"},
height = 8,
height_max = 14,
fill_ratio = 0.08,
biomes = {"jungle"},
height = 1,
--height = 8,
--height_max = 14,
})
-- plants items

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

View File

@ -170,6 +170,10 @@ minetest.register_node("plants:red_rose", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
@ -189,7 +193,10 @@ minetest.register_node("plants:geranium", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:poppy", {
@ -208,7 +215,10 @@ minetest.register_node("plants:poppy", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- orange
@ -229,7 +239,10 @@ minetest.register_node("plants:orange_tulip", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:million_bells", {
@ -248,7 +261,10 @@ minetest.register_node("plants:million_bells", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:stellar_daisy", { -- african daisy
@ -267,7 +283,10 @@ minetest.register_node("plants:stellar_daisy", { -- african daisy
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- yellow
@ -288,7 +307,10 @@ minetest.register_node("plants:daffodil", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:starflower", { -- note - use custom mesh, realname sunflower
@ -307,7 +329,10 @@ minetest.register_node("plants:starflower", { -- note - use custom mesh, realnam
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:peonie", {
@ -326,7 +351,10 @@ minetest.register_node("plants:peonie", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- green
@ -347,7 +375,10 @@ minetest.register_node("plants:carnation", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:bells_of_terra", { -- real name: bells of ireland
@ -366,7 +397,10 @@ minetest.register_node("plants:bells_of_terra", { -- real name: bells of ireland
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:daylilly", {
@ -385,7 +419,10 @@ minetest.register_node("plants:daylilly", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- blue
@ -406,7 +443,10 @@ minetest.register_node("plants:bluebells", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:lily_of_the_dream", { --real name, lily of the nile
@ -425,7 +465,10 @@ minetest.register_node("plants:lily_of_the_dream", { --real name, lily of the ni
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:angelface", {
@ -444,7 +487,10 @@ minetest.register_node("plants:angelface", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- violet
@ -465,7 +511,10 @@ minetest.register_node("plants:violet", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:pansy", {
@ -484,7 +533,10 @@ minetest.register_node("plants:pansy", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:crocus", {
@ -503,7 +555,10 @@ minetest.register_node("plants:crocus", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- pink / cherry
@ -524,7 +579,10 @@ minetest.register_node("plants:lilac", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:allium", {
@ -543,7 +601,10 @@ minetest.register_node("plants:allium", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:camellia", {
@ -562,7 +623,10 @@ minetest.register_node("plants:camellia", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- white
@ -583,7 +647,10 @@ minetest.register_node("plants:dandelion", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:yarrow", {
@ -602,7 +669,10 @@ minetest.register_node("plants:yarrow", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:snapdragon", {
@ -621,7 +691,10 @@ minetest.register_node("plants:snapdragon", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- black
@ -642,7 +715,10 @@ minetest.register_node("plants:black_rose", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:hellebore", {
@ -661,7 +737,10 @@ minetest.register_node("plants:hellebore", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
minetest.register_node("plants:daylia", {
@ -680,7 +759,10 @@ minetest.register_node("plants:daylia", {
fixed = {-0.25, -0.5, -0.25, 0.25, -5/16, 0.25},
},
sounds = mcore.sound_plants,
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place_node(itemstack, placer, pointed_thing, mcore.options("cross", true, true, false))
return itemstack
end,
})
-- create a mapgen file to handle mapgen for these flowers;