Download Block Spawn — Minecraft Mods — MetaMods

Block Spawn

Active

Downloads

0

Last update

1 year ago

Versions

1.20.1
Server
Forge
Neoforge
Game mechanics
Mobs

Block Spawn

This mod adds the ability for entities to appear when players break blocks. You can configure any block so that when it is destroyed, one entity from a specified list appears with a certain probability. Settings include adjusting the spawn chance, the ability to modify terrain around the entity, and immediate aggression towards the player.

Configuration Example

Attempts to spawn entities occur in the order they are listed in the configuration file. This means that an entity listed second will only have a chance to spawn if the previous entity failed to spawn.

{
  "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
    }
  ]
}

Parameter Descriptions

  • List key - namespaced identifier of a block
  • mob - entity identifier
  • chance - percentage chance for an entity to spawn
  • adjustTerrain - determines whether terrain around the entity should be destroyed when it spawns, keeping the block directly under it
  • targetPlayer - determines whether the entity should spawn targeting and aggressive towards the player
Project members
n643064

n643064

Developer

Created: 7 Aug 2024

ID: 49778