forked from VoxeLibre/VoxeLibre
Try to fix floating crops using models
This commit is contained in:
parent
026ea5940c
commit
697ac45c44
|
@ -18,11 +18,11 @@ minetest.register_node("mcl_farming:beetroot_0", {
|
|||
_doc_items_longdesc = S("Beetroot plants are plants which grow on farmland under sunlight in 4 stages. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature."),
|
||||
_doc_items_entry_name = S("Premature Beetroot Plant"),
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:beetroot_seeds",
|
||||
tiles = {"mcl_farming_beetroot_0.png"},
|
||||
inventory_image = "mcl_farming_beetroot_0.png",
|
||||
|
@ -42,11 +42,11 @@ minetest.register_node("mcl_farming:beetroot_1", {
|
|||
description = S("Premature Beetroot Plant (Stage 2)"),
|
||||
_doc_items_create_entry = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:beetroot_seeds",
|
||||
tiles = {"mcl_farming_beetroot_1.png"},
|
||||
inventory_image = "mcl_farming_beetroot_1.png",
|
||||
|
@ -66,11 +66,11 @@ minetest.register_node("mcl_farming:beetroot_2", {
|
|||
description = S("Premature Beetroot Plant (Stage 3)"),
|
||||
_doc_items_create_entry = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:beetroot_seeds",
|
||||
tiles = {"mcl_farming_beetroot_2.png"},
|
||||
inventory_image = "mcl_farming_beetroot_2.png",
|
||||
|
@ -91,11 +91,11 @@ minetest.register_node("mcl_farming:beetroot", {
|
|||
_doc_items_longdesc = S("A mature beetroot plant is a farming plant which is ready to be harvested for a beetroot and some beetroot seeds. It won't grow any further."),
|
||||
_doc_items_create_entry = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = {
|
||||
--[[ drops 1 beetroot guaranteed.
|
||||
drops 0-3 beetroot seeds:
|
||||
|
|
|
@ -28,10 +28,10 @@ for i=1, 7 do
|
|||
_doc_items_longdesc = longdesc,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "meshoptions",
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:carrot_item",
|
||||
tiles = {texture},
|
||||
inventory_image = texture,
|
||||
|
@ -53,10 +53,10 @@ minetest.register_node("mcl_farming:carrot", {
|
|||
_doc_items_longdesc = S("Mature carrot plants are ready to be harvested for carrots. They won't grow any further."),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "meshoptions",
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
tiles = {"farming_carrot_4.png"},
|
||||
inventory_image = "farming_carrot_4.png",
|
||||
wield_image = "farming_carrot_4.png",
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
# Blender 3.6.4
|
||||
# www.blender.org
|
||||
mtllib crops.mtl
|
||||
o Plano
|
||||
v 0.500000 -0.562500 0.312500
|
||||
v 0.500000 0.500000 0.312500
|
||||
v -0.500000 -0.562500 0.312500
|
||||
v -0.500000 0.500000 0.312500
|
||||
v 0.312500 -0.562500 -0.500000
|
||||
v 0.312500 0.500000 -0.500000
|
||||
v 0.312500 -0.562500 0.500000
|
||||
v 0.312500 0.500000 0.500000
|
||||
v -0.312500 -0.562500 -0.500000
|
||||
v -0.312500 0.500000 -0.500000
|
||||
v -0.312500 -0.562500 0.500000
|
||||
v -0.312500 0.500000 0.500000
|
||||
v 0.500000 -0.562500 -0.312500
|
||||
v 0.500000 0.500000 -0.312500
|
||||
v -0.500000 -0.562500 -0.312500
|
||||
v -0.500000 0.500000 -0.312500
|
||||
vn -0.0000 -0.0000 1.0000
|
||||
vn 1.0000 -0.0000 -0.0000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
s 0
|
||||
usemtl Materiais
|
||||
f 1/1/1 2/2/1 4/3/1 3/4/1
|
||||
f 5/1/2 6/2/2 8/3/2 7/4/2
|
||||
f 9/1/2 10/2/2 12/3/2 11/4/2
|
||||
f 13/1/1 14/2/1 16/3/1 15/4/1
|
|
@ -33,11 +33,11 @@ for i=1, 7 do
|
|||
_doc_items_entry_name = name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:potato_item",
|
||||
tiles = { texture },
|
||||
inventory_image = texture,
|
||||
|
@ -57,11 +57,11 @@ minetest.register_node("mcl_farming:potato", {
|
|||
description = S("Mature Potato Plant"),
|
||||
_doc_items_longdesc = S("Mature potato plants are ready to be harvested for potatoes. They won't grow any further."),
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
sunlight_propagates = true,
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
tiles = {"mcl_farming_potatoes_stage_3.png"},
|
||||
wield_image = "mcl_farming_potatoes_stage_3.png",
|
||||
inventory_image = "mcl_farming_potatoes_stage_3.png",
|
||||
|
|
|
@ -41,11 +41,11 @@ for i=1,7 do
|
|||
_doc_items_entry_name = name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
place_param2 = 3,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
drop = "mcl_farming:wheat_seeds",
|
||||
tiles = {"mcl_farming_wheat_stage_"..(i-1)..".png"},
|
||||
inventory_image = "mcl_farming_wheat_stage_"..(i-1)..".png",
|
||||
|
@ -69,10 +69,10 @@ minetest.register_node("mcl_farming:wheat", {
|
|||
S("They won't grow any further."),
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
place_param2 = 3,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drawtype = "mesh",
|
||||
mesh = "vl_commom_crops.obj",
|
||||
use_texture_alpha = "clip",
|
||||
tiles = {"mcl_farming_wheat_stage_7.png"},
|
||||
inventory_image = "mcl_farming_wheat_stage_7.png",
|
||||
wield_image = "mcl_farming_wheat_stage_7.png",
|
||||
|
|
Loading…
Reference in New Issue