Cold Sweat
  • Temperature Basics
  • TempModifiers
  • List of TempModifiers
  • Block Temperature
  • Attributes
  • Tags
    • Item Tags
    • Block Tags
    • Dimension Type Tags
    • Potion Effect Tags
  • Datapacks
    • Datapack Basics
    • Requirements
      • Entity Requirement
      • Item Requirement
      • Block Requirement
      • NBT Requirement
      • Components Requirement
      • Location Requirement
    • Item Configs
    • Block/World Configs
    • Entity Configs
    • Registry Removals
  • KubeJS
    • KubeJS Basics
    • Registries
      • Block Temperature
  • Add-Ons
    • Origin Configs
  • Utility Classes
    • DynamicHolder
    • CapabilityCache
Powered by GitBook
On this page
  • Spawn Biomes
  • Format
  • Entity Temperature
  • Format
  1. Datapacks

Entity Configs

The format of all data-driven JSON configs for entities

Spawn Biomes

/entity/spawn_biome/

Adds entities to the pool of entities that can spawn in given biomes. This setting is meant to mirror the "Goat Spawn Biomes" and "Chameleon Spawn Biomes" settings, but this can technically be used to add any entity to a biome.

Format

{
  "required_mods": [
    "alexsmobs"
  ],
  // A list of biomes, or biome tags
  "biomes": [
    "#minecraft:is_mountain"
  ],
  // A list of entities, or entity type tags
  "entities": [
    "#minecraft:skeletons",
    "alexsmobs:bear"
  ],
  // The spawn weight of the entities in the given biomes.
  // Higher numbers have a greater chance of spawning
  "weight": 5,
  // The mob category these entities belong to.
  // This determines things like that maximum number of mobs allowed, what blocks they can spawn on, etc.
  "category": "creature"
}

Entity Temperature

/entity/entity_temperature/

Allows entities to emit temperature, optionally under certain conditions. This temperature can affect nearby entities or players, as well as (optionally) the target entity itself.

Below is a slightly modified version of the temperature emitted when an entity is on fire:

Format

{
  "required_mods": [
    // none
  ],
  // . Entity must be on fire
  "entity": {
    "flags": {
      "is_on_fire": true
    }
  },
  // Temperature to emit. This is added to the world temperature of nearby entities
  "temperature": 15.0,
  // Temperature units to use ("f", "c", "mc")
  "units": "f",
  // Range of effect (weakens as distance from emitting entity reaches this value)
  "range": 6.0,
  // Should temperature also increase for emitting entity?
  "affects_self": true
}
PreviousBlock/World ConfigsNextRegistry Removals

Last updated 7 hours ago