mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-26 00:50:21 +01:00
add self.disable_falling switch for custom routines
This commit is contained in:
parent
51ab54bcfa
commit
43026c374e
2
api.lua
2
api.lua
@ -2323,7 +2323,7 @@ end
|
|||||||
-- falling and fall damage
|
-- falling and fall damage
|
||||||
local falling = function(self, pos)
|
local falling = function(self, pos)
|
||||||
|
|
||||||
if self.fly then
|
if self.fly or self.disable_falling then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
api.txt
2
api.txt
@ -245,7 +245,7 @@ eating.
|
|||||||
If false is returned, the mob will not replace the node.
|
If false is returned, the mob will not replace the node.
|
||||||
|
|
||||||
By default, replacing sets self.gotten to true and resets the object
|
By default, replacing sets self.gotten to true and resets the object
|
||||||
properties.
|
properties. (DEPRECATED, use on_replace to make changes).
|
||||||
|
|
||||||
|
|
||||||
Custom Definition Functions
|
Custom Definition Functions
|
||||||
|
Loading…
Reference in New Issue
Block a user