summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-09-26 12:10:48 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-09-26 12:10:48 +0100
commitd5822b3e0b9d2d070254f026ed349131fc6dfe58 (patch)
treee05f2fb05b5cc4346607cf75a8d1b51e4f4d4a32
parentb844712d48a8f1ed2dcbb0a6825b226dd69581f2 (diff)
updated api docs
-rw-r--r--api.lua1
-rw-r--r--api.txt9
2 files changed, 10 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index f1ef42a..e65ce7c 100644
--- a/api.lua
+++ b/api.lua
@@ -2716,6 +2716,7 @@ function mobs:register_arrow(name, def)
and player:get_luaentity()
and player:get_luaentity().name ~= self.object:get_luaentity().name
and player:get_luaentity().name ~= "__builtin:item"
+ and player:get_luaentity().name ~= "__builtin:falling_node"
and player:get_luaentity().name ~= "gauges:hp_bar"
and player:get_luaentity().name ~= "signs:text"
and player:get_luaentity().name ~= "itemframes:item" then
diff --git a/api.txt b/api.txt
index 1b54e29..f21f800 100644
--- a/api.txt
+++ b/api.txt
@@ -235,3 +235,12 @@ This function allows the mob to be fed the item inside self.follow be it apple,
'feed_count' number of times mob must be fed to tame or breed
'breed' true or false stating if mob can be bred and a child created afterwards
'tame' true or false stating if mob can be tamed so player can pick them up
+
+
+Useful Internal Variables
+
+ 'self.health' contains current health of mob
+ 'self.base_texture' contains current skin texture which was randomly selected from textures list
+ 'self.gotten' true when sheep have been sheared or cows have been milked, a toggle switch which can be used for many functions
+ 'self.child' true when mob is currently a child (when two mobs have bred and current mob is the outcome)
+ 'self.hornytimer' background timer that controls breeding functions and mob childhood timings