
216
8
This mod allows for entities to be spawned when players break blocks. Any block can be configured to spawn a single entity out of a provided array, with a specified chance and toggles for terrain adjustment and immediate player targeting.
Example configuration
The attempts to spawn entities are in the order they are defined in the configuration file, meaning an entity that is second in order will only have a chance to be spawned if the one before it fails to.
{
  "minecraft:cobweb": [
    {
      "mob": "minecraft:cave_spider",
      "chance": 0.05,
      "adjustTerrain": false,
      "targetPlayer": true
    }
  ],
  "minecraft:stone_bricks": [
    {
      "mob": "minecraft:silverfish",
      "chance": 0.05,
      "adjustTerrain": false,
      "targetPlayer": false
    },
    {
      "mob": "minecraft:endermite",
      "chance": 0.01, // * 0.95 = 0.0095
      "adjustTerrain": false,
      "targetPlayer": false
    }
  ]
}
Option descriptions
- list keyThe namespaced identifier of a block
- mobThe identifier of an entity
- chanceA percentage chance for an entity to spawn
- adjustTerrainWhether terrain around the entity should be destroyed when it spawns, keeping the block directly under it
- targetPlayerWhether the entity should spawn targeting and aggressive towards the player
Создатели
Детали
Лицензия:GPL-3.0-or-later
Опубликован:1 год назад
Обновлён:1 год назад
