summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-11-08 16:11:00 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-11-08 16:11:00 +0000
commit127dad97a799a619d64e6dd77e741844caeec91e (patch)
treee0085dbbffcf12bd2a163117d5e3bb8bd1d552e8 /api.txt
parentc16c083d31242dc79d7dfa581c393fd2affc6d08 (diff)
added ability to protect tamed mobs
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/api.txt b/api.txt
index 028b92a..3473b38 100644
--- a/api.txt
+++ b/api.txt
@@ -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