feeding update

master
blert2112 2015-08-13 23:54:02 -04:00
parent fec3e78578
commit 352f6e0a66
6 changed files with 43 additions and 31 deletions

View File

@ -32,9 +32,11 @@ if mobs.mod and mobs.mod == "redo" then
jump = false,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
--{name = "mobs:leather", chance = 1, min = 1, max = 2}
{name = "mobs:leather", chance = 1, min = 1, max = 2}
},
follow = "mobs:honey",
follow = {"mobs:honey", "farming:raspberries", "farming:blueberries", "farming_plus:strawberry_item",
"bushes:strawberry", "bushes:blackberry", "bushes:blueberry", "bushes:raspberry",
"bushes:gooseberry", "bushes:mixed_berry"},
replace_rate = 50,
replace_what = {"mobs:beehive", "farming:blueberry_4", "farming:raspberry_4", "farming_plus:strawberry",
"bushes:strawberry_bush", "bushes:blackberry_bush", "bushes:blueberry_bush", "bushes:raspberry_bush",
@ -42,13 +44,6 @@ if mobs.mod and mobs.mod == "redo" then
replace_with = "air",
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 10, true) then
local hp = self.object:get_hp()
if hp + 4 > self.hp_max then
hp = self.hp_max
else
hp = hp + 4
end
self.object:set_hp(hp)
return
end
if clicker:get_wielded_item():is_empty() and clicker:get_player_name() == self.owner then
@ -68,7 +63,12 @@ if mobs.mod and mobs.mod == "redo" then
end
})
local l_spawn_elevation_min = minetest.setting_get("water_level") - 10 or 1
local l_spawn_elevation_min = minetest.setting_get("water_level")
if l_spawn_elevation_min then
l_spawn_elevation_min = l_spawn_elevation_min - 10
else
l_spawn_elevation_min = -10
end
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_bear:medved",
{"default:dirt_with_grass", "default:dirt", "default:desert_sand", "ethereal:green_dirt_top"},

View File

@ -32,21 +32,26 @@ if mobs.mod and mobs.mod == "redo" then
jump_chance = 5,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
--{name = "mobs:leather", chance = 1, min = 1, max = 3}
{name = "mobs:leather", chance = 1, min = 1, max = 3}
},
follow = "farming:wheat",
replace_rate = 50,
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
replace_with = "air",
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 10, true) then
if mobs:feed_tame(self, clicker, 8, true) then
return
end
mobs:capture_mob(self, clicker, 0, 0, 80, false, nil)
end
})
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
local l_spawn_elevation_min = minetest.setting_get("water_level")
if l_spawn_elevation_min then
l_spawn_elevation_min = l_spawn_elevation_min + 1
else
l_spawn_elevation_min = 1
end
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_deer:deer",
{"default:dirt_with_grass", "ethereal:green_dirt_top"},

View File

@ -32,9 +32,9 @@ if mobs.mod and mobs.mod == "redo" then
jump = false,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
--{name = "mobs:leather", chance = 1, min = 1, max = 4}
{name = "mobs:leather", chance = 1, min = 1, max = 4}
},
follow = "farming:wheat",
follow = {"group:leaves"},
replace_rate = 50,
replace_what = {"group:leaves"},
replace_with = "air",
@ -46,7 +46,12 @@ if mobs.mod and mobs.mod == "redo" then
end
})
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
local l_spawn_elevation_min = minetest.setting_get("water_level")
if l_spawn_elevation_min then
l_spawn_elevation_min = l_spawn_elevation_min + 1
else
l_spawn_elevation_min = 1
end
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_giraffe:jeraf",
{"default:sand", "default:desert_sand"},

View File

@ -6,10 +6,9 @@ See Mobs.Redo license
**MODELS/TEXTURES**
-------------------
unknown
Created by: Nathan S.
Artist/origin: Nathan S.
**SOUNDS**
----------
See Mobs.Redo license
Not applicable.

View File

@ -40,14 +40,14 @@ if mobs.mod and mobs.mod == "redo" then
jump_chance = 5,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
--{name = "mobs:leather", chance = 1, min = 1, max = 2}
{name = "mobs:leather", chance = 1, min = 1, max = 2}
},
follow = "farming:wheat",
follow = {"farming:wheat", "group:flora"},
replace_rate = 50,
replace_what = {"group:flora"},
replace_with = "air",
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 10, true) then
if mobs:feed_tame(self, clicker, 8, true) then
return
end
local tool = clicker:get_wielded_item()
@ -72,7 +72,12 @@ if mobs.mod and mobs.mod == "redo" then
end
})
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
local l_spawn_elevation_min = minetest.setting_get("water_level")
if l_spawn_elevation_min then
l_spawn_elevation_min = l_spawn_elevation_min + 1
else
l_spawn_elevation_min = 1
end
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_mr_goat:goat",
{"default:dirt_with_grass", "ethereal:green_dirt_top"},

View File

@ -50,7 +50,12 @@ if mobs.mod and mobs.mod == "redo" then
end
})
local l_spawn_elevation_min = minetest.setting_get("water_level") - 5 or 1
local l_spawn_elevation_min = minetest.setting_get("water_level")
if l_spawn_elevation_min then
l_spawn_elevation_min = l_spawn_elevation_min - 5
else
l_spawn_elevation_min = -5
end
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_wolf:wolf",
{"default:dirt_with_grass", "default:dirt","default:snow", "default:snowblock", "ethereal:green_dirt_top"},
@ -96,13 +101,6 @@ if mobs.mod and mobs.mod == "redo" then
follow = "mobs:raw_meat",
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 6, true) then
local hp = self.object:get_hp()
if hp + 4 > self.hp_max then
hp = self.hp_max
else
hp = hp + 4
end
self.object:set_hp(hp)
return
end
if clicker:get_wielded_item():is_empty() and clicker:get_player_name() == self.owner then