summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-04-27 14:07:23 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-04-27 14:07:23 +0100
commit52cf9be8eb87ca9ab0b5fd1f1fcfd0bb8b91bbd1 (patch)
tree5b99785f17583388b4bd6f4c06fa1d2cd5a9b658 /api.txt
parentb1c08d2261bfb0db0be5c9fe6e889bca26a640c2 (diff)
updated api.txt
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/api.txt b/api.txt
index c7e9bec..23d3022 100644
--- a/api.txt
+++ b/api.txt
@@ -1,5 +1,5 @@
-MOB API (10th March 2017)
+MOB API (27th April 2017)
The mob api is a function that can be called on by other mods to add new animals or monsters into minetest.
@@ -237,7 +237,7 @@ This function is generally called inside the on_rightclick section of the mob ap
mobs:feed_tame(self, clicker, feed_count, breed)
-This function allows the mob to be fed the item inside self.follow be it apple, wheat or whatever a set number of times and be tamed or bred as a result.
+This function allows the mob to be fed the item inside self.follow be it apple, wheat or whatever a set number of times and be tamed or bred as a result. Will return true when mob is fed with item it likes.
'self' mob information
'clicker' player information
@@ -248,7 +248,7 @@ This function allows the mob to be fed the item inside self.follow be it apple,
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.
+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. Will return true when mob right-clicked with mobs:protector item.
'self' mob information
'clicker' player information