From e091dcad5a20cc11c8ff8851b2bb804d5076f384 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 22 Jan 2022 08:28:17 +0000 Subject: [PATCH] tweak elephant and tortoise drops --- mobs/elephant.lua | 1 + mobs/tortoise.lua | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/mobs/elephant.lua b/mobs/elephant.lua index 344dd0b..19989fc 100644 --- a/mobs/elephant.lua +++ b/mobs/elephant.lua @@ -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 = { diff --git a/mobs/tortoise.lua b/mobs/tortoise.lua index ef2cf9a..7d6e4b8 100644 --- a/mobs/tortoise.lua +++ b/mobs/tortoise.lua @@ -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,