Add Ethereal grass compactibility

This commit is contained in:
1F616EMO 2024-12-27 09:16:12 +08:00
parent 259e741282
commit 7d5e475245
No known key found for this signature in database
GPG key ID: EF52EFA8E05859B2
6 changed files with 13 additions and 20 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

@ -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