Skip to content

Y-Xiao233/IndustrialForegoingExtraUpgrades

Repository files navigation

Industrial Foregoing: Extra Upgrades

该mod支持通过KubeJS来注册工业先锋的各种升级(强烈建议配合probejs一起食用)

注册插件

  • 插件: 速度event.create(id,"industrialforegoing:speed_addon").setTier(tier).setFormTier(formTier)
  • 插件: 效率event.create(id,"industrialforegoing:efficiency_addon").setTier(tier).setFormTier(formTier)
  • 插件: 处理event.create(id,"industrialforegoing:processing_addon").setTier(tier).setFormTier(formTier)

示例

StartupEvents.registry("item", event =>{
    //.setTier(int) 设置升级的等级
    //.setFormTier(int) 默认为设置的等级,可设置为其他整形,用来展示
    event.create("addon_item","industrialforegoing:speed_addon").setTier(15).setFormTier(15)
})

该mod支持通过KubeJS来添加工业先锋的机器配方(强烈建议配合probejs一起食用)

  • Infuser 灌注器event.recipes.ifeu.infuser(OutputItem,InputItem,InputFluid,ProcessingTime)
参数详解:
    OutputItem:输出物品[ItemStack]
    InputItem:输入物品[ItemStack]
    InputFluid:输入流体[FluidStack]
    ProcessingTime:时间[long,单位为tick]
  • Arcane Dragon Egg Forging 奥数龙蛋锻造炉event.recipes.ifeu.arcane_dragon_egg_forging(OutputItem,InputItem,InputFluid1,InputFluid2,ProcessingTime,OutputFluid)
参数详解:
    OutputItem:输出物品[ItemStack]
    InputItem:输入物品[ItemStack]
    InputFluid1:输入流体[FluidStack]
    InputFluid2:输入流体[FluidStack]
    ProcessingTime:时间[long,单位为tick]
    OutputFluid:输出流体[FluidStack,可选,默认为空]
  • StoneWork Generate 造石加工机event.recipes.industrialforegoing.stonework_generate(OutputItem,waterNeed,lavaNeed,waterConsume,lavaConsume)
参数详解:
    OutputItem:输出物品[ItemStack]
    waterNeed:所需水量[int]
    lavaNeed:所需熔岩量[int]
    waterConsume:每次消耗水量[int]
    lavaConsume:每次消耗熔岩量[int]
  • Crusher 粉碎event.recipes.industrialforegoing.crusher(OutputItem,InputItem)
粉碎配方的输入物品需要是造石机的输出
如果造石机本身有这个物品配方,则不需要额外添加

参数详解:
	OutputItem:输出物品[ItemStack]
	InputItem:输入物品[ItemStack]
  • Dissolution Chamber 溶解成形机event.recipes.industrialforegoing.dissolution_chamber(OutputItem,InputItems,InputFluid,ProcessingTime,OutputFluid)
参数详解:
	OutputItem:输出物品[ItemStack]
	InputItems:输入物品列表[[ItemStack...],最多8个输入物品]
	InputFluid:输入流体[FluidStack]
	ProcessingTime:时间[long,单位为tick]
	OutputFluid:输出流体[FluidStack,可选,默认为空]
  • Fluid Extractor 液体提取机event.recipes.industrialforegoing.fluid_extractor(OutputFluid,InputItem,breakChance,result,defaultRecipe)
参数详解:
    OutputFluid:输出流体[FluidStack]
    InputItem:输入物品列表[ItemStack]
    breakChance:破坏概率[float]
    result:方块在被破坏后会变成什么[Block]
    defaultRecipe:是否为默认配方[booleam,默默任务false]
  • Laser Drill Fluid 流体镭射钻基座event.recipes.industrialforegoing.laser_drill_fluid(OutputFluid,catelyst,rarity,entity,pointer)
参数详解;
    OutputFluid:输出流体[FluidStack]
    catelyst:催化剂[ItemStack]
    rarity:稀有度[列表,详见示例]
    pointer:不知道是干什么的[int,默认为0]
  • Laser Drill Ore 镭射钻基座event.recipes.industrialforegoing.laser_drill_ore(OutputItem,catelyst,rarity,pointer)
参数详解;
    OutputFluid:输出流体[FluidStack]
    catelyst:催化剂[ItemStack]
    rarity:稀有度[列表,详见示例]
    pointer:不知道是干什么的[int,默认为0]

示例

ServerEvents.recipes(event => {
    //Infuser
    event.recipes.ifeu.infuser("minecraft:diamond","minecraft:coal_block",Fluid.of("minecraft:lava",1000),100)
    
    //Arcane Dragon Egg Forging
    event.recipes.ifeu.arcane_dragon_egg_forging("16x minecraft:egg","minecraft:dragon_egg",Fluid.of("minecraft:water",1000),Fluid.of("minecraft:lava",1000),200,Fluid.of("minecraft:water",100))

    //StoneWork Generate -> Crusher
    event.recipes.industrialforegoing.stonework_generate("minecraft:blackstone",1000,1000,100,100)
    event.recipes.industrialforegoing.crusher("minecraft:coal","minecraft:blackstone")

    //StoneWork Generate(Original) -> Crusher
    event.recipes.industrialforegoing.crusher("minecraft:redstone","minecraft:netherrack")

    //Dissolution Chamber
    event.recipes.industrialforegoing.dissolution_chamber("minecraft:diamond",[
        "minecraft:coal_block","minecraft:coal_block",
        "minecraft:coal_block","minecraft:coal_block",
        "minecraft:coal_block","minecraft:coal_block",
        "minecraft:coal_block","minecraft:coal_block"
    ],Fluid.of("minecraft:lava",8000),200)


    //Fluid Extractor
    event.recipes.industrialforegoing.fluid_extractor(Fluid.of("minecraft:lava"),"minecraft:stone",0.01,"minecraft:air")

    //Laser Drill Fluid
    event.recipes.industrialforegoing.laser_drill_fluid(Fluid.of("minecraft:milk",50),'industrialforegoing:laser_lens0',[{
        "blacklist": {
            "type": "minecraft:worldgen/biome",
            "values": [
                "minecraft:the_end",
                "minecraft:the_void",
                "minecraft:small_end_islands",
                "minecraft:end_barrens",
                "minecraft:end_highlands",
                "minecraft:end_midlands"
            ]
        },
        "depth_max": 256,
        "depth_min": -64,
        "weight": 8,
        "whitelist": {}
    }],"minecraft:cow")


    //Laser Drill Ore
    event.recipes.industrialforegoing.laser_drill_ore("minecraft:sculk_catalyst","ifeu:laser_lens_sculk",[{
        "blacklist": {
            "type": "minecraft:worldgen/biome",
            "values": [
                "minecraft:the_end",
                "minecraft:the_void",
                "minecraft:small_end_islands",
                "minecraft:end_barrens",
                "minecraft:end_highlands",
                "minecraft:end_midlands"
            ]
        },
        "depth_max": 256,
        "depth_min": -64,
        "weight": 8,
        "whitelist": {}
    }])
})