AppliedJS

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"
        ]
    )
})

The AppliedJS Team

profile avatar
  • 18
    Followers
  • 19
    Projects
  • 1.2M
    Downloads

More from y_xiao233View all