跳到正文

AppliedJS

作者:y_xiao233

Add KubeJS compact for AE2

收藏

介绍

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

Modify upgrade inventory for upgradeable machine

  • in startup_scripts
AE2Events.upgrades(event =>{
    event.addSlotSize("ae2:inscriber",4)
    event.addSlotSize("ae2:io_port",3)

    event.setMaxInstalledCount("ae2:speed_card","ae2:inscriber",8)
})

Add custom recipes with KubeJS

  • In server_scripts
ServerEvents.recipes(event =>{
    event.recipes.ae2.entropy(
        EntropyRecipe.mode("heat"),
        EntropyRecipe.createWithBlock("minecraft:smooth_stone").buildAsOutput(),
        EntropyRecipe.createWithBlock("minecraft:stone").buildAsInput()
    )
    
    event.recipes.ae2.entropy(
        EntropyRecipe.COOL,
        EntropyRecipe.createWithFluid("minecraft:water").buildAsOutput(),
        EntropyRecipe.createWithFluid("minecraft:flowing_lava").buildAsInput()
    )


    event.recipes.ae2.charger(
        "minecraft:obsidian",
        "minecraft:magma_block"
    )

    event.recipes.ae2.inscriber(
        InscriberRecipe.mode("press"),
        "minecraft:diamond",
        InscriberRecipe.inputs(
            "minecraft:coal_block",
            "minecraft:coal_block",
            "minecraft:coal_block"
        )
    )

    event.recipes.ae2.inscriber(
        InscriberRecipe.INSCRIBE,
        "minecraft:diamond",
        InscriberRecipe.inputs(
            "minecraft:diamond",
            "minecraft:coal_block",
            InscriberRecipe.empty()
        )
    )


    event.recipes.ae2.transform(
        TransformRecipe.EXPLOSION,
        "minecraft:sand",
                [
            "minecraft:gravel"
        ]
    )

    event.recipes.ae2.transform(
        TransformRecipe.fluid("minecraft:water"),
        "minecraft:sand",
        [
            "minecraft:gravel"
        ]
    )
})

常见问题

AppliedJS 支持哪些 Minecraft 版本?

AppliedJS 支持 Minecraft Java 版 1.21.1–26.1.2,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

AppliedJS 怎么安装?

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

评论

登录后评论和评分

y_xiao233 的其他作品

查看全部 →