This commit is contained in:
1F616EMO~nya 2024-12-27 09:20:50 +08:00 committed by GitHub
commit 02318f309b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 28 deletions

View file

@ -777,7 +777,7 @@ local function assign_biome_group(name)
local y_max = def.y_max
for group, params in pairs(animalia.registered_biome_groups) do -- k, v in pairs
if name:find(params.name_kw or "")
and turf and turf:find(params.turf_kw or "")
and turf and ((turf:find(params.turf_kw or "")) or (params.turf_in and params.turf_in[turf] or false))
and heat >= params.min_heat
and heat <= params.max_heat
and humidity >= params.min_humidity

View file

@ -65,6 +65,14 @@ animalia.food_wheat = {}
animalia.food_seeds = {}
animalia.food_crops = {}
animalia.food_bear = {}
animalia.consumable_grass = {
["default:dirt_with_grass"] = "default:dirt",
["ethereal:bamboo_dirt"] = "default:dirt",
["ethereal:grove_dirt"] = "default:dirt",
["ethereal:cold_dirt"] = "default:dirt",
["ethereal:prairie_dirt"] = "default:dirt",
["default:dry_dirt_with_dry_grass"] = "default:dry_dirt",
}
minetest.register_on_mods_loaded(function()
if minetest.get_modpath("farming")

View file

@ -2,15 +2,15 @@
-- Cat --
---------
local follow = {
"animalia:poultry_raw"
}
local follow = {}
if minetest.registered_items["ethereal:fish_raw"] then
follow = {
"ethereal:fish_raw",
"animalia:poultry_raw"
}
for _, item in ipairs({
"ethereal:fish_raw",
"ethereal:fish_cod",
"ethereal:fish_cichlid",
"animalia:poultry_raw",
}) do
table.insert(follow, item)
end
creatura.register_mob("animalia:cat", {

View file

@ -227,10 +227,7 @@ creatura.register_mob("animalia:horse", {
-- Animalia Props
catch_with_net = true,
catch_with_lasso = true,
consumable_nodes = {
["default:dirt_with_grass"] = "default:dirt",
["default:dry_dirt_with_dry_grass"] = "default:dry_dirt"
},
consumable_nodes = animalia.consumable_grass,
head_data = {
bone = "Neck.CTRL",
offset = {x = 0, y = 1.4, z = 0.0},

View file

@ -59,16 +59,7 @@ creatura.register_mob("animalia:reindeer", {
flee_puncher = true,
catch_with_net = true,
catch_with_lasso = true,
consumable_nodes = {
{
name = "default:dirt_with_grass",
replacement = "default:dirt"
},
{
name = "default:dry_dirt_with_dry_grass",
replacement = "default:dry_dirt"
}
},
consumable_nodes = animalia.consumable_grass,
head_data = {
offset = {x = 0, y = 0.55, z = 0},
pitch_correction = -45,

View file

@ -84,10 +84,7 @@ creatura.register_mob("animalia:sheep", {
flee_puncher = true,
catch_with_net = true,
catch_with_lasso = true,
consumable_nodes = {
["default:dirt_with_grass"] = "default:dirt",
["default:dry_dirt_with_dry_grass"] = "default:dry_dirt"
},
consumable_nodes = animalia.consumable_grass,
head_data = {
offset = {x = 0, y = 0.41, z = 0},
pitch_correction = -45,

View file

@ -1,6 +1,6 @@
name = animalia
depends = creatura
optional_depends = default, mcl_player, farming, 3d_armor
optional_depends = default, mcl_player, farming, 3d_armor, ethereal
description = Adds unique and consistantly designed Animals
title = Animalia
author = ElCeejo