一个机械刷怪笼方块。使用转动力生成生物。
input 为必需。output 为可选。可以是任意实体,例如 "minecraft:skeleton"。默认:来自当前生物群系的随机生物。processingTime 为可选。默认值:200customLoot 为可选。与战利品收集器方块一起使用时,可生成自定义战利品。{
"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
}
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](https://www.curseforge.com/minecraft/mc-mods/create "Create") 模组本身以及 [Mrbysco
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:169,913 | 历史访问人次:269,830
今日访问人数:6,863 | 今日访问人次:7,723
昨日访问人数:23,567 | 昨日访问人次:27,193
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6