介绍
You can use this mod to customize multiblock structures with KubeJS and add recipes for them.
#How to use
If you wan to use,create a multiblock controller
“`
StartupEvents.registry(‘block’,event=>{
event.create(‘kubejs:test_controller’,’multiblockjs:controller’)
})
“`
Then create your structure
“`
MjsEvents.definition(event=>{
// Structure ID Controller
// | |
// v v
event.addStructure(‘port_test_1′,’kubejs:test_controller’,[
// The part of the multiblock uses relative coordinates
[0,1,0,’minecraft:stone’],
[1,1,0,’minecraft:stone’],
[-1,1,0,’minecraft:stone’],
[1,0,0,’kubejs:test_item_port’],
[-1,0,0,’kubejs:test_item_port’]
])
})
“`
If you want to obtain relative coordinates, place the Controller at 0,0,0. At this time, the coordinates of each block in the world are the relative coordinates.
You can use port to parse recipe
.setSize() is the number of slots
“`
StartupEvents.registry(‘block’,event=>{
event.create(‘kubejs:test_item_port’,’multiblockjs:item_port’)
.setSize(2)
})
“`
Then add recipe
It is also relative coordinates
“`
MjsEvents.recipe(event=>{
event.addRecipe(‘kubejs:test_controller’,20,[
[
“item”,
“input”,
1,0,0,
‘minecraft:iron_ingot’,1
],
[
“item”,
“output”,
-1,0,0,
‘minecraft:copper_ingot’,2
]
])
event.addRecipe(‘kubejs:test_controller’,200,[
[
“item”,
“input”,
1,0,0,
‘minecraft:copper_ingot’,1
],
[
“item”,
“output”,
-1,0,0,
‘minecraft:gold_ingot’,2
]
])
})
“`
常见问题
MultiblockJS 支持哪些 Minecraft 版本?
MultiblockJS 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
MultiblockJS 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
117458866249 的其他作品
查看全部 →Create: Auto Track
This mod can automatically lay down railways from the Create mod.
Create Auto Track
This mod can automatically lay down railways from the Create mod.
Aircrashed Engineer
A modpack that tells the story of a crashed engineer
Structural Ingenuity
A modpack that offers a wide variety of world structures
评论
登录后评论和评分