diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-09-26 14:03:22 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-09-26 14:03:22 +0100 |
commit | 5df8e9054e19b318ae17efca07555d8de4dbaf73 (patch) | |
tree | 363d3f80830012b0b4e52c880ac0cd733678e94c /api.txt | |
parent | d5822b3e0b9d2d070254f026ed349131fc6dfe58 (diff) |
added self.texture_list for mod makers
Diffstat (limited to 'api.txt')
-rw-r--r-- | api.txt | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ -MOB API (5th September 2016) +MOB API (26th September 2016) The mob api is a function that can be called on by other mods to add new animals or monsters into minetest. @@ -240,6 +240,8 @@ This function allows the mob to be fed the item inside self.follow be it apple, Useful Internal Variables 'self.health' contains current health of mob + 'self.texture_list' contains list of all mob textures + 'self.child_texture' contains mob child texture when growing up '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) |