1
0
Fork 0

new sunflower mesh

mobile_bow_workaround
JoseDouglas26 2023-12-14 12:42:44 -03:00 committed by the-real-herowl
parent a1d390bd4d
commit 113f07581b
3 changed files with 119 additions and 3 deletions

View File

@ -383,9 +383,6 @@ add_large_plant("peony", S("Peony"), S("A peony is a large plant which occupies
add_large_plant("rose_bush", S("Rose Bush"), S("A rose bush is a large plant which occupies two blocks. It is safe to touch it. Rose bushes are mainly used in dye production."), "mcl_flowers_double_plant_rose_bottom.png", "mcl_flowers_double_plant_rose_top.png", nil, 5/16, 1/16) add_large_plant("rose_bush", S("Rose Bush"), S("A rose bush is a large plant which occupies two blocks. It is safe to touch it. Rose bushes are mainly used in dye production."), "mcl_flowers_double_plant_rose_bottom.png", "mcl_flowers_double_plant_rose_top.png", nil, 5/16, 1/16)
add_large_plant("lilac", S("Lilac"), S("A lilac is a large plant which occupies two blocks. It is mainly used in dye production."), "mcl_flowers_double_plant_syringa_bottom.png", "mcl_flowers_double_plant_syringa_top.png", nil, 5/16, 6/16) add_large_plant("lilac", S("Lilac"), S("A lilac is a large plant which occupies two blocks. It is mainly used in dye production."), "mcl_flowers_double_plant_syringa_bottom.png", "mcl_flowers_double_plant_syringa_top.png", nil, 5/16, 6/16)
-- TODO: Make the sunflower face East. Requires a mesh for the top node.
add_large_plant("sunflower", S("Sunflower"), S("A sunflower is a large plant which occupies two blocks. It is mainly used in dye production."), "mcl_flowers_double_plant_sunflower_bottom.png", "mcl_flowers_double_plant_sunflower_top.png^mcl_flowers_double_plant_sunflower_front.png", "mcl_flowers_double_plant_sunflower_front.png", 6/16, 6/16)
local longdesc_grass = S("Double tallgrass a variant of tall grass and occupies two blocks. It can be harvested for wheat seeds.") local longdesc_grass = S("Double tallgrass a variant of tall grass and occupies two blocks. It can be harvested for wheat seeds.")
local longdesc_fern = S("Large fern is a variant of fern and occupies two blocks. It can be harvested for wheat seeds.") local longdesc_fern = S("Large fern is a variant of fern and occupies two blocks. It can be harvested for wheat seeds.")
@ -522,4 +519,32 @@ if mod_mcimport and mg_name == "singlenode" and fix_doubleplants == true then
}) })
end end
minetest.register_node("mcl_flowers:sunflower", {
description = S("Sunflower"),
_doc_items_longdesc = S("A sunflower is a large plant which occupies two blocks. It is mainly used in dye production."),
drawtype = "mesh",
groups = {
attached_node = 1, deco_block = 1,
dig_by_water = 1, destroy_by_lava_flow = 1, dig_by_piston = 1,
flammable = 2, fire_encouragement = 60, fire_flammability = 100,
plant = 1, double_plant = 1, non_mycelium_plant = 1, compostability = 65, grass_palette = nil
},
inventory_image = "mcl_flowers_double_plant_sunflower_front.png",
mesh = "mcl_flowers_sunflower.obj",
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 1.5, 0.25}
},
sunlight_propagates = true,
tiles = {
"mcl_flowers_double_plant_sunflower_bottom.png",
"mcl_flowers_double_plant_sunflower_bottom.png",
"mcl_flowers_double_plant_sunflower_front.png",
"mcl_flowers_double_plant_sunflower_back.png"
},
walkable = false,
wield_image = "mcl_flowers_double_plant_sunflower_front.png"
})
dofile(modpath.."/register.lua") dofile(modpath.."/register.lua")

View File

@ -0,0 +1,32 @@
# Blender 3.6.4 MTL File: 'sunflower.blend'
# www.blender.org
newmtl Flower_1
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd C:/Minetest-5.8/games/mineclone2/textures/mcl_flowers_double_plant_sunflower_front.png
newmtl Flower_2
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd C:/Minetest-5.8/games/mineclone2/textures/mcl_flowers_double_plant_sunflower_back.png
newmtl Stem
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd C:/Minetest-5.8/games/mineclone2/textures/mcl_flowers_double_plant_sunflower_bottom.png

View File

@ -0,0 +1,59 @@
# Blender 3.6.4
# www.blender.org
mtllib sunflower.mtl
o Stem_1
v 0.309359 1.500000 -0.309359
v -0.309359 1.500000 0.309359
v 0.309359 -0.500000 -0.309359
v -0.309359 -0.500000 0.309359
vn 0.7071 -0.0000 0.7071
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
s 0
g Stem_1_Stem
usemtl Stem
f 1/1/1 2/2/1 4/3/1 3/4/1
o Stem_2
v 0.309359 1.500000 0.309359
v -0.309359 1.500000 -0.309359
v 0.309359 -0.500000 0.309359
v -0.309359 -0.500000 -0.309359
vn -0.7071 -0.0000 0.7071
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
s 0
g Stem_2_Stem
usemtl Stem
f 5/5/2 6/6/2 8/7/2 7/8/2
o Flower_1
v -0.500000 1.933013 -0.125000
v -0.500000 1.066987 0.375000
v 0.500000 1.933013 -0.125000
v 0.500000 1.066987 0.375000
vn -0.0000 0.5000 0.8660
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
s 0
g Flower_1_Flower_1
usemtl Flower_1
f 9/9/3 10/10/3 12/11/3 11/12/3
o Flower_2
v -0.500000 1.933013 -0.130000
v -0.500000 1.066987 0.370000
v 0.500000 1.933013 -0.130000
v 0.500000 1.066987 0.370000
vn -0.0000 0.5000 0.8660
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
s 0
g Flower_2_Flower_2
usemtl Flower_2
f 13/13/4 14/14/4 16/15/4 15/16/4