When I do this I get 'mesh not found' errors.
Here is the code as I've modified it.
Code: Select all
local function add_simple_flower(name, desc, box, f_groups)
-- Common flowers' groups
f_groups.snappy = 3
f_groups.flower = 1
f_groups.flora = 1
f_groups.attached_node = 1
minetest.register_node("flowers:" .. name, {
description = desc,
---drawtype = "plantlike",
drawtype = "mesh",
mesh = "flowers.obj",
waving = 1,
tiles = {"flowers_" .. name .. ".png"},
inventory_image = "flowers_" .. name .. ".png",
wield_image = "flowers_" .. name .. ".png",
sunlight_propagates = true,
paramtype = "light",
walkable = false,
buildable_to = true,
stack_max = 99,
groups = f_groups,
sounds = default.node_sound_leaves_defaults(),
--[===[selection_box = {
type = "fixed",
fixed = box
}]===]
})
endAny clue what's going wrong, or where to start looking?
--Edit--
When I reboot the client I no longer get the 'mesh not found' error, but the mesh is rendered as an air block. I have the origin set properly in blender, and the mesh is just a simple pyramid that's 1x1 blender-unit.