1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-11-20 08:35:24 +01:00

penguin can eat x_farming group:fish, panda can spawn in jungle, ethereal bamboo or everness bamboo biomes

This commit is contained in:
tenplus1
2025-11-13 17:06:44 +00:00
parent 5379350702
commit 6f093dbf96
2 changed files with 14 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ mobs:register_mob("mobs_animal:panda", {
run_velocity = 1.5,
jump = false,
jump_height = 6,
follow = {"ethereal:bamboo", "bamboo:trunk"},
follow = {"ethereal:bamboo", "bamboo:trunk", "group:bamboo"},
view_range = 8,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2}
@@ -58,14 +58,21 @@ mobs:register_mob("mobs_animal:panda", {
end
})
-- where to spawn (ethereal bamboo biome only)
-- where to spawn
if core.get_modpath("ethereal") and not mobs.custom_spawn_animal then
if not mobs.custom_spawn_animal then
local spawn_on = "default:dirt_with_rainforest_litter"
if core.get_modpath("ethereal") then
spawn_on = "ethereal:bamboo_dirt"
elseif core.get_modpath("everness") then
spawn_on = "everness:dirt_with_grass_1"
end
mobs:spawn({
name = "mobs_animal:panda",
nodes = {"ethereal:bamboo_dirt"},
neighbors = {"group:grass"},
nodes = {spawn_on},
min_light = 14,
interval = 60,
chance = 8000,

View File

@@ -41,7 +41,8 @@ stepheight = 0.6,
floats = 0,
follow = {
"group:food_fish_raw", "mobs_fish:clownfish", "mobs_fish:tropical",
"mobs_fish:clownfish_set", "mobs_fish:tropical_set", "xocean:fish_edible"
"mobs_fish:clownfish_set", "mobs_fish:tropical_set", "xocean:fish_edible",
"group:fish"
},
view_range = 5,