mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
Merge pull request 'Added clovers' (#4224) from clovers into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4224
This commit is contained in:
commit
c65176af81
8 changed files with 105 additions and 2 deletions
|
@ -183,6 +183,36 @@ def_fern.groups.compostability = 65
|
|||
|
||||
minetest.register_node("mcl_flowers:fern", def_fern)
|
||||
|
||||
|
||||
--- Clover ---
|
||||
-- Similar deal as fern, we can copy a lot from tall grass
|
||||
local def_clover = table.copy(def_tallgrass)
|
||||
def_clover.description = S("Clover")
|
||||
def_clover._doc_items_longdesc = S("Clovers are small plants which occur naturally in plains and other temperate biomes. They can be picked up and planted again.")
|
||||
def_clover.drawtype = "mesh"
|
||||
def_clover.mesh = "mcl_clover_3leaf.obj"
|
||||
def_clover.tiles = { "mcl_flowers_clover.png" }
|
||||
def_clover.inventory_image = "mcl_flowers_clover_inv.png"
|
||||
def_clover.wield_image = "mcl_flowers_clover_inv.png"
|
||||
def_clover.drop = nil
|
||||
def_clover.selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -4/16, -0.5, -4/16, 4/16, 0, 4/16 },
|
||||
}
|
||||
def_clover.groups.compostability = 30
|
||||
|
||||
minetest.register_node("mcl_flowers:clover", def_clover)
|
||||
|
||||
local def_4l_clover = table.copy(def_clover)
|
||||
def_4l_clover.description = S("Four-leaf Clover")
|
||||
def_4l_clover._doc_items_longdesc = S("Clovers are small plants which occur naturally in plains and other temperate biomes. They can be picked up and planted again.")
|
||||
def_4l_clover.mesh = "mcl_clover_4leaf.obj"
|
||||
def_4l_clover.tiles = { "mcl_flowers_fourleaf_clover.png" }
|
||||
def_4l_clover.inventory_image = "mcl_flowers_fourleaf_clover_inv.png"
|
||||
def_4l_clover.wield_image = "mcl_flowers_fourleaf_clover_inv.png"
|
||||
|
||||
minetest.register_node("mcl_flowers:fourleaf_clover", def_4l_clover)
|
||||
|
||||
if has_mcl_flowerpots then
|
||||
mcl_flowerpots.register_potted_flower("mcl_flowers:fern", {
|
||||
name = "fern",
|
||||
|
|
38
mods/ITEMS/mcl_flowers/models/mcl_clover_3leaf.obj
Normal file
38
mods/ITEMS/mcl_flowers/models/mcl_clover_3leaf.obj
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Blender 3.6.7
|
||||
# www.blender.org
|
||||
mtllib mcl_clover_3leaf.mtl
|
||||
o Plane
|
||||
v 0.000000 -0.280000 0.000000
|
||||
v 0.000000 -0.280000 0.000000
|
||||
v -0.250000 -0.280000 -0.250000
|
||||
v 0.250000 -0.280000 -0.250000
|
||||
v 0.035355 -0.500000 0.035355
|
||||
v 0.035355 -0.300000 0.035355
|
||||
v -0.035355 -0.500000 -0.035355
|
||||
v -0.035355 -0.300000 -0.035355
|
||||
v 0.035355 -0.500000 -0.035355
|
||||
v 0.035355 -0.300000 -0.035355
|
||||
v -0.035355 -0.500000 0.035355
|
||||
v -0.035355 -0.300000 0.035355
|
||||
v -0.091506 -0.280000 0.341506
|
||||
v -0.341506 -0.280000 -0.091506
|
||||
v 0.000000 -0.280000 0.000000
|
||||
v 0.341506 -0.280000 -0.091506
|
||||
v 0.091506 -0.280000 0.341506
|
||||
vn -0.0000 1.0000 -0.0000
|
||||
vn -0.7071 -0.0000 0.7071
|
||||
vn 0.7071 -0.0000 0.7071
|
||||
vt 0.500000 0.437500
|
||||
vt 1.000000 0.937500
|
||||
vt 0.000000 0.937500
|
||||
vt 0.437500 0.062500
|
||||
vt 0.562500 0.062500
|
||||
vt 0.562500 0.437500
|
||||
vt 0.437500 0.437500
|
||||
s 0
|
||||
usemtl Material.001
|
||||
f 2/1/1 4/2/1 3/3/1
|
||||
f 5/4/2 6/5/2 8/6/2 7/7/2
|
||||
f 9/4/3 10/5/3 12/6/3 11/7/3
|
||||
f 1/1/1 14/2/1 13/3/1
|
||||
f 15/1/1 17/2/1 16/3/1
|
32
mods/ITEMS/mcl_flowers/models/mcl_clover_4leaf.obj
Normal file
32
mods/ITEMS/mcl_flowers/models/mcl_clover_4leaf.obj
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Blender 3.6.7
|
||||
# www.blender.org
|
||||
mtllib mcl_clover_4leaf.mtl
|
||||
o Plane
|
||||
v -0.250000 -0.280000 0.250000
|
||||
v 0.250000 -0.280000 0.250000
|
||||
v -0.250000 -0.280000 -0.250000
|
||||
v 0.250000 -0.280000 -0.250000
|
||||
v 0.035355 -0.500000 0.035355
|
||||
v 0.035355 -0.300000 0.035355
|
||||
v -0.035355 -0.500000 -0.035355
|
||||
v -0.035355 -0.300000 -0.035355
|
||||
v 0.035355 -0.500000 -0.035355
|
||||
v 0.035355 -0.300000 -0.035355
|
||||
v -0.035355 -0.500000 0.035355
|
||||
v -0.035355 -0.300000 0.035355
|
||||
vn -0.0000 1.0000 -0.0000
|
||||
vn -0.7071 -0.0000 0.7071
|
||||
vn 0.7071 -0.0000 0.7071
|
||||
vt 0.000000 0.125000
|
||||
vt 0.875000 0.125000
|
||||
vt 0.875000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.875000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 0.375000
|
||||
vt 0.875000 0.375000
|
||||
s 0
|
||||
usemtl Material.001
|
||||
f 1/1/1 2/2/1 4/3/1 3/4/1
|
||||
f 5/5/2 6/6/2 8/7/2 7/8/2
|
||||
f 9/5/3 10/6/3 12/7/3 11/8/3
|
|
@ -5590,7 +5590,7 @@ local function register_decorations()
|
|||
num_spawn_by = 1,
|
||||
})
|
||||
end
|
||||
local function register_flower(name, biomes, seed, is_in_flower_forest)
|
||||
local function register_flower(name, biomes, seed, is_in_flower_forest, custom_rarity_mod)
|
||||
if is_in_flower_forest == nil then
|
||||
is_in_flower_forest = true
|
||||
end
|
||||
|
@ -5600,7 +5600,7 @@ local function register_decorations()
|
|||
place_on = {"group:grass_block_no_snow", "mcl_core:dirt"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.0008,
|
||||
offset = 0.0008 + (custom_rarity_mod or 0),
|
||||
scale = 0.006,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = seed,
|
||||
|
@ -5652,6 +5652,9 @@ local function register_decorations()
|
|||
|
||||
register_flower("lily_of_the_valley", nil, 325)
|
||||
register_flower("cornflower", flower_biomes2, 486)
|
||||
|
||||
register_flower("clover", flower_biomes1, 3, false, 0.04)
|
||||
register_flower("fourleaf_clover", flower_biomes1, 13, false, -0.002)
|
||||
end
|
||||
|
||||
-- Decorations in non-Overworld dimensions
|
||||
|
|
BIN
textures/mcl_flowers_clover.png
Normal file
BIN
textures/mcl_flowers_clover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 B |
BIN
textures/mcl_flowers_clover_inv.png
Normal file
BIN
textures/mcl_flowers_clover_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 191 B |
BIN
textures/mcl_flowers_fourleaf_clover.png
Normal file
BIN
textures/mcl_flowers_fourleaf_clover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 B |
BIN
textures/mcl_flowers_fourleaf_clover_inv.png
Normal file
BIN
textures/mcl_flowers_fourleaf_clover_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 189 B |
Loading…
Reference in a new issue