mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-11 18:30:21 +01:00
add mobs:set_velocity(self,v) global, function
This commit is contained in:
parent
43026c374e
commit
47d8439913
7
api.lua
7
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20181126",
|
||||
version = "20181204",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||
}
|
||||
@ -167,6 +167,11 @@ local set_velocity = function(self, v)
|
||||
})
|
||||
end
|
||||
|
||||
-- global version of above function
|
||||
function mobs:set_velocity(self, v)
|
||||
set_velocity(self, v)
|
||||
end
|
||||
|
||||
|
||||
-- calculate mob velocity
|
||||
local get_velocity = function(self)
|
||||
|
@ -23,6 +23,7 @@ Lucky Blocks: 9
|
||||
|
||||
|
||||
Changelog:
|
||||
- 1.48- Add mobs:set_velocity(self, velocity) global function
|
||||
- 1.47- Mob damage changes, min and max light level for damage added, ignition sources checked for lava damage
|
||||
- 1.46- Mobs only drop rare items when killed by player (drops.min = 0 makes them rare), code tweak, pathfinding no longer sees through walkable nodes
|
||||
- 1.45- Added Fence Top to add on top of any fence to stop mobs escaping, new line_of_sight tweaked by Astrobe
|
||||
|
Loading…
Reference in New Issue
Block a user