summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
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