机械动力:动力刷怪笼

机械动力:动力刷怪笼

机械刷怪笼方块。利用旋转能量生成怪物。此模组旨在用于整合包中。

游戏机制

创建机械刷怪笼

一个机械刷怪笼方块。利用旋转动力生成生物。

专用维基

1.21.1-2.x 版本需要 Mechanicals Lib

版本支持与文档

  • 1.21.1:受支持。文档以此版本为准。
  • 1.20.1:仅处理关键问题:文档

功能特性

  • 随机生成流体
    • 基于生物群系的随机生成
  • 针对特定生物的专用液体
  • 可配置项:
    • 应力
    • 最低转速
    • 流体容量
    • 生成点最大范围
    • 处理时间倍率(或除数)。允许在不修改配方的情况下调整所有配方的处理时间。
  • 生成流体混合配方。
  • JEI 与 Jade 集成
  • KubeJS 集成
  • 沉思场景(Ponder scene)
  • 战利品收集器方块
    • 可配置为允许任何容器或 Create 物品保险库。
    • 可禁用。
    • 刷怪笼可配置为仅与战利品收集器配合使用。
  • 凋灵与爆炸免疫玻璃及外壳。
  • 凋灵配方。

生成配方

  • input 必填。
  • output 可选。任意实体,如 "minecraft:skeleton"。默认为生物群系中的随机生物。
  • processingTime 可选。默认值:200
  • customLoot 可选。允许在与战利品收集器方块配合使用时生成自定义战利品。

随机生成(模组内置)

{
  "type": "create_mechanical_spawner:spawner",
  "input": {
    "type": "fluid_stack",
    "amount": 100,
    "fluid": "create_mechanical_spawner:spawn_fluid_random"
  },
  "processingTime": 1500
}

特定生物示例

{
  "type": "create_mechanical_spawner:spawner",
  "input": {
    "type": "fluid_stack",
    "amount": 100,
    "fluid": "create_mechanical_spawner:spawn_fluid_pigling"
  },
  "output": "minecraft:pig",
  "processingTime": 2500
}

自定义战利品示例

{
  "type": "create_mechanical_spawner:spawner",
  "customLoot": [
    {
      "id": "minecraft:nether_star"
    },
    {
      "count": 16,
      "id": "create:experience_nugget"
    },
    {
      "chance": 0.5,
      "count": 8,
      "id": "create:experience_nugget"
    }
  ],
  "input": {
    "type": "fluid_stack",
    "amount": 300,
    "fluid": "create_mechanical_spawner:spawn_fluid_wither"
  },
  "output": "minecraft:wither",
  "processingTime": 5000
}

KubeJS 支持(服务端脚本)

禁用所有默认配方:

event.remove({ type: 'create_mechanical_spawner:spawner' })

禁用特定生物配方:

event.remove({ output: 'minecraft:wolf'});

绑定

  • 随机产出
Output.of('minecraft:clay', 0.5)

添加随机生成配方:

//随机生物(基于生物群系)
event.recipes.createMechanicalSpawnerSpawner(Fluid.of('minecraft:water', 700)).processingTime(8000);

添加特定生物配方:

//特定生物
event.recipes.createMechanicalSpawnerSpawner(Fluid.of('minecraft:water', 700)).processingTime(8000).mob("minecraft:skeleton;

添加自定义战利品配方:

event.remove({ output: 'minecraft:wither_skeleton'}); //建议执行
event.recipes.create_mechanical_spawner.spawner("minecraft:wither_skeleton", Fluid.of('minecraft:lava', 1000))
    .customLoot(
        [
            Output.of("minecraft:redstone",0.5),Output.of("minecraft:iron_ingot",0.1),
            Output.of("minecraft:redstone",0.5),Output.of("minecraft:iron_ingot",0.1),
        ]
    )
	.processingTime(2000);
  • 建议在添加带自定义战利品的配方之前先禁用默认配方。

感谢 Create 的创造者们。

代码灵感来自 Create 模组本身及 Mrbysco