added mobs:force_capture() function, api now uses metatables thanks to bell07

This commit is contained in:
TenPlus1 2018-12-20 11:14:10 +00:00
parent aeb802ad40
commit 487e037cc9
3 changed files with 337 additions and 250 deletions

581
api.lua

File diff suppressed because it is too large Load Diff

View File

@ -455,6 +455,11 @@ replace with another item entirely.
'replacewith' once captured replace mob with this item instead (overrides 'replacewith' once captured replace mob with this item instead (overrides
new mob eggs with saved information) new mob eggs with saved information)
mobs:force_capture(self, clicker)
Same as above but does no checks, it simply captures any and all mobs and places
inside a spawn egg containing all of the mob information.
Feeding and Taming/Breeding Feeding and Taming/Breeding
--------------------------- ---------------------------

View File

@ -23,6 +23,7 @@ Lucky Blocks: 9
Changelog: Changelog:
- 1.49- Added mobs:force_capture(self, player) function, api functions now use metatables thanks to bell07
- 1.48- Add mobs:set_velocity(self, velocity) global function - 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.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.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