1
0
spogulis no https://codeberg.org/tenplus1/mobs_redo.git synced 2025-12-27 00:55:37 +01:00

added self.texture_list for mod makers

Šī revīzija ir iekļauta:
TenPlus1
2016-09-26 14:03:22 +01:00
vecāks d5822b3e0b
revīzija 5df8e9054e
2 mainīti faili ar 5 papildinājumiem un 2 dzēšanām

Parādīt failu

@@ -1,5 +1,5 @@
-- Mobs Api (5th September 2016) -- Mobs Api (26th September 2016)
mobs = {} mobs = {}
mobs.mod = "redo" mobs.mod = "redo"
@@ -2333,6 +2333,7 @@ minetest.register_entity(name, {
health = 0, health = 0,
reach = def.reach or 3, reach = def.reach or 3,
htimer = 0, htimer = 0,
texture_list = def.textures,
child_texture = def.child_texture, child_texture = def.child_texture,
docile_by_day = def.docile_by_day or false, docile_by_day = def.docile_by_day or false,
time_of_day = 0.5, time_of_day = 0.5,

Parādīt failu

@@ -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. 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 Useful Internal Variables
'self.health' contains current health of mob '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.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.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.child' true when mob is currently a child (when two mobs have bred and current mob is the outcome)