跳到正文

Block Spawn

作者:n643064

Allows for spawning mobs when players break blocks.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 key “ The namespaced identifier of a block
  • “ mob “ The identifier of an entity
  • “ chance “ A percentage chance for an entity to spawn
  • “ adjustTerrain “ Whether terrain around the entity should be destroyed when it spawns, keeping the block directly under it
  • “ targetPlayer “ Whether the entity should spawn targeting and aggressive towards the player

常见问题

Block Spawn 支持哪些 Minecraft 版本?

Block Spawn 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Block Spawn 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

n643064 的其他作品

查看全部 →