diff --git a/mods/ITEMS/mcl_farming/beetroot.lua b/mods/ITEMS/mcl_farming/beetroot.lua index f32b2bf8e..d048fdbaa 100644 --- a/mods/ITEMS/mcl_farming/beetroot.lua +++ b/mods/ITEMS/mcl_farming/beetroot.lua @@ -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: diff --git a/mods/ITEMS/mcl_farming/carrots.lua b/mods/ITEMS/mcl_farming/carrots.lua index e8e295d8b..0b5a4dc4e 100644 --- a/mods/ITEMS/mcl_farming/carrots.lua +++ b/mods/ITEMS/mcl_farming/carrots.lua @@ -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", diff --git a/mods/ITEMS/mcl_farming/models/vl_commom_crops.obj b/mods/ITEMS/mcl_farming/models/vl_commom_crops.obj new file mode 100644 index 000000000..68fd56974 --- /dev/null +++ b/mods/ITEMS/mcl_farming/models/vl_commom_crops.obj @@ -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 diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index 66c5169c4..18c16e758 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -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", diff --git a/mods/ITEMS/mcl_farming/wheat.lua b/mods/ITEMS/mcl_farming/wheat.lua index 676cc1301..fcf14ad88 100644 --- a/mods/ITEMS/mcl_farming/wheat.lua +++ b/mods/ITEMS/mcl_farming/wheat.lua @@ -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",