mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-10 00:59:35 +01:00
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4811 Reviewed-by: teknomunk <teknomunk@protonmail.com> Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
This commit is contained in:
parent
6913465531
commit
013679507b
1 changed files with 20 additions and 34 deletions
|
@ -73,28 +73,21 @@ local cocoa_place = mcl_cocoas.place
|
||||||
local cocoa_grow = mcl_cocoas.grow
|
local cocoa_grow = mcl_cocoas.grow
|
||||||
|
|
||||||
-- Cocoa pod variant definitions.
|
-- Cocoa pod variant definitions.
|
||||||
--[[ TODO: Use a mesh for cocoas for perfect texture compability. ]]
|
|
||||||
local podinfo = {
|
local podinfo = {
|
||||||
{ desc = S("Premature Cocoa Pod"),
|
{
|
||||||
|
desc = S("Premature Cocoa Pod"),
|
||||||
longdesc = S("Cocoa pods grow on the side of jungle trees in 3 stages."),
|
longdesc = S("Cocoa pods grow on the side of jungle trees in 3 stages."),
|
||||||
tiles = {
|
|
||||||
"mcl_cocoas_cocoa_stage_0.png",
|
|
||||||
},
|
|
||||||
n_box = {-0.125, -0.0625, 0.1875, 0.125, 0.25, 0.4375},
|
n_box = {-0.125, -0.0625, 0.1875, 0.125, 0.25, 0.4375},
|
||||||
s_box = {-0.125, -0.0625, 0.1875, 0.125, 0.5, 0.5 },
|
s_box = {-0.125, -0.0625, 0.1875, 0.125, 0.5, 0.5 },
|
||||||
},
|
},
|
||||||
{ desc = S("Medium Cocoa Pod"),
|
{
|
||||||
tiles = {
|
desc = S("Medium Cocoa Pod"),
|
||||||
"mcl_cocoas_cocoa_stage_1.png",
|
|
||||||
},
|
|
||||||
n_box = {-0.1875, -0.1875, 0.0625, 0.1875, 0.25, 0.4375},
|
n_box = {-0.1875, -0.1875, 0.0625, 0.1875, 0.25, 0.4375},
|
||||||
s_box = {-0.1875, -0.1875, 0.0625, 0.1875, 0.5, 0.5 },
|
s_box = {-0.1875, -0.1875, 0.0625, 0.1875, 0.5, 0.5 },
|
||||||
},
|
},
|
||||||
{ desc = S("Mature Cocoa Pod"),
|
{
|
||||||
|
desc = S("Mature Cocoa Pod"),
|
||||||
longdesc = S("A mature cocoa pod grew on a jungle tree to its full size and it is ready to be harvested for cocoa beans. It won't grow any further."),
|
longdesc = S("A mature cocoa pod grew on a jungle tree to its full size and it is ready to be harvested for cocoa beans. It won't grow any further."),
|
||||||
tiles = {
|
|
||||||
"mcl_cocoas_cocoa_stage_2.png",
|
|
||||||
},
|
|
||||||
n_box = {-0.25, -0.3125, -0.0625, 0.25, 0.25, 0.4375},
|
n_box = {-0.25, -0.3125, -0.0625, 0.25, 0.25, 0.4375},
|
||||||
s_box = {-0.25, -0.3125, -0.0625, 0.25, 0.5, 0.5 },
|
s_box = {-0.25, -0.3125, -0.0625, 0.25, 0.5, 0.5 },
|
||||||
},
|
},
|
||||||
|
@ -107,16 +100,10 @@ for i = 1, 3 do
|
||||||
_doc_items_longdesc = podinfo[i].longdesc,
|
_doc_items_longdesc = podinfo[i].longdesc,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drawtype = "nodebox",
|
drawtype = "mesh",
|
||||||
tiles = podinfo[i].tiles,
|
mesh = "mcl_cocoas_cocoa_stage_"..(i-1)..".obj",
|
||||||
|
tiles = {"mcl_cocoas_cocoa_stage_"..(i-1)..".png"},
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
podinfo[i].n_box, -- Pod
|
|
||||||
-- FIXME: This has a thickness of 0. Is this OK in Luanti?
|
|
||||||
{ 0, 0.25, 0.25, 0, 0.5, 0.5 }, }, -- Stem
|
|
||||||
},
|
|
||||||
collision_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = podinfo[i].n_box
|
fixed = podinfo[i].n_box
|
||||||
|
@ -146,8 +133,7 @@ for i = 1, 3 do
|
||||||
if i == 2 then
|
if i == 2 then
|
||||||
def._doc_items_longdesc = nil
|
def._doc_items_longdesc = nil
|
||||||
def._doc_items_create_entry = false
|
def._doc_items_create_entry = false
|
||||||
end
|
elseif i == 3 then
|
||||||
if i == 3 then
|
|
||||||
def.drop = "mcl_cocoas:cocoa_beans 3"
|
def.drop = "mcl_cocoas:cocoa_beans 3"
|
||||||
def._on_bone_mealing = nil
|
def._on_bone_mealing = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue