Entities

This page will go over Basics in Entities

Entities are, well, entities used within Iris. They can be any normal mob in minecraft and even customized.

Entity File

Entities should be located within the entities directory within your pack. Each should be named appropriately

pandaUwU.json
{
    "type": "PANDA",
    "silent": true,
    "surface": "ANIMAL",
    "passengers": [{
        "type": "FOX",
        "customName": "&eUwU",
        "customNameVisible": false
    }]
}

The file above is for a panda that spawns with foxes on its back.

This can be referenced within Iris spawners or initial entity spawns in biomes/regions

  • type - The type of mob. Should be from this list

  • surface - What kind of surface should this mob be spawned on. See the table bellow:

Surface

Description

LAND (Default)

The mob can be spawned on any solid blocks

WATER

The mob can spawn within water blocks

ANIMAL

Spawn only on grass, dirt and other surfaces animals can spawn on

OVERWORLD

Spawn on any land OR water block. Useful for turtles

LAVA

Spawn only on lava blocks

Spawners

Coming soon. Requires Iris 1.6+

Initial Entity Spawns

This feature is inactive in Iris 1.6+ as Iris has switched to using the new spawners feature.

It may be enabled again in the future but right now, use spawners

In each dimension, region and biome, there is a section called entityInitialSpawns.

"entityInitialSpawns": [
    {
        "entity": "cow",
        "maxSpawns": 1,
        "minSpawns": 1,
        "rarity": 7
    },
    {
        "entity": "pig",
        "maxSpawns": 1,
        "minSpawns": 1,
        "rarity": 7
    },
    {
        "entity": "chicken",
        "maxSpawns": 1,
        "minSpawns": 1,
        "rarity": 7
    },
    {
        "entity": "sheep",
        "maxSpawns": 1,
        "minSpawns": 1,
        "rarity": 7
    },
    {
        "entity": "pandaUwU",
        "maxSpawns": 3,
        "minSpawns": 1,
        "rarity": 50 
    }
],
  • entity - This is the name of the entity class to spawn. As you can see, we used the pandaUwU file used in the example above.

  • minSpawns - Minimum about of mobs to spawn in the chunk if the chance to spawn passes

  • maxSpawns - Same as above, but the max

  • rarity - The 1 in <rarity> chance for these mobs to spawn in a chunk

Last updated