#Temperature variant Mobs

1 messages · Page 1 of 1 (latest)

wary cedar
#

Hey everyone, I'm attempting to update Foxys old mob head pack to include the new pig, chicken & cow biome variants. But I'm not able to get the different heads to drop, just the old "temperate" head types no matter which variant I kill. Any help would be greatly appreciated

{
"format_version": "1.21.90",
"minecraft:entity": {
"description": {
"identifier": "minecraft:chicken",
"spawn_category": "creature",
"is_spawnable": true,
"is_summonable": true,
"properties": {
"minecraft:climate_variant": {
"type": "enum",
"values": [ "temperate", "warm", "cold" ],
"default": "temperate",
"client_sync": true
}
}
},

"component_groups": {
  "temperate": {
    "minecraft:variant": {
      "value": 0
    },
    "minecraft:loot": {
      "table": "loot_tables/entities/chicken.json"
    }
  },
  "cold": {
    "minecraft:variant": {
      "value": 1
    },
    "minecraft:loot": {
      "table": "loot_tables/entities/chicken_cold.json"
    }
  },
  "warm": {
    "minecraft:variant": {
      "value": 2
    },
    "minecraft:loot": {
      "table": "loot_tables/entities/chicken_warm.json"
    }
  }
wraith warren
wary cedar
wary cedar
#

So I've tried it in the properties included in the events but it doesn't like having minecraft:loot in this section

#

"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 95,
"trigger": "minecraft:spawn_adult"
},
{
"weight": 5,
"add": {
"component_groups": [
"minecraft:chicken_baby"
]
}
}
]
},
{
"first_valid": [
{
"filters": {
"test": "has_biome_tag",
"value": "spawns_warm_variant_farm_animals"
},
"set_property": {
"minecraft:climate_variant": "warm"},
"minecraft:loot": {
"table": "loot_tables/entities/chicken_warm.json"}

            }
wary cedar
#

I've tried adding this to the end of the events

#

"minecraft:loot": {

        "first_valid": [
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "warm"
            },
            "set_property": {
              "table": "loot_tables/entities/chicken_warm.json"}
            }
          ,
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "cold"
            },
            "set_property": {
              "table": "loot_tables/entities/chicken_cold.json"}
            }
          
    ]
  }
#

But inside minecraft it throws up an error in the content log

#

[Molang][error]-My World | actor_definitions | C:/Users/djhar/AppData/Roaming/Minecraft Bedrock Preview/Users/15458580329976994985/games/com.mojang/minecraftWorlds/nLPykPOOk7w=/behavior_packs/MobHeads1(1) | minecraft:chicken | minecraft:entity | events | minecraft:loot | set_property | table | loot_tables/entities/chicken_warm.json | Error: unknown token: loot_tables/entities/chicken_warm.json

[Molang][error]-My World | actor_definitions | C:/Users/djhar/AppData/Roaming/Minecraft Bedrock Preview/Users/15458580329976994985/games/com.mojang/minecraftWorlds/nLPykPOOk7w=/behavior_packs/MobHeads1(1) | minecraft:chicken | minecraft:entity | events | minecraft:loot | set_property | table | loot_tables/entities/chicken_warm.json | unrecognized token: loot_tables/entities/chicken_warm.json

[Molang][error]-My World | actor_definitions | C:/Users/djhar/AppData/Roaming/Minecraft Bedrock Preview/Users/15458580329976994985/games/com.mojang/minecraftWorlds/nLPykPOOk7w=/behavior_packs/MobHeads1(1) | minecraft:chicken | minecraft:entity | events | minecraft:loot | set_property | table | loot_tables/entities/chicken_cold.json | Error: unknown token: loot_tables/entities/chicken_cold.json

[Molang][error]-My World | actor_definitions | C:/Users/djhar/AppData/Roaming/Minecraft Bedrock Preview/Users/15458580329976994985/games/com.mojang/minecraftWorlds/nLPykPOOk7w=/behavior_packs/MobHeads1(1) | minecraft:chicken | minecraft:entity | events | minecraft:loot | set_property | table | loot_tables/entities/chicken_cold.json | unrecognized token: loot_tables/entities/chicken_cold.json

wraith warren