1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

added ability to protect tamed mobs

This commit is contained in:
TenPlus1
2016-11-08 16:11:00 +00:00
parent c16c083d31
commit 127dad97a7
4 changed files with 57 additions and 1 deletions

View File

@ -240,6 +240,14 @@ This function allows the mob to be fed the item inside self.follow be it apple,
'tame' true or false stating if mob can be tamed so player can pick them up
mobs:protect(self, clicker)
This function can be used to right-click any tamed mob with mobs:protector item, this will protect the mob from harm inside of a protected area from other players.
'self' mob information
'clicker' player information
Useful Internal Variables
'self.health' contains current health of mob