Cleanup
parent
4011882749
commit
8928d84efe
10
register.lua
10
register.lua
|
@ -168,7 +168,6 @@ local function translate_def(def)
|
|||
|
||||
-- Other things
|
||||
|
||||
|
||||
if staticdata then
|
||||
local tab = core.deserialize(staticdata)
|
||||
if tab and type(tab) == "table" then
|
||||
|
@ -200,7 +199,7 @@ local function translate_def(def)
|
|||
self.hostile = false
|
||||
end
|
||||
|
||||
-- immortal is needed to disable clientside smokepuff shit
|
||||
-- immortal is needed to disable clientside smokepuff
|
||||
self.object:set_armor_groups({fleshy=100, immortal=1})
|
||||
|
||||
-- call custom on_activate if defined
|
||||
|
@ -350,11 +349,12 @@ end
|
|||
-- @table ModelDef
|
||||
-- @tfield string mesh Mesh name (see Minetest Documentation for supported filetypes).
|
||||
-- @tfield table textures Table of textures (see Minetest Documentation).
|
||||
-- @tfield NodeBox collisionbox Defines mesh collision box (see Minetest Documentation).
|
||||
-- @tfield[opt] NodeBox collisionbox Defines mesh collision box (see Minetest Documentation).
|
||||
-- @tfield[opt] table scale Sets visual scale (default: {x=1, y=1}).
|
||||
-- @tfield[opt] float rotation Sets rotation offset when moving (default: 0.0).
|
||||
-- @tfield[opt] bool backface_culling Set to `true` to enable backface culling.
|
||||
-- @tfield[opt] table animations Table of `AnimationDef` used if defined.
|
||||
-- @tfield[opt] bool collide_with_objects Collide with other objects (default: `true`).
|
||||
|
||||
--- Animations defiintion table.
|
||||
--
|
||||
|
@ -493,9 +493,7 @@ end
|
|||
-- @param self
|
||||
-- @param staticdata
|
||||
|
||||
--- Called when mob is punched.
|
||||
--
|
||||
-- Must return a table to save mob data (serialization is done by MOB-Engine).
|
||||
--- Must return a table to save mob data (serialization is done by MOB-Engine).
|
||||
-- e.g:
|
||||
-- ```
|
||||
-- return {
|
||||
|
|
Loading…
Reference in New Issue