mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
Add clovers and four-leaf clovers
This commit is contained in:
parent
21dbc25f13
commit
ade2a1a6a2
7 changed files with 100 additions and 0 deletions
|
@ -183,6 +183,36 @@ def_fern.groups.compostability = 65
|
||||||
|
|
||||||
minetest.register_node("mcl_flowers:fern", def_fern)
|
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
|
if has_mcl_flowerpots then
|
||||||
mcl_flowerpots.register_potted_flower("mcl_flowers:fern", {
|
mcl_flowerpots.register_potted_flower("mcl_flowers:fern", {
|
||||||
name = "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
|
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