githubEdit

location-plusEntity Random Spawn

circle-exclamation

Requires ItemsAdder 4.0.11 or greater!

You can make custom entities randomly spawn in your world, exactly how vanilla mobs do.

This is an example to make an example red_zombie spawn.

It will spawn only with a 20% chance of when a vanilla zombie spawns. It will replace the vanilla zombie with the custom one.

It will spawn only in worlds of which name starts by world, between world height 0 and 150 during weather RAIN and with light level from 0 to 10.

info:
  namespace: test
entities:
  red_zombie:
    model_folder: entity/red_zombie
    can_sun_burn: false
    type: ZOMBIE
entities_populators:
  red_zombie_1:
    entity: test:red_zombie
    spawn_logic:
      method: REPLACE # or SPAWN_NEAR
      types:
      - ZOMBIE
    chance: 20.0
    amount: 1
    worlds:
    - world*
    # you can also use x and z as location_range parameters, for example
    # to make edge of the worlds harder with more dangerous mobs
    location_range:
      y:
        min: 0
        max: 150
    weather:
    - RAIN
    light_level:
      min: 0
      max: 10

All properties

Example pack

Last updated