Replace use of global.ie

This commit is contained in:
oitsjustjose 2022-07-27 10:05:29 -05:00
commit c28420d2d2
17 changed files with 64943 additions and 63005 deletions

View file

@ -6,7 +6,7 @@ declare const HOUR: 3600000;
declare const SLOT_FEET: EquipmentSlot;
declare const SLOT_HEAD: EquipmentSlot;
declare const FTBQuests: Internal.FTBQuestsKubeJSWrapper;
declare const global: {"recipes":(arg0) => any,"jeiRuntime":Internal.JEIJeiRuntime,"duplicateResources":[{"tag":"forge:gears/diamond","item":"industrialforegoing:diamond_gear"}, {"tag":"forge:gears/gold","item":"industrialforegoing:gold_gear"}, {"tag":"forge:gears/iron","item":"industrialforegoing:iron_gear"}, {"tag":"forge:coal_coke","item":Internal.ConsString}, {"tag":"forge:dusts/constantan","item":Internal.ConsString}, {"tag":"forge:dusts/copper","item":Internal.ConsString}, {"tag":"forge:dusts/electrum","item":Internal.ConsString}, {"tag":"forge:dusts/gold","item":Internal.ConsString}, {"tag":"forge:dusts/iron","item":Internal.ConsString}, {"tag":"forge:dusts/lead","item":Internal.ConsString}, {"tag":"forge:dusts/nickel","item":Internal.ConsString}, {"tag":"forge:dusts/silver","item":Internal.ConsString}, {"tag":"forge:dusts/wood","item":Internal.ConsString}, {"tag":"forge:ingots/constantan","item":Internal.ConsString}, {"tag":"forge:ingots/electrum","item":Internal.ConsString}, {"tag":"forge:ingots/lead","item":Internal.ConsString}, {"tag":"forge:ingots/nickel","item":Internal.ConsString}, {"tag":"forge:ingots/silver","item":Internal.ConsString}, {"tag":"forge:nuggets/constantan","item":Internal.ConsString}, {"tag":"forge:nuggets/copper","item":"create:copper_nugget"}, {"tag":"forge:nuggets/copper","item":Internal.ConsString}, {"tag":"forge:nuggets/electrum","item":Internal.ConsString}, {"tag":"forge:nuggets/lead","item":Internal.ConsString}, {"tag":"forge:nuggets/nickel","item":Internal.ConsString}, {"tag":"forge:nuggets/silver","item":Internal.ConsString}, {"tag":"forge:plastic","item":"industrialforegoing:plastic"}, {"tag":"forge:plates/constantan","item":Internal.ConsString}, {"tag":"forge:plates/copper","item":"create:copper_sheet"}, {"tag":"forge:plates/copper","item":Internal.ConsString}, {"tag":"forge:plates/electrum","item":Internal.ConsString}, {"tag":"forge:plates/gold","item":"create:golden_sheet"}, {"tag":"forge:plates/gold","item":Internal.ConsString}, {"tag":"forge:plates/iron","item":"create:iron_sheet"}, {"tag":"forge:plates/iron","item":Internal.ConsString}, {"tag":"forge:plates/lead","item":Internal.ConsString}, {"tag":"forge:plates/nickel","item":Internal.ConsString}, {"tag":"forge:plates/silver","item":Internal.ConsString}, {"tag":"forge:raw_materials/lead","item":Internal.ConsString}, {"tag":"forge:raw_materials/nickel","item":Internal.ConsString}, {"tag":"forge:raw_materials/silver","item":Internal.ConsString}, {"tag":"forge:slag","item":Internal.ConsString}, {"tag":"forge:storage_blocks","item":Internal.ConsString}, {"tag":"forge:storage_blocks/coal_coke","item":Internal.ConsString}, {"tag":"forge:storage_blocks/constantan","item":Internal.ConsString}, {"tag":"forge:storage_blocks/electrum","item":Internal.ConsString}, {"tag":"forge:storage_blocks/lead","item":Internal.ConsString}, {"tag":"forge:storage_blocks/nickel","item":Internal.ConsString}, {"tag":"forge:storage_blocks/silver","item":Internal.ConsString}],"metals":["iron", "gold", "copper", "tin", "silver", "lead", "aluminum", "zinc", "nickel"],"ie":(arg0) => any};
declare const global: {"recipes":(arg0) => any,"jeiRuntime":Internal.JEIJeiRuntime,"validateInput":(arg0) => any,"duplicateResources":[{"tag":"forge:coal_coke","item":"immersiveengineering:coal_coke"}, {"tag":"forge:dusts/constantan","item":"immersiveengineering:dust_constantan"}, {"tag":"forge:dusts/copper","item":"immersiveengineering:dust_copper"}, {"tag":"forge:dusts/electrum","item":"immersiveengineering:dust_electrum"}, {"tag":"forge:dusts/gold","item":"immersiveengineering:dust_gold"}, {"tag":"forge:dusts/iron","item":"immersiveengineering:dust_iron"}, {"tag":"forge:dusts/lead","item":"immersiveengineering:dust_lead"}, {"tag":"forge:dusts/nickel","item":"immersiveengineering:dust_nickel"}, {"tag":"forge:dusts/silver","item":"immersiveengineering:dust_silver"}, {"tag":"forge:dusts/wood","item":"immersiveengineering:dust_wood"}, {"tag":"forge:gears/diamond","item":"industrialforegoing:diamond_gear"}, {"tag":"forge:gears/gold","item":"industrialforegoing:gold_gear"}, {"tag":"forge:gears/iron","item":"industrialforegoing:iron_gear"}, {"tag":"forge:ingots/bronze","item":"mekanism:ingot_bronze"}, {"tag":"forge:ingots/constantan","item":"immersiveengineering:ingot_constantan"}, {"tag":"forge:ingots/electrum","item":"immersiveengineering:ingot_electrum"}, {"tag":"forge:ingots/lead","item":"immersiveengineering:ingot_lead"}, {"tag":"forge:ingots/lead","item":"mekanism:ingot_lead"}, {"tag":"forge:ingots/nickel","item":"immersiveengineering:ingot_nickel"}, {"tag":"forge:ingots/silver","item":"immersiveengineering:ingot_silver"}, {"tag":"forge:ingots/steel","item":"beyond_earth:steel_ingot"}, {"tag":"forge:ingots/steel","item":"davebuildingmod:steel_ingot"}, {"tag":"forge:ingots/steel","item":"mekanism:ingot_steel"}, {"tag":"forge:ingots/tin","item":"mekanism:ingot_tin"}, {"tag":"forge:ingots/uranium","item":"mekanism:ingot_uranium"}, {"tag":"forge:nuggets/constantan","item":"immersiveengineering:nugget_constantan"}, {"tag":"forge:nuggets/copper","item":"create:copper_nugget"}, {"tag":"forge:nuggets/copper","item":"immersiveengineering:nugget_copper"}, {"tag":"forge:nuggets/electrum","item":"immersiveengineering:nugget_electrum"}, {"tag":"forge:nuggets/lead","item":"immersiveengineering:nugget_lead"}, {"tag":"forge:nuggets/nickel","item":"immersiveengineering:nugget_nickel"}, {"tag":"forge:nuggets/silver","item":"immersiveengineering:nugget_silver"}, {"tag":"forge:nuggets/steel","item":"beyond_earth:steel_nugget"}, {"tag":"forge:plastic","item":"industrialforegoing:plastic"}, {"tag":"forge:plates/constantan","item":"immersiveengineering:plate_constantan"}, {"tag":"forge:plates/copper","item":"create:copper_sheet"}, {"tag":"forge:plates/copper","item":"immersiveengineering:plate_copper"}, {"tag":"forge:plates/electrum","item":"immersiveengineering:plate_electrum"}, {"tag":"forge:plates/gold","item":"create:golden_sheet"}, {"tag":"forge:plates/gold","item":"immersiveengineering:plate_gold"}, {"tag":"forge:plates/iron","item":"create:iron_sheet"}, {"tag":"forge:plates/iron","item":"immersiveengineering:plate_iron"}, {"tag":"forge:plates/lead","item":"immersiveengineering:plate_lead"}, {"tag":"forge:plates/nickel","item":"immersiveengineering:plate_nickel"}, {"tag":"forge:plates/silver","item":"immersiveengineering:plate_silver"}, {"tag":"forge:raw_materials/lead","item":"immersiveengineering:raw_lead"}, {"tag":"forge:raw_materials/nickel","item":"immersiveengineering:raw_nickel"}, {"tag":"forge:raw_materials/silver","item":"immersiveengineering:raw_silver"}, {"tag":"forge:slag","item":"immersiveengineering:slag"}, {"tag":"forge:storage_blocks","item":"immersiveengineering:coke"}, {"tag":"forge:storage_blocks/coal_coke","item":"immersiveengineering:coke"}, {"tag":"forge:storage_blocks/constantan","item":"immersiveengineering:storage_constantan"}, {"tag":"forge:storage_blocks/electrum","item":"immersiveengineering:storage_electrum"}, {"tag":"forge:storage_blocks/lead","item":"immersiveengineering:storage_lead"}, {"tag":"forge:storage_blocks/nickel","item":"immersiveengineering:storage_nickel"}, {"tag":"forge:storage_blocks/silver","item":"immersiveengineering:storage_silver"}, {"tag":"forge:storage_blocks/steel","item":"beyond_earth:steel_block"}],"metals":["iron", "gold", "copper", "tin", "silver", "lead", "aluminum", "zinc", "nickel", "calorite", "desh", "ostrum"]};
declare const MAIN_HAND: Hand;
declare const SLOT_LEGS: EquipmentSlot;
declare const AIR_BLOCK: Internal.AirBlock;

View file

@ -36,6 +36,7 @@ declare function onEvent(name: "item.registry.tool_tiers", handler: (event: Inte
declare function onEvent(name: "jei.subtypes", handler: (event: Internal.JEISubtypesEventJS) => void);
declare function onEvent(name: "rei.hide.items", handler: (event: Internal.HideREIEventJS<any>) => void);
declare function onEvent(name: "rei.add.item", handler: (event: Internal.AddREIEventJS) => void);
declare function onForgeEvent(name: "com.teamabnormals.blueprint.core.events.SimpleJsonResourceListenerPreparedEvent", handler: (event: Internal.SimpleJsonResourceListenerPreparedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$LoadFromFile", handler: (event: Internal.PlayerEvent$LoadFromFile) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.EntityViewRenderEvent$FogColors", handler: (event: Internal.EntityViewRenderEvent$FogColors) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent", handler: (event: Internal.FurnaceFuelBurnTimeEvent) => void);
@ -45,14 +46,19 @@ declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.Play
declare function onForgeEvent(name: "net.minecraftforge.client.event.InputEvent$MouseInputEvent", handler: (event: Internal.InputEvent$MouseInputEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$DrawScreenEvent$Post", handler: (event: Internal.ScreenEvent$DrawScreenEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.EntityViewRenderEvent$CameraSetup", handler: (event: Internal.EntityViewRenderEvent$CameraSetup) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingDamageEvent", handler: (event: Internal.LivingDamageEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderHandEvent", handler: (event: Internal.RenderHandEvent) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.BlockSetEvent", handler: (event: Internal.BlockSetEvent) => void);
declare function onForgeEvent(name: "com.blakebr0.cucumber.event.RegisterRecipesEvent", handler: (event: Internal.RegisterRecipesEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.RegisterCommandsEvent", handler: (event: Internal.RegisterCommandsEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.sound.PlayStreamingSourceEvent", handler: (event: Internal.PlayStreamingSourceEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$PotionSizeEvent", handler: (event: Internal.ScreenEvent$PotionSizeEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingSpawnEvent$AllowDespawn", handler: (event: Internal.LivingSpawnEvent$AllowDespawn) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.EntityTickEvent", handler: (event: Internal.EntityTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$PlayerLoggedInEvent", handler: (event: Internal.PlayerEvent$PlayerLoggedInEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderLivingEvent$Pre", handler: (event: Internal.RenderLivingEvent$Pre<any, any>) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.ChunkWatchEvent$Watch", handler: (event: Internal.ChunkWatchEvent$Watch) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.server.ServerStartedEvent", handler: (event: Internal.ServerStartedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderNameplateEvent", handler: (event: Internal.RenderNameplateEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$MouseClickedEvent$Pre", handler: (event: Internal.ScreenEvent$MouseClickedEvent$Pre) => void);
declare function onForgeEvent(name: "net.mehvahdjukaar.selene.villager_ai.VillagerBrainEvent", handler: (event: Internal.VillagerBrainEvent) => void);
declare function onForgeEvent(name: "com.supermartijn642.core.render.RenderWorldEvent", handler: (event: Internal.RenderWorldEvent) => void);
@ -67,6 +73,9 @@ declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent
declare function onForgeEvent(name: "net.minecraftforge.event.TickEvent$WorldTickEvent", handler: (event: Internal.TickEvent$WorldTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RegisterClientCommandsEvent", handler: (event: Internal.RegisterClientCommandsEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.DifficultyChangeEvent", handler: (event: Internal.DifficultyChangeEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.SleepingLocationCheckEvent", handler: (event: Internal.SleepingLocationCheckEvent) => void);
declare function onForgeEvent(name: "net.blay09.mods.balm.api.event.server.ServerReloadFinishedEvent", handler: (event: Internal.ServerReloadFinishedEvent) => void);
declare function onForgeEvent(name: "com.teamabnormals.blueprint.core.events.AnimateTickEvent", handler: (event: Internal.AnimateTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.EntityMobGriefingEvent", handler: (event: Internal.EntityMobGriefingEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderGameOverlayEvent$PostLayer", handler: (event: Internal.RenderGameOverlayEvent$PostLayer) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.WorldEvent$Load", handler: (event: Internal.WorldEvent$Load) => void);
@ -79,42 +88,51 @@ declare function onForgeEvent(name: "net.minecraftforge.event.OnDatapackSyncEven
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingSpawnEvent$CheckSpawn", handler: (event: Internal.LivingSpawnEvent$CheckSpawn) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$MouseClickedEvent$Post", handler: (event: Internal.ScreenEvent$MouseClickedEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.server.ServerAboutToStartEvent", handler: (event: Internal.ServerAboutToStartEvent) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.SetupLivingBipedAnimEvent$Post", handler: (event: Internal.SetupLivingBipedAnimEvent$Post) => void);
declare function onForgeEvent(name: "com.teamabnormals.blueprint.core.events.AdvancementBuildingEvent", handler: (event: Internal.AdvancementBuildingEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.EntityEvent$EntityConstructing", handler: (event: Internal.EntityEvent$EntityConstructing) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenOpenEvent", handler: (event: Internal.ScreenOpenEvent) => void);
declare function onForgeEvent(name: "net.blay09.mods.balm.api.event.server.ServerReloadedEvent", handler: (event: Internal.ServerReloadedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderArmEvent", handler: (event: Internal.RenderArmEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingDestroyBlockEvent", handler: (event: Internal.LivingDestroyBlockEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderLevelLastEvent", handler: (event: Internal.RenderLevelLastEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.EntityViewRenderEvent$FogDensity", handler: (event: Internal.EntityViewRenderEvent$FogDensity) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.village.WandererTradesEvent", handler: (event: Internal.WandererTradesEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$MouseDragEvent$Post", handler: (event: Internal.ScreenEvent$MouseDragEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingDeathEvent", handler: (event: Internal.LivingDeathEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.TickEvent$RenderTickEvent", handler: (event: Internal.TickEvent$RenderTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.EntityEvent$Size", handler: (event: Internal.EntityEvent$Size) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ClientPlayerNetworkEvent$LoggedInEvent", handler: (event: Internal.ClientPlayerNetworkEvent$LoggedInEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerContainerEvent$Close", handler: (event: Internal.PlayerContainerEvent$Close) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.FOVModifierEvent", handler: (event: Internal.FOVModifierEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingDropsEvent", handler: (event: Internal.LivingDropsEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.ChunkEvent$Load", handler: (event: Internal.ChunkEvent$Load) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.ChunkDataEvent$Load", handler: (event: Internal.ChunkDataEvent$Load) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RecipesUpdatedEvent", handler: (event: Internal.RecipesUpdatedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.PotionEvent$PotionApplicableEvent", handler: (event: Internal.PotionEvent$PotionApplicableEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.BiomeLoadingEvent", handler: (event: Internal.BiomeLoadingEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.RegistryEvent$IdMappingEvent", handler: (event: Internal.RegistryEvent$IdMappingEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.item.ItemExpireEvent", handler: (event: Internal.ItemExpireEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingSpawnEvent$SpecialSpawn", handler: (event: Internal.LivingSpawnEvent$SpecialSpawn) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.item.ItemExpireEvent", handler: (event: Internal.ItemExpireEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.MovementInputUpdateEvent", handler: (event: Internal.MovementInputUpdateEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$MouseDragEvent$Pre", handler: (event: Internal.ScreenEvent$MouseDragEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$MouseReleasedEvent$Pre", handler: (event: Internal.ScreenEvent$MouseReleasedEvent$Pre) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.SetupLivingBipedAnimEvent$Pre", handler: (event: Internal.SetupLivingBipedAnimEvent$Pre) => void);
declare function onForgeEvent(name: "com.jozufozu.flywheel.event.BeginFrameEvent", handler: (event: Internal.BeginFrameEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingAttackEvent", handler: (event: Internal.LivingAttackEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderGameOverlayEvent$Chat", handler: (event: Internal.RenderGameOverlayEvent$Chat) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ClientPlayerNetworkEvent$LoggedOutEvent", handler: (event: Internal.ClientPlayerNetworkEvent$LoggedOutEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerNegotiationEvent", handler: (event: Internal.PlayerNegotiationEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderLevelStageEvent", handler: (event: Internal.RenderLevelStageEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$DrawScreenEvent$Pre", handler: (event: Internal.ScreenEvent$DrawScreenEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$KeyboardKeyPressedEvent$Post", handler: (event: Internal.ScreenEvent$KeyboardKeyPressedEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$KeyboardCharTypedEvent$Post", handler: (event: Internal.ScreenEvent$KeyboardCharTypedEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.server.permission.events.PermissionGatherEvent$Nodes", handler: (event: Internal.PermissionGatherEvent$Nodes) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.LivingEntityTickEndEvent", handler: (event: Internal.LivingEntityTickEndEvent) => void);
declare function onForgeEvent(name: "com.jozufozu.flywheel.event.RenderLayerEvent", handler: (event: Internal.RenderLayerEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.TickEvent$PlayerTickEvent", handler: (event: Internal.TickEvent$PlayerTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingPackSizeEvent", handler: (event: Internal.LivingPackSizeEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.server.permission.events.PermissionGatherEvent$Handler", handler: (event: Internal.PermissionGatherEvent$Handler) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$TabListNameFormat", handler: (event: Internal.PlayerEvent$TabListNameFormat) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LootingLevelEvent", handler: (event: Internal.LootingLevelEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingEvent$LivingJumpEvent", handler: (event: Internal.LivingEvent$LivingJumpEvent) => void);
declare function onForgeEvent(name: "net.mehvahdjukaar.selene.resourcepack.EarlyPackReloadEvent", handler: (event: Internal.EarlyPackReloadEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$StartTracking", handler: (event: Internal.PlayerEvent$StartTracking) => void);
@ -123,11 +141,11 @@ declare function onForgeEvent(name: "net.minecraftforge.event.LootTableLoadEvent
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderGameOverlayEvent$PreLayer", handler: (event: Internal.RenderGameOverlayEvent$PreLayer) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$KeyboardCharTypedEvent$Pre", handler: (event: Internal.ScreenEvent$KeyboardCharTypedEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$NameFormat", handler: (event: Internal.PlayerEvent$NameFormat) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ClientChatReceivedEvent", handler: (event: Internal.ClientChatReceivedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.EntityViewRenderEvent$FieldOfView", handler: (event: Internal.EntityViewRenderEvent$FieldOfView) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$InitScreenEvent$Pre", handler: (event: Internal.ScreenEvent$InitScreenEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderGameOverlayEvent$Pre", handler: (event: Internal.RenderGameOverlayEvent$Pre) => void);
declare function onForgeEvent(name: "me.desht.pneumaticcraft.api.heat.HeatRegistrationEvent", handler: (event: Internal.HeatRegistrationEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.PotionEvent$PotionAddedEvent", handler: (event: Internal.PotionEvent$PotionAddedEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent", handler: (event: Internal.LivingEquipmentChangeEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.TickEvent$ClientTickEvent", handler: (event: Internal.TickEvent$ClientTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.WorldEvent$Save", handler: (event: Internal.WorldEvent$Save) => void);
@ -137,14 +155,14 @@ declare function onForgeEvent(name: "net.minecraftforge.event.server.ServerStart
declare function onForgeEvent(name: "com.jozufozu.flywheel.event.ReloadRenderersEvent", handler: (event: Internal.ReloadRenderersEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.InputEvent$RawMouseEvent", handler: (event: Internal.InputEvent$RawMouseEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderTooltipEvent$Pre", handler: (event: Internal.RenderTooltipEvent$Pre) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.ItemEntityTickEndEvent", handler: (event: Internal.ItemEntityTickEndEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.VanillaGameEvent", handler: (event: Internal.VanillaGameEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.BlockEvent$CropGrowEvent$Pre", handler: (event: Internal.BlockEvent$CropGrowEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.BlockEvent$CropGrowEvent$Post", handler: (event: Internal.BlockEvent$CropGrowEvent$Post) => void);
declare function onForgeEvent(name: "net.mrscauthd.beyond_earth.events.forge.RenderViewEvent", handler: (event: Internal.RenderViewEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.CommandEvent", handler: (event: Internal.CommandEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$BackgroundDrawnEvent", handler: (event: Internal.ScreenEvent$BackgroundDrawnEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderLivingEvent$Post", handler: (event: Internal.RenderLivingEvent$Post<any, any>) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ContainerScreenEvent$DrawForeground", handler: (event: Internal.ContainerScreenEvent$DrawForeground) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderTooltipEvent$Color", handler: (event: Internal.RenderTooltipEvent$Color) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.EnderManAngerEvent", handler: (event: Internal.EnderManAngerEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.TickEvent$ServerTickEvent", handler: (event: Internal.TickEvent$ServerTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderGameOverlayEvent$Text", handler: (event: Internal.RenderGameOverlayEvent$Text) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$KeyboardKeyReleasedEvent$Post", handler: (event: Internal.ScreenEvent$KeyboardKeyReleasedEvent$Post) => void);
@ -152,11 +170,12 @@ declare function onForgeEvent(name: "net.minecraftforge.event.entity.EntityEvent
declare function onForgeEvent(name: "net.minecraftforge.event.AttachCapabilitiesEvent", handler: (event: Internal.AttachCapabilitiesEvent<any>) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.ItemAttributeModifierEvent", handler: (event: Internal.ItemAttributeModifierEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.RenderTooltipEvent$GatherComponents", handler: (event: Internal.RenderTooltipEvent$GatherComponents) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingHurtEvent", handler: (event: Internal.LivingHurtEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$KeyboardKeyPressedEvent$Pre", handler: (event: Internal.ScreenEvent$KeyboardKeyPressedEvent$Pre) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.sound.PlaySoundSourceEvent", handler: (event: Internal.PlaySoundSourceEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.player.PlayerEvent$SaveToFile", handler: (event: Internal.PlayerEvent$SaveToFile) => void);
declare function onForgeEvent(name: "com.teamabnormals.blueprint.core.events.AnimateFluidTickEvent", handler: (event: Internal.AnimateFluidTickEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingFallEvent", handler: (event: Internal.LivingFallEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.BlockEvent$NeighborNotifyEvent", handler: (event: Internal.BlockEvent$NeighborNotifyEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.client.event.ScreenEvent$InitScreenEvent$Post", handler: (event: Internal.ScreenEvent$InitScreenEvent$Post) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.entity.living.LivingEvent$LivingUpdateEvent", handler: (event: Internal.LivingEvent$LivingUpdateEvent) => void);
declare function onForgeEvent(name: "net.minecraftforge.event.world.ChunkDataEvent$Save", handler: (event: Internal.ChunkDataEvent$Save) => void);
@ -190,3 +209,7 @@ declare function onEvent(name: "minecraft.villager_type.registry", handler: (eve
declare function onEvent(name: "villager_type.registry", handler: (event: Registry.Villager_type) => void);
declare function onEvent(name: "minecraft.villager_profession.registry", handler: (event: Registry.Villager_profession) => void);
declare function onEvent(name: "villager_profession.registry", handler: (event: Registry.Villager_profession) => void);
declare function onEvent(name: "mekanism.gas.registry", handler: (event: Registry.Gas) => void);
declare function onEvent(name: "mekanism.infuse_type.registry", handler: (event: Registry.Infuse_type) => void);
declare function onEvent(name: "mekanism.pigment.registry", handler: (event: Registry.Pigment) => void);
declare function onEvent(name: "mekanism.slurry.registry", handler: (event: Registry.Slurry) => void);

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -79,4 +79,22 @@ declare namespace Registry {
create(id: string, type: "basic"): Internal.VillagerProfessionBuilder;
create(id: string): Internal.VillagerProfessionBuilder;
}
class Gas extends Internal.RegistryObjectBuilderTypes$RegistryEventJS<any> {
create(id: string, type: "basic"): Internal.KubeJSGasBuilder;
create(id: string): Internal.KubeJSGasBuilder;
}
class Infuse_type extends Internal.RegistryObjectBuilderTypes$RegistryEventJS<any> {
create(id: string, type: "basic"): Internal.KubeJSInfuseTypeBuilder;
create(id: string): Internal.KubeJSInfuseTypeBuilder;
}
class Pigment extends Internal.RegistryObjectBuilderTypes$RegistryEventJS<any> {
create(id: string, type: "basic"): Internal.KubeJSPigmentBuilder;
create(id: string): Internal.KubeJSPigmentBuilder;
}
class Slurry extends Internal.RegistryObjectBuilderTypes$RegistryEventJS<any> {
create(id: string, type: "basic"): Internal.KubeJSSlurryBuilder$Basic;
create(id: string, type: "dirty"): Internal.KubeJSSlurryBuilder$Dirty;
create(id: string, type: "clean"): Internal.KubeJSSlurryBuilder$Clean;
create(id: string): Internal.KubeJSSlurryBuilder$Basic;
}
}

View file

@ -2,122 +2,158 @@
settings.logErroringRecipes = false;
settings.logInvalidRecipeHandlers = false;
global.ie = x => {
const tmp = `immersiveengineering:${x}`;
return Item.of(tmp) === Item.empty ? 'minecraft:air' : tmp;
};
global.validateInput = x => (Item.of(x) === Item.empty ? 'minecraft:air' : tmp);
global.duplicateResources = [
{tag: 'forge:coal_coke', item: global.ie('coal_coke')},
{tag: 'forge:dusts/constantan', item: global.ie('dust_constantan')},
{tag: 'forge:dusts/copper', item: global.ie('dust_copper')},
{tag: 'forge:dusts/electrum', item: global.ie('dust_electrum')},
{tag: 'forge:dusts/gold', item: global.ie('dust_gold')},
{tag: 'forge:dusts/iron', item: global.ie('dust_iron')},
{tag: 'forge:dusts/lead', item: global.ie('dust_lead')},
{tag: 'forge:dusts/nickel', item: global.ie('dust_nickel')},
{tag: 'forge:dusts/silver', item: global.ie('dust_silver')},
{tag: 'forge:dusts/wood', item: global.ie('dust_wood')},
{tag: 'forge:coal_coke', item: 'immersiveengineering:coal_coke'},
{tag: 'forge:dusts/constantan', item: 'immersiveengineering:dust_constantan'},
{tag: 'forge:dusts/copper', item: 'immersiveengineering:dust_copper'},
{tag: 'forge:dusts/electrum', item: 'immersiveengineering:dust_electrum'},
{tag: 'forge:dusts/gold', item: 'immersiveengineering:dust_gold'},
{tag: 'forge:dusts/iron', item: 'immersiveengineering:dust_iron'},
{tag: 'forge:dusts/lead', item: 'immersiveengineering:dust_lead'},
{tag: 'forge:dusts/nickel', item: 'immersiveengineering:dust_nickel'},
{tag: 'forge:dusts/silver', item: 'immersiveengineering:dust_silver'},
{tag: 'forge:dusts/wood', item: 'immersiveengineering:dust_wood'},
{tag: 'forge:gears/diamond', item: 'industrialforegoing:diamond_gear'},
{tag: 'forge:gears/gold', item: 'industrialforegoing:gold_gear'},
{tag: 'forge:gears/iron', item: 'industrialforegoing:iron_gear'},
{tag: 'forge:ingots/bronze', item: 'mekanism:ingot_bronze'},
{tag: 'forge:ingots/constantan', item: global.ie('ingot_constantan')},
{tag: 'forge:ingots/electrum', item: global.ie('ingot_electrum')},
{tag: 'forge:ingots/constantan', item: 'immersiveengineering:ingot_constantan'},
{tag: 'forge:ingots/electrum', item: 'immersiveengineering:ingot_electrum'},
{tag: 'forge:ingots/lead', item: 'immersiveengineering:ingot_lead'},
{tag: 'forge:ingots/lead', item: 'mekanism:ingot_lead'},
{tag: 'forge:ingots/lead', item: global.ie('ingot_lead')},
{tag: 'forge:ingots/nickel', item: global.ie('ingot_nickel')},
{tag: 'forge:ingots/silver', item: global.ie('ingot_silver')},
{tag: 'forge:ingots/nickel', item: 'immersiveengineering:ingot_nickel'},
{tag: 'forge:ingots/silver', item: 'immersiveengineering:ingot_silver'},
{tag: 'forge:ingots/steel', item: 'beyond_earth:steel_ingot'},
{tag: 'forge:ingots/steel', item: 'davebuildingmod:steel_ingot'},
{tag: 'forge:ingots/steel', item: 'mekanism:ingot_steel'},
{tag: 'forge:ingots/tin', item: 'mekanism:ingot_tin'},
{tag: 'forge:ingots/uranium', item: 'mekanism:ingot_uranium'},
{tag: 'forge:nuggets/constantan', item: global.ie('nugget_constantan')},
{tag: 'forge:nuggets/constantan', item: 'immersiveengineering:nugget_constantan'},
{tag: 'forge:nuggets/copper', item: 'create:copper_nugget'},
{tag: 'forge:nuggets/copper', item: global.ie('nugget_copper')},
{tag: 'forge:nuggets/electrum', item: global.ie('nugget_electrum')},
{tag: 'forge:nuggets/lead', item: global.ie('nugget_lead')},
{tag: 'forge:nuggets/nickel', item: global.ie('nugget_nickel')},
{tag: 'forge:nuggets/silver', item: global.ie('nugget_silver')},
{tag: 'forge:nuggets/copper', item: 'immersiveengineering:nugget_copper'},
{tag: 'forge:nuggets/electrum', item: 'immersiveengineering:nugget_electrum'},
{tag: 'forge:nuggets/lead', item: 'immersiveengineering:nugget_lead'},
{tag: 'forge:nuggets/nickel', item: 'immersiveengineering:nugget_nickel'},
{tag: 'forge:nuggets/silver', item: 'immersiveengineering:nugget_silver'},
{tag: 'forge:nuggets/steel', item: 'beyond_earth:steel_nugget'},
{tag: 'forge:plastic', item: 'industrialforegoing:plastic'},
{tag: 'forge:plates/constantan', item: global.ie('plate_constantan')},
{tag: 'forge:plates/constantan', item: 'immersiveengineering:plate_constantan'},
{tag: 'forge:plates/copper', item: 'create:copper_sheet'},
{tag: 'forge:plates/copper', item: global.ie('plate_copper')},
{tag: 'forge:plates/electrum', item: global.ie('plate_electrum')},
{tag: 'forge:plates/copper', item: 'immersiveengineering:plate_copper'},
{tag: 'forge:plates/electrum', item: 'immersiveengineering:plate_electrum'},
{tag: 'forge:plates/gold', item: 'create:golden_sheet'},
{tag: 'forge:plates/gold', item: global.ie('plate_gold')},
{tag: 'forge:plates/gold', item: 'immersiveengineering:plate_gold'},
{tag: 'forge:plates/iron', item: 'create:iron_sheet'},
{tag: 'forge:plates/iron', item: global.ie('plate_iron')},
{tag: 'forge:plates/lead', item: global.ie('plate_lead')},
{tag: 'forge:plates/nickel', item: global.ie('plate_nickel')},
{tag: 'forge:plates/silver', item: global.ie('plate_silver')},
{tag: 'forge:raw_materials/lead', item: global.ie('raw_lead')},
{tag: 'forge:raw_materials/nickel', item: global.ie('raw_nickel')},
{tag: 'forge:raw_materials/silver', item: global.ie('raw_silver')},
{tag: 'forge:slag', item: global.ie('slag')},
{tag: 'forge:storage_blocks', item: global.ie('coke')},
{tag: 'forge:storage_blocks/coal_coke', item: global.ie('coke')},
{tag: 'forge:storage_blocks/constantan', item: global.ie('storage_constantan')},
{tag: 'forge:storage_blocks/electrum', item: global.ie('storage_electrum')},
{tag: 'forge:storage_blocks/lead', item: global.ie('storage_lead')},
{tag: 'forge:storage_blocks/nickel', item: global.ie('storage_nickel')},
{tag: 'forge:storage_blocks/silver', item: global.ie('storage_silver')},
{tag: 'forge:plates/iron', item: 'immersiveengineering:plate_iron'},
{tag: 'forge:plates/lead', item: 'immersiveengineering:plate_lead'},
{tag: 'forge:plates/nickel', item: 'immersiveengineering:plate_nickel'},
{tag: 'forge:plates/silver', item: 'immersiveengineering:plate_silver'},
{tag: 'forge:raw_materials/lead', item: 'immersiveengineering:raw_lead'},
{tag: 'forge:raw_materials/nickel', item: 'immersiveengineering:raw_nickel'},
{tag: 'forge:raw_materials/silver', item: 'immersiveengineering:raw_silver'},
{tag: 'forge:slag', item: 'immersiveengineering:slag'},
{tag: 'forge:storage_blocks', item: 'immersiveengineering:coke'},
{tag: 'forge:storage_blocks/coal_coke', item: 'immersiveengineering:coke'},
{tag: 'forge:storage_blocks/constantan', item: 'immersiveengineering:storage_constantan'},
{tag: 'forge:storage_blocks/electrum', item: 'immersiveengineering:storage_electrum'},
{tag: 'forge:storage_blocks/lead', item: 'immersiveengineering:storage_lead'},
{tag: 'forge:storage_blocks/nickel', item: 'immersiveengineering:storage_nickel'},
{tag: 'forge:storage_blocks/silver', item: 'immersiveengineering:storage_silver'},
{tag: 'forge:storage_blocks/steel', item: 'beyond_earth:steel_block'},
];
global.metals = ['iron', 'gold', 'copper', 'tin', 'silver', 'lead', 'aluminum', 'zinc', 'nickel'];
global.metals = [
'iron',
'gold',
'copper',
'tin',
'silver',
'lead',
'aluminum',
'zinc',
'nickel',
'calorite',
'desh',
'ostrum',
];
/**
* @param {Internal.RecipeEventJS} event
*/
global.recipes = event => {
return {
/**
* @param {ItemStackJS|string} result
* @param {ItemStackJS[]} items
* @param {FluidStackJS} fluid
*/
dissolution: (result, items, fluid, processingTime) => {
if (items.length > 8) {
console.log(
`Received ${items.length} items for a dissolution chamber recipe - max permitted is 8`
);
return;
}
event.custom({
type: 'industrialforegoing:dissolution_chamber',
input: items.map(x => x.toJson()),
inputFluid: `{FluidName:"${fluid.getId()}",Amount:${fluid.getAmount()}}`,
processingTime: processingTime || 400,
output: result.toResultJson(),
});
},
giant: (result, pattern, ingredients) => {
event.custom({
type: 'create:mechanical_crafting',
pattern: pattern,
key: ingredients,
result: result.toResultJson(),
acceptMirrored: false,
});
},
warping: (input, output, dimension) => {
event.custom({
type: 'architects_palette:warping',
ingredient: [Item.of(input).toJson()],
result: output.toResultJson(),
dimension: dimension ? dimension : 'minecraft:the_nether',
});
},
pressurizing: (inputs, results, pressure) => {
event.custom({
type: 'pneumaticcraft:pressure_chamber',
inputs: inputs,
results: results,
pressure: pressure,
});
},
};
};
global.recipes = event => ({
/**
* @param {ItemStackJS|string} result
* @param {ItemStackJS[]} items
* @param {FluidStackJS} fluid
*/
dissolution: function (result, items, fluid, processingTime) {
if (items.length > 8) {
console.log(
`Received ${items.length} items for a dissolution chamber recipe - max permitted is 8`
);
return;
}
event.custom({
type: 'industrialforegoing:dissolution_chamber',
input: items.map(x => x.toJson()),
inputFluid: `{FluidName:"${fluid.getId()}",Amount:${fluid.getAmount()}}`,
processingTime: processingTime || 400,
output: result.toResultJson(),
});
},
/**
* @param {Internal.ItemStackJS} result
* @param {string[]} pattern
* @param {object[]} ingredients
*/
giant: function (result, pattern, ingredients) {
event.custom({
type: 'create:mechanical_crafting',
pattern: pattern,
key: ingredients,
result: result.toResultJson(),
acceptMirrored: false,
});
},
/**
* @param {Internal.ItemStackJS} input
* @param {Internal.ItemStackJS} output
* @param {string?} dimension
*/
warping: function (input, output, dimension) {
event.custom({
type: 'architects_palette:warping',
ingredient: [input.toJson()],
result: output.toResultJson(),
dimension: dimension || 'minecraft:the_nether',
});
},
/**
* @param {Object[]} inputs
* @param {Object[]} outputs
* @param {Number} pressure - must be a FLOAT.
*/
pressurizing: (inputs, results, pressure) => {
event.custom({
type: 'pneumaticcraft:pressure_chamber',
inputs: inputs,
results: results,
pressure: pressure,
});
},
/**
* @param {Internal.ItemStackJS} out
* @param {Internal.ItemStackJS} left
* @param {Internal.ItemStackJS} right
*/
automatableSmithing: function (out, left, right) {
event.smithing(out, left, right);
global.recipes(event).giant(out, ['LR'], {L: left, R: right});
},
});

View file

@ -1,6 +1,6 @@
onEvent('recipes', event => {
// Remove sawdust flooring -- not progression but :shrug:
event.remove({output: global.ie('sawdust')});
event.remove({output: 'immersiveengineering:sawdust'});
event.remove({id: 'infernalexp:crafting/crafting_shaped/paper_from_mushrooms'});
event.shapeless('1x minecraft:experience_bottle', [

View file

@ -3,7 +3,7 @@ onEvent('recipes', event => {
event.remove({output: x.item});
});
event.replaceInput({}, global.ie('slag'), '#forge:slag');
event.replaceInput({}, 'immersiveengineering:slag', '#forge:slag');
event.replaceInput({}, 'industrialforegoing:plastic', '#forge:plastic');
event.replaceInput({}, 'pneumaticcraft:plastic', '#forge:plastic');

View file

@ -111,6 +111,7 @@ const MekanismModuleRecipes = CustomRecipeHandler => {
};
onEvent('recipes', event => {
// const CustomRecipeHandler = global.recipes(event);
const CustomRecipeHandler = global.recipes(event);
/* Remove recipes for Mekanism */
@ -213,41 +214,31 @@ onEvent('recipes', event => {
/** MODULES **/
MekanismModuleRecipes(CustomRecipeHandler);
/**
* @param {Internal.ItemStackJS} out
* @param {Internal.IngredientJS} left
* @param {Internal.IngredientJS} right
*/
const automatableSmithing = (out, left, right) => {
event.smithing(out, left, right);
CustomRecipeHandler.giant(out, ['LR'], {L: left, R: right});
};
automatableSmithing(
CustomRecipeHandler.automatableSmithing(
Item.of('mekanism:basic_bin'),
Item.of('minecraft:barrel'),
Item.of('pneumaticcraft:ingot_iron_compressed')
);
automatableSmithing(
CustomRecipeHandler.automatableSmithing(
Item.of('mekanism:advanced_bin'),
Item.of('minecraft:barrel'),
Item.of('create:andesite_alloy')
);
automatableSmithing(
CustomRecipeHandler.automatableSmithing(
Item.of('mekanism:elite_bin'),
Item.of('minecraft:barrel'),
Item.of('create:brass_ingot')
);
automatableSmithing(
CustomRecipeHandler.automatableSmithing(
Item.of('mekanism:ultimate_bin'),
Item.of('minecraft:barrel'),
Item.of('thermal:signalum_ingot')
);
event.smithing(
CustomRecipeHandler.automatableSmithing(
Item.of('mekanism:modification_station'),
Item.of('immersiveengineering:workbench'),
Item.of('thermal:machine_frame')

View file

@ -65,8 +65,8 @@ const plates = event => {
'thermal:lumium_plate',
'thermal:enderium_plate',
'create:brass_sheet',
global.ie('plate_steel'),
global.ie('plate_aluminum'),
'immersiveengineering:plate_steel',
'immersiveengineering:plate_aluminum',
].forEach(x => {
const ingot = x.split(':')[1].replace(/plate/g, '').replace(/sheet/g, '').replace(/_/g, '');
event.remove({output: x});
@ -76,7 +76,7 @@ const plates = event => {
event.recipes.immersiveengineeringMetalPress(
x,
`#forge:ingots/${ingot}`,
global.ie('mold_plate')
'immersiveengineering:mold_plate'
);
});
};
@ -107,7 +107,7 @@ const gears = event => {
event.recipes.immersiveengineeringMetalPress(
x,
`4x #forge:ingots/${ingot}`,
global.ie('mold_gear')
'immersiveengineering:mold_gear'
);
});
@ -126,7 +126,7 @@ const gears = event => {
event.recipes.immersiveengineeringMetalPress(
'thermal:diamond_gear',
`4x minecraft:diamond`,
global.ie('mold_gear')
'immersiveengineering:mold_gear'
);
};
@ -134,37 +134,37 @@ const wires = event => {
// Aluminum Wire in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:wire_aluminum', [
'#forge:ingots/aluminum',
global.ie('mold_wire'),
'immersiveengineering:mold_wire',
]);
// Copper Wire in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:wire_copper', [
'#forge:ingots/copper',
global.ie('mold_wire'),
'immersiveengineering:mold_wire',
]);
// Electrum Wire in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:wire_electrum', [
'#forge:ingots/electrum',
global.ie('mold_wire'),
'immersiveengineering:mold_wire',
]);
// Lead Wire in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:wire_lead', [
'#forge:ingots/lead',
global.ie('mold_wire'),
'immersiveengineering:mold_wire',
]);
// Steel Wire in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:wire_steel', [
'#forge:ingots/steel',
global.ie('mold_wire'),
'immersiveengineering:mold_wire',
]);
// Bullet Casing in Thermal Multiservo Press
event.recipes.thermal.press('2x immersiveengineering:empty_casing', [
'#forge:ingots/copper',
global.ie('mold_bullet_casing'),
'immersiveengineering:mold_bullet_casing',
]);
};

View file

@ -1,18 +1,18 @@
onEvent('recipes', event => {
[
'create:crushed_uranium_ore',
global.ie('sheetmetal_uranium'),
global.ie('slab_sheetmetal_uranium'),
global.ie('ore_uranium'),
global.ie('deepslate_ore_uranium'),
global.ie('raw_block_uranium'),
global.ie('slab_storage_uranium'),
global.ie('raw_uranium'),
global.ie('plate_uranium'),
global.ie('dust_uranium'),
global.ie('ingot_uranium'),
global.ie('nugget_uranium'),
global.ie('storage_uranium'),
'immersiveengineering:sheetmetal_uranium',
'immersiveengineering:slab_sheetmetal_uranium',
'immersiveengineering:ore_uranium',
'immersiveengineering:deepslate_ore_uranium',
'immersiveengineering:raw_block_uranium',
'immersiveengineering:slab_storage_uranium',
'immersiveengineering:raw_uranium',
'immersiveengineering:plate_uranium',
'immersiveengineering:dust_uranium',
'immersiveengineering:ingot_uranium',
'immersiveengineering:nugget_uranium',
'immersiveengineering:storage_uranium',
].forEach(x => {
event.remove({input: x});
event.remove({output: x});
@ -20,12 +20,12 @@ onEvent('recipes', event => {
});
onEvent('item.tags', event => {
event.remove('forge:dusts', global.ie('dust_uranium'));
event.remove('forge:dusts/uranium', global.ie('dust_uranium'));
event.remove('forge:ingots', global.ie('ingot_uranium'));
event.remove('forge:ingots/uranium', global.ie('ingot_uranium'));
event.remove('forge:nuggets', global.ie('nugget_uranium'));
event.remove('forge:nuggets/uranium', global.ie('nugget_uranium'));
event.remove('forge:storage_blocks', global.ie('storage_uranium'));
event.remove('forge:storage_blocks/uranium', global.ie('storage_uranium'));
event.remove('forge:dusts', 'immersiveengineering:dust_uranium');
event.remove('forge:dusts/uranium', 'immersiveengineering:dust_uranium');
event.remove('forge:ingots', 'immersiveengineering:ingot_uranium');
event.remove('forge:ingots/uranium', 'immersiveengineering:ingot_uranium');
event.remove('forge:nuggets', 'immersiveengineering:nugget_uranium');
event.remove('forge:nuggets/uranium', 'immersiveengineering:nugget_uranium');
event.remove('forge:storage_blocks', 'immersiveengineering:storage_uranium');
event.remove('forge:storage_blocks/uranium', 'immersiveengineering:storage_uranium');
});

View file

@ -1,54 +1,59 @@
// priority: 512
const unifyMaterials = event => {
global.duplicateResources.forEach(x => {
const tag = x.tag;
const item = x.item;
const rootTag = tag.indexOf('/') >= 0 ? tag.split('/')[0] : tag;
event.remove(tag, item);
event.remove(rootTag, item);
});
event.add('forge:dusts/zinc', 'create:crushed_zinc_ore');
event.add('forge:plastic', 'pneumaticcraft:plastic');
event.add('forge:hides', 'minecraft:leather');
event.add('forge:hides', 'minecraft:rabbit_hide');
event.add('forge:tools/knives', 'tools_complement:iron_knife');
event.add('forge:tools/knives', 'tools_complement:gold_knife');
event.add('forge:tools/knives', 'tools_complement:diamond_knife');
event.add('forge:tools/knives', 'tools_complement:netherite_knife');
event.add('forge:tools/knives', 'tools_complement:copper_knife');
event.add('forge:tools/knives', 'tools_complement:tin_knife');
event.add('forge:tools/knives', 'tools_complement:lead_knife');
event.add('forge:tools/knives', 'tools_complement:silver_knife');
event.add('forge:tools/knives', 'tools_complement:nickel_knife');
event.add('forge:tools/knives', 'tools_complement:bronze_knife');
event.add('forge:tools/knives', 'tools_complement:electrum_knife');
event.add('forge:tools/knives', 'tools_complement:invar_knife');
};
const clearTags = event => {
[
'createaddition:brass_rod',
'createaddition:copper_rod',
'createaddition:copper_spool',
'createaddition:copper_wire',
'createaddition:diamond_grit',
'createaddition:gold_rod',
'createaddition:gold_spool',
'createaddition:gold_wire',
'createaddition:iron_rod',
'createaddition:iron_wire',
'createaddition:zinc_sheet',
].forEach(x => event.removeAllTagsFrom(x));
};
onEvent('item.tags', event => {
const unifyMaterials = event => {
global.duplicateResources.forEach(x => {
const tag = x.tag;
const item = x.item;
const rootTag = tag.indexOf('/') >= 0 ? tag.split('/')[0] : tag;
event.remove(tag, item);
event.remove(rootTag, item);
});
event.add('forge:dusts/zinc', 'create:crushed_zinc_ore');
event.add('forge:plastic', 'pneumaticcraft:plastic');
event.add('forge:hides', 'minecraft:leather');
event.add('forge:hides', 'minecraft:rabbit_hide');
event.add('forge:tools/knives', 'tools_complement:iron_knife');
event.add('forge:tools/knives', 'tools_complement:gold_knife');
event.add('forge:tools/knives', 'tools_complement:diamond_knife');
event.add('forge:tools/knives', 'tools_complement:netherite_knife');
event.add('forge:tools/knives', 'tools_complement:copper_knife');
event.add('forge:tools/knives', 'tools_complement:tin_knife');
event.add('forge:tools/knives', 'tools_complement:lead_knife');
event.add('forge:tools/knives', 'tools_complement:silver_knife');
event.add('forge:tools/knives', 'tools_complement:nickel_knife');
event.add('forge:tools/knives', 'tools_complement:bronze_knife');
event.add('forge:tools/knives', 'tools_complement:electrum_knife');
event.add('forge:tools/knives', 'tools_complement:invar_knife');
};
const clearTags = event => {
[
'createaddition:brass_rod',
'createaddition:copper_rod',
'createaddition:copper_spool',
'createaddition:copper_wire',
'createaddition:diamond_grit',
'createaddition:gold_rod',
'createaddition:gold_spool',
'createaddition:gold_wire',
'createaddition:iron_rod',
'createaddition:iron_wire',
'createaddition:zinc_sheet',
].forEach(x => event.removeAllTagsFrom(x));
};
unifyMaterials(event);
clearTags(event);
event.add('thermal:crafting/dies', global.ie('mold_wire'));
event.add('thermal:crafting/dies', global.ie('mold_bullet_casing'));
event.add('thermal:crafting/dies', 'immersiveengineering:mold_wire');
event.add('thermal:crafting/dies', 'immersiveengineering:mold_bullet_casing');
event.add('forge:dusts/calorite', 'kubejs:calorite_dust');
event.add('forge:dusts/desh', 'kubejs:desh_dust');
event.add('forge:dusts/ostrum', 'kubejs:ostrum_dust');
event.removeAllTagsFrom('minecraft:chest');
});

View file

@ -44,31 +44,39 @@ onEvent('recipes', event => {
event.remove({output: 'createaddition:tesla_coil'});
event.remove({output: 'createaddition:zinc_sheet'});
event.replaceInput({}, 'createaddition:copper_spool', global.ie('wirecoil_copper'));
event.replaceInput({}, 'createaddition:gold_spool', global.ie('wirecoil_electrum'));
event.replaceInput({}, 'createaddition:copper_spool', 'immersiveengineering:wirecoil_copper');
event.replaceInput({}, 'createaddition:gold_spool', 'immersiveengineering:wirecoil_electrum');
event.replaceInput({}, 'createaddition:capacitor', 'pneumaticcraft:capacitor');
event.remove({output: 'createaddition:alternator'});
event.shaped('createaddition:alternator', ['WSA', 'CDH', 'WST'], {
A: 'pneumaticcraft:capacitor',
C: global.ie('connector_lv'),
D: global.ie('dynamo'),
C: 'immersiveengineering:connector_lv',
D: 'immersiveengineering:dynamo',
H: 'create:shaft',
S: '#forge:ingots/steel',
T: 'pneumaticcraft:transistor',
W: global.ie('wirecoil_copper'),
W: 'immersiveengineering:wirecoil_copper',
});
event.remove({output: 'createaddition:electric_motor'});
event.shaped('createaddition:electric_motor', ['PBW', 'HDC', 'PBW'], {
B: '#forge:ingots/brass',
D: global.ie('dynamo'),
C: global.ie('connector_lv'),
W: global.ie('wirecoil_copper'),
D: 'immersiveengineering:dynamo',
C: 'immersiveengineering:connector_lv',
W: 'immersiveengineering:wirecoil_copper',
P: 'pneumaticcraft:printed_circuit_board',
H: 'create:shaft',
});
event.smithing('create:mechanical_saw', 'create:andesite_casing', global.ie('sawblade'));
event.smithing('create:mechanical_drill', 'create:andesite_casing', global.ie('drillhead_steel'));
CustomRecipeHandler.automatableSmithing(
Item.of('create:mechanical_saw'),
Item.of('create:andesite_casing'),
Item.of('immersiveengineering:sawblade')
);
CustomRecipeHandler.automatableSmithing(
Item.of('create:mechanical_drill'),
Item.of('create:andesite_casing'),
Item.of('immersiveengineering:drillhead_steel')
);
});

View file

@ -4,25 +4,25 @@ onEvent('recipes', event => {
// Uncraft preheaters
event.custom({
type: 'create:sequenced_assembly',
ingredient: {item: global.ie('blastfurnace_preheater')},
transitionalItem: {item: global.ie('blastfurnace_preheater')},
ingredient: {item: 'immersiveengineering:blastfurnace_preheater'},
transitionalItem: {item: 'immersiveengineering:blastfurnace_preheater'},
sequence: [
{
type: 'create:pressing',
ingredients: [{item: global.ie('blastfurnace_preheater')}],
results: [{item: global.ie('blastfurnace_preheater')}],
ingredients: [{item: 'immersiveengineering:blastfurnace_preheater'}],
results: [{item: 'immersiveengineering:blastfurnace_preheater'}],
processingTime: 50,
},
{
type: 'create:cutting',
ingredients: [{item: global.ie('blastfurnace_preheater')}],
results: [{item: global.ie('blastfurnace_preheater')}],
ingredients: [{item: 'immersiveengineering:blastfurnace_preheater'}],
results: [{item: 'immersiveengineering:blastfurnace_preheater'}],
processingTime: 50,
},
],
results: [
{item: global.ie('furnace_heater'), chance: 75},
{item: global.ie('sheetmetal_iron'), chance: 20},
{item: 'immersiveengineering:furnace_heater', chance: 75},
{item: 'immersiveengineering:sheetmetal_iron', chance: 20},
{tag: 'forge:plates/iron', chance: 5},
],
loops: 3,
@ -34,10 +34,10 @@ onEvent('recipes', event => {
event.recipes.immersiveengineeringMetalPress(
Item.of('immersiveengineering:graphite_electrode', '{graphDmg:0, Unbreakable:1}'),
`4x #forge:ingots/hop_graphite`,
global.ie('mold_rod')
'immersiveengineering:mold_rod'
);
event.remove({output: global.ie('hammer')});
event.remove({output: 'immersiveengineering:hammer'});
event.shaped('kubejs:crude_hammer', [' A ', 'ASA', 'SA '], {
A: 'create:andesite_alloy',
S: 'minecraft:stick',
@ -67,7 +67,7 @@ onEvent('recipes', event => {
processingTime: 50,
},
],
results: [{item: global.ie('hammer')}],
results: [{item: 'immersiveengineering:hammer'}],
loops: 2,
});
@ -97,14 +97,14 @@ onEvent('recipes', event => {
energy: 1600,
});
event.remove({output: global.ie('sawblade')});
event.shaped(global.ie('sawblade'), ['PIP', 'I I', 'PIP'], {
event.remove({output: 'immersiveengineering:sawblade'});
event.shaped('immersiveengineering:sawblade', ['PIP', 'I I', 'PIP'], {
P: '#forge:plates/iron',
I: '#forge:ingots/compressed_iron',
});
event.replaceInput(
{output: global.ie('drillhead_iron')},
{output: 'immersiveengineering:drillhead_iron'},
'minecraft:iron_block',
'#forge:storage_blocks/compressed_iron'
);
@ -114,25 +114,20 @@ onEvent('recipes', event => {
event.remove({id: 'immersiveengineering:arcfurnace/dust_uranium'});
event.remove({id: 'immersiveengineering:alloysmelter/invar'});
event.remove({id: 'immersiveengineering:alloysmelter/electrum'});
event.replaceInput(
{output: 'createaddition:heater'},
'#forge:ingots/brass',
'#forge:ingots/steel'
);
event.remove({output: global.ie('windmill')});
event.remove({output: global.ie('windmill_sail')});
event.remove({output: global.ie('windmill_blade')});
event.remove({output: global.ie('watermill')});
event.remove({output: global.ie('waterwheel_segment')});
event.remove({output: 'immersiveengineering:windmill'});
event.remove({output: 'immersiveengineering:windmill_sail'});
event.remove({output: 'immersiveengineering:windmill_blade'});
event.remove({output: 'immersiveengineering:watermill'});
event.remove({output: 'immersiveengineering:waterwheel_segment'});
/* Coke Dust Recipes for other machines */
event.recipes.createCrushing(global.ie('dust_coke'), ['#forge:coal_coke']);
event.recipes.createCrushing(`9x ${global.ie('dust_coke')}`, ['#forge:storage_blocks/coal_coke']);
event.recipes.thermal.pulverizer(global.ie('dust_coke'), '#forge:coal_coke');
event.recipes.createCrushing('immersiveengineering:dust_coke', ['#forge:coal_coke']);
event.recipes.createCrushing(`9x ${'immersiveengineering:dust_coke'}`, [
'#forge:storage_blocks/coal_coke',
]);
event.recipes.thermal.pulverizer('immersiveengineering:dust_coke', '#forge:coal_coke');
event.recipes.thermal.pulverizer(
`9x ${global.ie('dust_coke')}`,
`9x ${'immersiveengineering:dust_coke'}`,
'#forge:storage_blocks/coal_coke'
);
});

View file

@ -330,7 +330,7 @@ const machineRecipes = event => {
Item.of('thermal:machine_pyrolyzer'),
['SCCCS', 'SRFLS', 'SCCCS', 'SMMMS'],
{
C: {item: global.ie('cokebrick')},
C: {item: 'immersiveengineering:cokebrick'},
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
@ -375,8 +375,8 @@ const machineRecipes = event => {
const itemRecipes = event => {
// Remove cheeky recipes for alloys
event.remove({input: 'minecraft:fire_charge', mod: 'thermal'});
event.replaceInput({}, 'thermal:saw_blade', global.ie('sawblade'));
event.replaceInput({}, 'thermal:drill_head', global.ie('drillhead_steel'));
event.replaceInput({}, 'thermal:saw_blade', 'immersiveengineering:sawblade');
event.replaceInput({}, 'thermal:drill_head', 'immersiveengineering:drillhead_steel');
event.remove({output: 'thermal:redstone_servo'});
event.remove({output: 'thermal:rf_coil'});

View file

@ -1,359 +1,394 @@
/**
*
* @param {Internal.RecipeEventJS} event
*/
const archPalette = event => {
const CustomRecipeHandler = global.recipes(event);
event.remove({id: 'architects_palette:warping/unobtanium_from_netherite_ingot_warping'});
event.remove({id: 'architects_palette:unobtanium'});
CustomRecipeHandler.warping(
Item.of('thermal:enderium_ingot'),
Item.of('architects_palette:unobtanium')
);
event.recipes.immersiveengineering.arc_furnace(
'5x architects_palette:unobtanium',
'architects_palette:unobtanium_block'
);
};
const buildingGadgets = event => {
event.remove({mod: 'buildinggadgets'});
event.shaped('buildinggadgets:gadget_building', ['BHB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
E: global.ie('toolupgrade_revolver_electro'),
H: 'create:brass_hand',
W: global.ie('wirecoil_electrum'),
});
event.shaped('buildinggadgets:gadget_exchanging', ['BGB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
E: global.ie('toolupgrade_revolver_electro'),
G: 'thermal:ender_grenade',
W: global.ie('wirecoil_electrum'),
});
event.shaped('buildinggadgets:gadget_copy_paste', ['BCB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
C: 'create:schematicannon',
E: global.ie('toolupgrade_revolver_electro'),
W: global.ie('wirecoil_electrum'),
});
event.shaped('buildinggadgets:gadget_destruction', ['BDB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
D: 'pneumaticcraft:drill_bit_netherite',
E: global.ie('toolupgrade_revolver_electro'),
W: global.ie('wirecoil_electrum'),
});
event.smithing('buildinggadgets:template_manager', 'create:schematic_table', '#forge:plastic');
};
const compactMachines = event => {
const CustomRecipeHandler = global.recipes(event);
event.remove({mod: 'compactmachines'});
CustomRecipeHandler.giant(Item.of('compactmachines:machine_tiny'), ['WWW', 'WPW', 'WWW'], {
W: {item: 'compactmachines:wall'},
P: {item: 'pneumaticcraft:vacuum_pump'},
});
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_small'),
['WWWW', 'WPIW', 'WIPW', 'WWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/iron'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_normal'),
['WWWWW', 'WIPIW', 'WIPIW', 'WIPIW', 'WWWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/gold'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_large'),
['WWWWWW', 'WOOOOW', 'WOPPOW', 'WOPPOW', 'WOOOOW', 'WWWWWW'],
{
W: {item: 'compactmachines:wall'},
O: {item: 'minecraft:crying_obsidian'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_giant'),
['WWWWWWW', 'WDDDDDW', 'WDPPPDW', 'WDFFFDW', 'WDPPPDW', 'WDDDDDW', 'WWWWWWW'],
{
W: {item: 'compactmachines:wall'},
D: {item: 'minecraft:diamond'},
F: {item: 'fluxnetworks:flux_dust'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_maximum'),
[
'WWWWWWWW',
'WUUUUUUW',
'WUPPPPUW',
'WUPNNPUW',
'WUPNNPUW',
'WUPPPPUW',
'WUUUUUUW',
'WWWWWWWW',
],
{
W: {item: 'compactmachines:wall'},
U: {item: 'architects_palette:unobtanium'},
N: {tag: 'forge:ingots/netherite'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
event.smithing('compactmachines:wall', global.ie('sheetmetal_lead'), 'minecraft:ender_pearl');
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:item"}}'),
'entangled:block',
'pipez:item_pipe'
);
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:fluid"}}'),
'entangled:block',
'pipez:fluid_pipe'
);
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:energy"}}'),
'entangled:block',
'pipez:energy_pipe'
);
event.smithing(
'compactmachines:personal_shrinking_device',
'tempad:tempad',
'compactmachines:wall'
);
};
const dave = event => {
[
'davebuildingmod:amethyst_glass',
'davebuildingmod:black_chair',
'davebuildingmod:blue_chair',
'davebuildingmod:book_1',
'davebuildingmod:book_2',
'davebuildingmod:brown_chair',
'davebuildingmod:copper_coil',
'davebuildingmod:cyan_chair',
'davebuildingmod:gray_chair',
'davebuildingmod:green_chair',
'davebuildingmod:hard_air',
'davebuildingmod:light_blue_chair',
'davebuildingmod:light_gray_chair',
'davebuildingmod:lime_chair',
'davebuildingmod:magenta_chair',
'davebuildingmod:orange_chair',
'davebuildingmod:pink_chair',
'davebuildingmod:purple_chair',
'davebuildingmod:red_chair',
'davebuildingmod:reinforced_glass',
'davebuildingmod:rocky_dirt',
'davebuildingmod:rubber_duck',
'davebuildingmod:soft_air',
'davebuildingmod:steel_ingot',
'davebuildingmod:track_end',
'davebuildingmod:tungsten_carbite',
'davebuildingmod:white_chair',
'davebuildingmod:yellow_chair',
].forEach(x => event.remove({output: x}));
event.replaceInput({}, 'davebuildingmod:steel_ingot', '#forge:ingots/steel');
event.smithing('2x davebuildingmod:track_end', 'create:track', '#forge:rods/all_metal');
};
const dimStorage = event => {
event.remove({mod: 'dimstorage'});
event.smithing('dimstorage:dimensional_chest', 'thermal:machine_frame', '#forge:ingots/enderium');
event.smithing(
'dimstorage:dimensional_tank',
'thermal:fluid_cell_frame',
'#forge:ingots/enderium'
);
event.smithing('dimstorage:dimensional_tablet', 'tempad:tempad', '#forge:ingots/enderium');
};
const expandedstorage = event => {
event.remove({id: 'expandedstorage:wood_chest'});
event.replaceInput({}, '#forge:chests/wooden', 'expandedstorage:wood_chest');
event.replaceInput({}, 'minecraft:chest', 'expandedstorage:wood_chest');
event.replaceOutput({}, 'minecraft:chest', 'expandedstorage:wood_chest');
[
'expandedstorage:candy_cane_mini_present_with_sparrow',
'expandedstorage:candy_cane_mini_present',
'expandedstorage:green_mini_present_with_sparrow',
'expandedstorage:green_mini_present',
'expandedstorage:lavender_mini_present_with_sparrow',
'expandedstorage:lavender_mini_present',
'expandedstorage:old_diamond_chest',
'expandedstorage:old_gold_chest',
'expandedstorage:old_iron_chest',
'expandedstorage:old_netherite_chest',
'expandedstorage:old_obsidian_chest',
'expandedstorage:old_wood_chest',
'expandedstorage:pink_amethyst_mini_present_with_sparrow',
'expandedstorage:pink_amethyst_mini_present',
'expandedstorage:pumpkin_chest',
'expandedstorage:pumpkin_mini_chest_with_sparrow',
'expandedstorage:pumpkin_mini_chest',
'expandedstorage:red_mini_present_with_sparrow',
'expandedstorage:red_mini_present',
'expandedstorage:vanilla_wood_mini_chest_with_sparrow',
'expandedstorage:vanilla_wood_mini_chest',
'expandedstorage:white_mini_present_with_sparrow',
'expandedstorage:white_mini_present',
'expandedstorage:wood_mini_chest_with_sparrow',
].forEach(x => {
event.remove({output: x});
event.remove({input: x});
});
};
const fluxNetworks = event => {
event.replaceInput(
{output: 'fluxnetworks:flux_core'},
'minecraft:obsidian',
'architects_palette:unobtanium'
);
};
const mcjty = event => {
const CustomRecipeHandler = global.recipes(event);
event.replaceInput({mod: 'xnet'}, 'minecraft:gold_nugget', 'pipez:universal_pipe');
event.replaceInput({output: '#xnet:connectors'}, 'minecraft:gold_ingot', 'pipez:universal_pipe');
event.remove({output: 'rftoolsbase:crafting_card'});
event.remove({output: 'rftoolsbase:dimensionalshard'});
event.remove({output: 'rftoolsbase:filter_module'});
event.remove({output: 'rftoolsbase:infused_enderpearl'});
event.remove({output: 'rftoolsbase:tablet_filled'});
event.remove({output: 'rftoolsbase:tablet'});
CustomRecipeHandler.warping(
Item.of('minecraft:amethyst_shard'),
Item.of('rftoolsbase:dimensionalshard')
);
};
const moreMinecarts = event => {
event.remove({output: 'moreminecarts:silica_steel'});
event.remove({output: 'moreminecarts:silica_steel_mix'});
event.recipes.immersiveengineeringArcFurnace(
['4x moreminecarts:silica_steel'],
'3x #forge:ingots/steel',
['3x minecraft:quartz']
);
};
const pipez = event => {
event.remove({output: 'pipez:item_pipe'});
event.remove({output: 'pipez:fluid_pipe'});
event.remove({output: 'pipez:energy_pipe'});
event.shaped('24x pipez:item_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'prettypipes:low_extraction_module',
P: 'prettypipes:pipe',
G: '#forge:glass/yellow',
});
event.shaped('24x pipez:fluid_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'create:mechanical_pump',
P: 'create:fluid_pipe',
G: '#forge:glass/light_blue',
});
event.shaped('24x pipez:energy_pipe', ['PPP', 'GUG', 'PPP'], {
U: global.ie('connector_lv'),
P: global.ie('wirecoil_copper'),
G: '#forge:glass/red',
});
};
const refinedStorage = event => {
event.remove({output: '#forge:silicon'});
event.recipes.immersiveengineeringArcFurnace(
['refinedstorage:silicon'],
'2x #forge:dusts/quartz'
);
event.remove({id: 'refinedstorage:quartz_enriched_iron'});
event.recipes.thermal.smelter(Item.of('4x refinedstorage:quartz_enriched_iron'), [
Item.of('3x #forge:ingots/iron'),
Item.of('#forge:dusts/quartz'),
]);
};
const routers = event => {
event.replaceInput({output: 'modularrouters:blank_module'}, 'minecraft:paper', '#forge:plastic');
event.replaceInput({output: 'modularrouters:blank_upgrade'}, 'minecraft:paper', '#forge:plastic');
event.replaceInput(
{output: 'modularrouters:modular_router'},
'minecraft:iron_ingot',
'architects_palette:unobtanium'
);
};
const supermartijn = event => {
event.remove({output: 'entangled:block'});
event.shaped('entangled:block', ['LDL', 'ESE', 'LDL'], {
D: 'rftoolsbase:dimensionalshard',
E: 'minecraft:ender_pearl',
L: '#forge:ingots/lead',
S: '#immersiveengineering:scaffoldings/steel',
});
};
const tempad = event => {
event.remove({output: 'tempad:tempad'});
event.shaped('tempad:tempad', ['BBB', 'RSE', 'BBB'], {
B: 'architects_palette:nether_brass_ingot',
S: 'rftoolsbase:information_screen',
R: 'minecraft:redstone_lamp',
E: '#forge:dusts/ender_pearl',
});
};
const torchmaster = event => {
event.remove({mod: 'torchmaster'});
event.smithing('torchmaster:megatorch', 'minecraft:torch', 'rftoolsbase:infused_diamond');
event.smithing('torchmaster:dreadlamp', 'minecraft:obsidian', 'rftoolsbase:infused_diamond');
};
onEvent('recipes', event => {
archPalette(event);
buildingGadgets(event);
compactMachines(event);
dave(event);
dimStorage(event);
expandedstorage(event);
fluxNetworks(event);
mcjty(event);
moreMinecarts(event);
pipez(event);
refinedStorage(event);
routers(event);
supermartijn(event);
tempad(event);
torchmaster(event);
const CustomRecipeHandler = global.recipes(event);
const archPalette = () => {
event.remove({id: 'architects_palette:warping/unobtanium_from_netherite_ingot_warping'});
event.remove({id: 'architects_palette:unobtanium'});
CustomRecipeHandler.warping(
Item.of('thermal:enderium_ingot'),
Item.of('architects_palette:unobtanium')
);
event.recipes.immersiveengineering.arc_furnace(
'5x architects_palette:unobtanium',
'architects_palette:unobtanium_block'
);
};
const buildingGadgets = () => {
event.remove({mod: 'buildinggadgets'});
event.shaped('buildinggadgets:gadget_building', ['BHB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
E: 'immersiveengineering:toolupgrade_revolver_electro',
H: 'create:brass_hand',
W: 'immersiveengineering:wirecoil_electrum',
});
event.shaped('buildinggadgets:gadget_exchanging', ['BGB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
E: 'immersiveengineering:toolupgrade_revolver_electro',
G: 'thermal:ender_grenade',
W: 'immersiveengineering:wirecoil_electrum',
});
event.shaped('buildinggadgets:gadget_copy_paste', ['BCB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
C: 'create:schematicannon',
E: 'immersiveengineering:toolupgrade_revolver_electro',
W: 'immersiveengineering:wirecoil_electrum',
});
event.shaped('buildinggadgets:gadget_destruction', ['BDB', 'BWB', 'BEB'], {
B: '#forge:ingots/brass',
D: 'pneumaticcraft:drill_bit_netherite',
E: 'immersiveengineering:toolupgrade_revolver_electro',
W: 'immersiveengineering:wirecoil_electrum',
});
CustomRecipeHandler.automatableSmithing(
Item.of('buildinggadgets:template_manager'),
Item.of('create:schematic_table'),
Item.of('#forge:plastic')
);
};
const compactMachines = () => {
event.remove({mod: 'compactmachines'});
CustomRecipeHandler.giant(Item.of('compactmachines:machine_tiny'), ['WWW', 'WPW', 'WWW'], {
W: {item: 'compactmachines:wall'},
P: {item: 'pneumaticcraft:vacuum_pump'},
});
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_small'),
['WWWW', 'WPIW', 'WIPW', 'WWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/iron'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_normal'),
['WWWWW', 'WIPIW', 'WIPIW', 'WIPIW', 'WWWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/gold'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_large'),
['WWWWWW', 'WOOOOW', 'WOPPOW', 'WOPPOW', 'WOOOOW', 'WWWWWW'],
{
W: {item: 'compactmachines:wall'},
O: {item: 'minecraft:crying_obsidian'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_giant'),
['WWWWWWW', 'WDDDDDW', 'WDPPPDW', 'WDFFFDW', 'WDPPPDW', 'WDDDDDW', 'WWWWWWW'],
{
W: {item: 'compactmachines:wall'},
D: {item: 'minecraft:diamond'},
F: {item: 'fluxnetworks:flux_dust'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_maximum'),
[
'WWWWWWWW',
'WUUUUUUW',
'WUPPPPUW',
'WUPNNPUW',
'WUPNNPUW',
'WUPPPPUW',
'WUUUUUUW',
'WWWWWWWW',
],
{
W: {item: 'compactmachines:wall'},
U: {item: 'architects_palette:unobtanium'},
N: {tag: 'forge:ingots/netherite'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.automatableSmithing(
'compactmachines:wall',
Item.of('immersiveengineering:sheetmetal_lead'),
Item.of('minecraft:ender_pearl')
);
CustomRecipeHandler.automatableSmithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:item"}}'),
Item.of('entangled:block'),
Item.of('pipez:item_pipe')
);
CustomRecipeHandler.automatableSmithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:fluid"}}'),
Item.of('entangled:block'),
Item.of('pipez:fluid_pipe')
);
CustomRecipeHandler.automatableSmithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:energy"}}'),
Item.of('entangled:block'),
Item.of('pipez:energy_pipe')
);
CustomRecipeHandler.automatableSmithing(
'compactmachines:personal_shrinking_device',
Item.of('tempad:tempad'),
Item.of('compactmachines:wall')
);
};
const dave = () => {
[
'davebuildingmod:amethyst_glass',
'davebuildingmod:black_chair',
'davebuildingmod:blue_chair',
'davebuildingmod:book_1',
'davebuildingmod:book_2',
'davebuildingmod:brown_chair',
'davebuildingmod:copper_coil',
'davebuildingmod:cyan_chair',
'davebuildingmod:gray_chair',
'davebuildingmod:green_chair',
'davebuildingmod:hard_air',
'davebuildingmod:light_blue_chair',
'davebuildingmod:light_gray_chair',
'davebuildingmod:lime_chair',
'davebuildingmod:magenta_chair',
'davebuildingmod:orange_chair',
'davebuildingmod:pink_chair',
'davebuildingmod:purple_chair',
'davebuildingmod:red_chair',
'davebuildingmod:reinforced_glass',
'davebuildingmod:rocky_dirt',
'davebuildingmod:rubber_duck',
'davebuildingmod:soft_air',
'davebuildingmod:steel_ingot',
'davebuildingmod:track_end',
'davebuildingmod:tungsten_carbite',
'davebuildingmod:white_chair',
'davebuildingmod:yellow_chair',
].forEach(x => event.remove({output: x}));
event.replaceInput({}, 'davebuildingmod:steel_ingot', '#forge:ingots/steel');
CustomRecipeHandler.automatableSmithing(
Item.of('2x davebuildingmod:track_end'),
Item.of('create:track'),
Item.of('#forge:rods/all_metal')
);
};
const dimStorage = () => {
event.remove({mod: 'dimstorage'});
CustomRecipeHandler.automatableSmithing(
Item.of('dimstorage:dimensional_chest'),
Item.of('thermal:machine_frame'),
Item.of('#forge:ingots/enderium')
);
CustomRecipeHandler.automatableSmithing(
Item.of('dimstorage:dimensional_tank'),
Item.of('thermal:fluid_cell_frame'),
Item.of('#forge:ingots/enderium')
);
CustomRecipeHandler.automatableSmithing(
Item.of('dimstorage:dimensional_tablet'),
Item.of('tempad:tempad'),
Item.of('#forge:ingots/enderium')
);
};
const expandedstorage = () => {
event.remove({id: 'expandedstorage:wood_chest'});
event.replaceInput({}, '#forge:chests/wooden', 'expandedstorage:wood_chest');
event.replaceInput({}, 'minecraft:chest', 'expandedstorage:wood_chest');
event.replaceOutput({}, 'minecraft:chest', 'expandedstorage:wood_chest');
[
'expandedstorage:candy_cane_mini_present_with_sparrow',
'expandedstorage:candy_cane_mini_present',
'expandedstorage:green_mini_present_with_sparrow',
'expandedstorage:green_mini_present',
'expandedstorage:lavender_mini_present_with_sparrow',
'expandedstorage:lavender_mini_present',
'expandedstorage:old_diamond_chest',
'expandedstorage:old_gold_chest',
'expandedstorage:old_iron_chest',
'expandedstorage:old_netherite_chest',
'expandedstorage:old_obsidian_chest',
'expandedstorage:old_wood_chest',
'expandedstorage:pink_amethyst_mini_present_with_sparrow',
'expandedstorage:pink_amethyst_mini_present',
'expandedstorage:pumpkin_chest',
'expandedstorage:pumpkin_mini_chest_with_sparrow',
'expandedstorage:pumpkin_mini_chest',
'expandedstorage:red_mini_present_with_sparrow',
'expandedstorage:red_mini_present',
'expandedstorage:vanilla_wood_mini_chest_with_sparrow',
'expandedstorage:vanilla_wood_mini_chest',
'expandedstorage:white_mini_present_with_sparrow',
'expandedstorage:white_mini_present',
'expandedstorage:wood_mini_chest_with_sparrow',
].forEach(x => {
event.remove({output: x});
event.remove({input: x});
});
};
const fluxNetworks = () => {
event.replaceInput(
{output: 'fluxnetworks:flux_core'},
'minecraft:obsidian',
'architects_palette:unobtanium'
);
};
const mcjty = () => {
event.replaceInput({mod: 'xnet'}, 'minecraft:gold_nugget', 'pipez:universal_pipe');
event.replaceInput(
{output: '#xnet:connectors'},
'minecraft:gold_ingot',
'pipez:universal_pipe'
);
event.remove({output: 'rftoolsbase:crafting_card'});
event.remove({output: 'rftoolsbase:dimensionalshard'});
event.remove({output: 'rftoolsbase:filter_module'});
event.remove({output: 'rftoolsbase:infused_enderpearl'});
event.remove({output: 'rftoolsbase:tablet_filled'});
event.remove({output: 'rftoolsbase:tablet'});
CustomRecipeHandler.warping(
Item.of('minecraft:amethyst_shard'),
Item.of('rftoolsbase:dimensionalshard')
);
};
const moreMinecarts = () => {
event.remove({output: 'moreminecarts:silica_steel'});
event.remove({output: 'moreminecarts:silica_steel_mix'});
event.recipes.immersiveengineeringArcFurnace(
['4x moreminecarts:silica_steel'],
'3x #forge:ingots/steel',
['3x minecraft:quartz']
);
};
const pipez = () => {
event.remove({output: 'pipez:item_pipe'});
event.remove({output: 'pipez:fluid_pipe'});
event.remove({output: 'pipez:energy_pipe'});
event.shaped('24x pipez:item_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'prettypipes:low_extraction_module',
P: 'prettypipes:pipe',
G: '#forge:glass/yellow',
});
event.shaped('24x pipez:fluid_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'create:mechanical_pump',
P: 'create:fluid_pipe',
G: '#forge:glass/light_blue',
});
event.shaped('24x pipez:energy_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'immersiveengineering:connector_lv',
P: 'immersiveengineering:wirecoil_copper',
G: '#forge:glass/red',
});
};
const refinedStorage = () => {
event.remove({output: '#forge:silicon'});
event.recipes.immersiveengineeringArcFurnace(
['refinedstorage:silicon'],
'2x #forge:dusts/quartz'
);
event.remove({id: 'refinedstorage:quartz_enriched_iron'});
event.recipes.thermal.smelter(Item.of('4x refinedstorage:quartz_enriched_iron'), [
Item.of('3x #forge:ingots/iron'),
Item.of('#forge:dusts/quartz'),
]);
};
const routers = () => {
event.replaceInput(
{output: 'modularrouters:blank_module'},
'minecraft:paper',
'#forge:plastic'
);
event.replaceInput(
{output: 'modularrouters:blank_upgrade'},
'minecraft:paper',
'#forge:plastic'
);
event.replaceInput(
{output: 'modularrouters:modular_router'},
'minecraft:iron_ingot',
'architects_palette:unobtanium'
);
};
const supermartijn = () => {
event.remove({output: 'entangled:block'});
event.shaped('entangled:block', ['LDL', 'ESE', 'LDL'], {
D: 'rftoolsbase:dimensionalshard',
E: 'minecraft:ender_pearl',
L: '#forge:ingots/lead',
S: '#immersiveengineering:scaffoldings/steel',
});
};
const tempad = () => {
event.remove({output: 'tempad:tempad'});
event.shaped('tempad:tempad', ['BBB', 'RSE', 'BBB'], {
B: 'architects_palette:nether_brass_ingot',
S: 'rftoolsbase:information_screen',
R: 'minecraft:redstone_lamp',
E: '#forge:dusts/ender_pearl',
});
};
const torchmaster = () => {
event.remove({mod: 'torchmaster'});
CustomRecipeHandler.automatableSmithing(
Item.of('torchmaster:megatorch'),
Item.of('minecraft:torch'),
Item.of('rftoolsbase:infused_diamond')
);
CustomRecipeHandler.automatableSmithing(
Item.of('torchmaster:dreadlamp'),
Item.of('minecraft:obsidian'),
Item.of('rftoolsbase:infused_diamond')
);
};
archPalette();
buildingGadgets();
compactMachines();
dave();
dimStorage();
expandedstorage();
fluxNetworks();
mcjty();
moreMinecarts();
pipez();
refinedStorage();
routers();
supermartijn();
tempad();
torchmaster();
});

View file

@ -4,10 +4,12 @@ onEvent('recipes', event => {
const thermal = Item.of(`${qty || 1}x thermal:${metal}_${type}`);
const create = Item.of(`${qty || 1}x create:${metal}_${type}`);
const ie = Item.of(`${qty || 1}x immersiveengineering:${type}_${metal}`);
const be = Item.of(`${qty || 1}x beyond_earth:${metal}_${type}`);
if (mc !== Item.empty) return mc;
if (thermal !== Item.empty) return thermal;
if (create !== Item.empty) return create;
if (ie !== Item.empty) return ie;
if (be !== Item.empty) return be;
console.log(`FAILED TO GUESS ${metal} ${type}`);
return Item.empty;