diff --git a/API.txt b/API.txt index 20297c1..565bc29 100644 --- a/API.txt +++ b/API.txt @@ -100,6 +100,7 @@ and with a chance of 100% 2 items of type "default:stone" textures = {"creatures_sheep.png"}, -- table of textures; see Minetest Documentation collisionbox = , -- defines mesh collision box; see Minetest Documentation rotation = 0.0, -- sets rotation offset when moving + backface_culling = false, -- set true to enable backface culling animations = { -- animation used if defined idle = {#AnimationDef}, -- see #AnimationDef ... -- depends on modes (must correspond to be used); supported "special modes": eat, follow, attack diff --git a/creatures/register.lua b/creatures/register.lua index 8b5fb6a..2886cf3 100644 --- a/creatures/register.lua +++ b/creatures/register.lua @@ -33,6 +33,7 @@ local function translate_def(def) textures = def.model.textures, collisionbox = def.model.collisionbox or {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, visual_size = def.model.scale or {x = 1, y = 1}, + backface_culling = def.model.backface_culling or false stats = def.stats, model = def.model,