tweak elephant and tortoise drops

This commit is contained in:
tenplus1 2022-01-22 08:28:17 +00:00
parent a9436b25fc
commit e091dcad5a
2 changed files with 13 additions and 4 deletions

View File

@ -28,6 +28,7 @@ mobs:register_mob("dmobs:elephant", {
fear_height = 2,
drops = {
{name = "default:grass_1", chance = 1, min = 1, max = 3},
{name = "mobs:meat_raw", chance = 2, min = 1, max = 1}
},
replace_rate = 10,
replace_what = {

View File

@ -1,3 +1,14 @@
local drops = {{name = "default:stick", chance = 1, min = 1, max = 1}}
if minetest.get_modpath("farming") then
drops = {
{name = "default:stick", chance = 1, min = 1, max = 1},
{name = "farming:string", chance = 2, min = 0, max = 1}
}
end
mobs:register_mob("dmobs:tortoise", {
type = "animal",
passive = false,
@ -21,10 +32,7 @@ mobs:register_mob("dmobs:tortoise", {
jump = false,
jump_height = 0.5,
floats = true,
drops = {
{name = "default:stick", chance = 2, min = 0, max = 1},
{name = "farming:string", chance = 2, min = 0, max = 1},
},
drops = drops,
water_damage = 0,
lava_damage = 2,
fire_damage = 2,