Beyond Earth integration

This commit is contained in:
oitsjustjose 2022-07-27 10:05:19 -05:00
commit 00bdde92af
4 changed files with 606 additions and 44 deletions

View file

@ -3,8 +3,36 @@ const items = [
'/expandedstorage:*_present/',
'/libraryferret:*/',
'/lootr:*/',
// Remove most mek items
'/mekanism:(?!.*_bin)(?!meka.*)(?!modification_station.*)(?!module_.*).*/',
'beyond_earth:alien_spawn_egg',
'beyond_earth:alien_zombie_spawn_egg',
'beyond_earth:coal_generator',
'beyond_earth:coal_lantern',
'beyond_earth:coal_torch',
'beyond_earth:compressed_steel',
'beyond_earth:compressed_steel',
'beyond_earth:compressor',
'beyond_earth:engine_fan',
'beyond_earth:engine_frame',
'beyond_earth:fuel_bucket',
'beyond_earth:fuel_bucket',
'beyond_earth:fuel_refinery',
'beyond_earth:hammer',
'beyond_earth:iron_plate',
'beyond_earth:iron_stick',
'beyond_earth:martian_raptor_spawn_egg',
'beyond_earth:mogler_spawn_egg',
'beyond_earth:oil_bucket',
'beyond_earth:pygro_brute_spawn_egg',
'beyond_earth:pygro_spawn_egg',
'beyond_earth:rover',
'beyond_earth:solar_panel',
'beyond_earth:star_crawler_spawn_egg',
'beyond_earth:steel_block',
'beyond_earth:steel_ingot',
'beyond_earth:steel_nugget',
'beyond_earth:water_pump',
'beyond_earth:wheel',
'buildinggadgets:construction_block_dense',
'buildinggadgets:construction_block_powder',
'buildinggadgets:construction_block',
@ -53,7 +81,6 @@ const items = [
'createaddition:spool',
'createaddition:tesla_coil',
'createaddition:zinc_sheet',
'decorative_blocks:blockstate_copy_item',
'davebuildingmod:alarm_lighton',
'davebuildingmod:amethyst_glass',
'davebuildingmod:black_chair',
@ -85,10 +112,12 @@ const items = [
'davebuildingmod:tungsten_carbite',
'davebuildingmod:white_chair',
'davebuildingmod:yellow_chair',
'decorative_blocks:blockstate_copy_item',
'dimstorage:dim_core',
'dimstorage:dim_wall',
'dimstorage:solid_dim_core',
'enderchests:ender_pouch',
'everycomp:all_woods',
'expandedstorage:candy_cane_mini_present_with_sparrow',
'expandedstorage:candy_cane_mini_present',
'expandedstorage:green_mini_present_with_sparrow',
@ -201,9 +230,19 @@ const items = [
'industrialforegoing:plastic',
'industrialforegoing:tinydryrubber',
'industrialforegoing:transporter',
'infernalexp:basalt_giant_spawn_egg',
'infernalexp:blackstone_dwarf_spawn_egg',
'infernalexp:blindsight_spawn_egg',
'infernalexp:embody_spawn_egg',
'infernalexp:glowsilk_moth_spawn_egg',
'infernalexp:glowsquito_spawn_egg',
'infernalexp:shroomloin_spawn_egg',
'infernalexp:voline_spawn_egg',
'infernalexp:warpbeetle_spawn_egg',
'kubejs:incomplete_hammer',
'kubejs:incomplete_redstone_servo',
'kubejs:incomplete_rf_coil',
'mcjtylib:multipart',
'mekanism:creative_bin',
'mekanism:module_charge_distribution_unit',
'mekanism:module_dosimeter_unit',
@ -476,6 +515,14 @@ const items = [
'rftoolsbase:infused_enderpearl',
'rftoolsbase:tablet_filled',
'rftoolsbase:tablet',
'savage_and_ravage:executioner_spawn_egg',
'savage_and_ravage:griefer_spawn_egg',
'savage_and_ravage:iceologer_spawn_egg',
'savage_and_ravage:skeleton_villager_spawn_egg',
'savage_and_ravage:trickster_spawn_egg',
'supplementaries:bomb_blue_projectile',
'supplementaries:bomb_projectile',
'supplementaries:bomb_spiky_projectile',
'thermal:beetroot_block',
'thermal:carrot_block',
'thermal:deepslate_ruby_ore',
@ -658,11 +705,6 @@ const items = [
Item.of('minecraft:tipped_arrow', '{Potion:"naturalist:long_forest_dasher"}'),
Item.of('minecraft:tipped_arrow', '{Potion:"naturalist:long_glowing"}'),
Item.of('minecraft:tipped_arrow', '{Potion:"naturalist:strong_forest_dasher"}'),
'everycomp:all_woods',
'mcjtylib:multipart',
'supplementaries:bomb_blue_projectile',
'supplementaries:bomb_projectile',
'supplementaries:bomb_spiky_projectile',
];
onEvent('jei.hide.items', event => {
@ -687,10 +729,14 @@ onEvent('rei.hide.items', event => {
onEvent('rei.remove.categories', event => {
[
'mekanism:nutritional_liquifier',
'mekanism:sps_casing',
'beyond_earth:coal_generator',
'beyond_earth:compressor',
'beyond_earth:fuel_refinery',
'beyond_earth:rover',
'mekanism:boiler_casing',
'mekanism:energized_smelter',
'mekanism:nutritional_liquifier',
'mekanism:sps_casing',
'minecraft:plugins/tag',
].forEach(x => event.remove(x));
});

View file

@ -0,0 +1,4 @@
{
"replace": true,
"values": ["thermal:refined_fuel", "thermal:refined_fuel_flowing"]
}

View file

@ -0,0 +1,281 @@
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"min": 5,
"max": 10
},
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:emerald",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:quartz",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold_nugget",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cobweb",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
}
]
},
{
"rolls": {
"min": 5,
"max": 10
},
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_nugget",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold_nugget",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold_ingot",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "immersiveengineering:ingot_steel",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "beyond_earth:moon_sand",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
}
]
},
{
"rolls": {
"min": 5,
"max": 10
},
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:emerald",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:gold_nugget",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "immersiveengineering:ingot_steel",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:redstone",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cobweb",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 20,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 1
}
}
]
}
]
}
]
}

View file

@ -1,43 +1,265 @@
onEvent('recipes', event => {
const CustomRecipeHandler = global.recipes(event);
/** DEDUPLICATION OF RESOURCES **/
event.remove({output: 'beyond_earth:iron_plate'});
event.remove({output: 'beyond_earth:iron_stick'});
event.remove({output: 'beyond_earth:compressed_steel'});
event.replaceInput({}, 'beyond_earth:iron_plate', '#forge:plates/iron');
event.replaceInput({}, 'beyond_earth:iron_stick', '#forge:rods/iron');
event.replaceInput({}, 'beyond_earth:compressed_steel', '#forge:plates/steel');
const cleanup = () => {
/** DEDUPLICATION OF RESOURCES **/
event.remove({output: 'beyond_earth:iron_plate'});
event.remove({output: 'beyond_earth:iron_stick'});
event.remove({output: 'beyond_earth:compressed_steel'});
event.remove({output: 'beyond_earth:engine_frame'});
event.remove({output: 'beyond_earth:engine_fan'});
event.replaceInput({}, 'beyond_earth:iron_plate', '#forge:plates/iron');
event.replaceInput({}, 'beyond_earth:iron_stick', '#forge:rods/iron');
event.replaceInput({}, 'beyond_earth:compressed_steel', '#forge:plates/steel');
event.replaceInput({}, '#beyond_earth:compresseds/steel', '#forge:plates/steel');
event.replaceInput({}, 'beyond_earth:engine_frame', 'thermal:machine_frame');
event.replaceInput({}, 'beyond_earth:engine_fan', 'create:propeller');
event.remove({output: 'beyond_earth:iron_plating_block'});
event.stonecutting('4x beyond_earth:iron_plating_block', '#forge:plates/iron');
event.stonecutting('beyond_earth:iron_plating_block', 'beyond_earth:blue_iron_plating_block');
event.stonecutting('beyond_earth:blue_iron_plating_block', 'beyond_earth:iron_plating_block');
/* Removed because of dupe glitch */
event.remove({output: 'beyond_earth:rover'});
/* Outright unwanted */
event.remove({output: 'beyond_earth:coal_generator'});
event.remove({output: 'beyond_earth:coal_lantern'});
event.remove({output: 'beyond_earth:coal_torch'});
event.remove({output: 'beyond_earth:compressor'});
event.remove({output: 'beyond_earth:fuel_bucket'});
event.remove({output: 'beyond_earth:fuel_refinery'});
event.remove({output: 'beyond_earth:hammer'});
event.remove({output: 'beyond_earth:oil_bucket'});
event.remove({output: 'beyond_earth:solar_panel'});
event.remove({output: 'beyond_earth:water_pump'});
event.remove({output: 'beyond_earth:wheel'});
event.remove({output: Fluid.of('beyond_earth:fuel_flowing')});
event.remove({output: Fluid.of('beyond_earth:fuel')});
event.remove({output: Fluid.of('beyond_earth:oil_flowing')});
event.remove({output: Fluid.of('beyond_earth:oil')});
};
event.remove({output: 'beyond_earth:iron_mark_block'});
CustomRecipeHandler.event.smithing(
'2x beyond_earth:iron_mark_block',
'minecraft:iron_block',
'davebuildingmod:stripedblock'
);
const integration = () => {
/* Plates in Multiservo Press */
event.remove({output: '#beyond_earth:compresseds'});
event.remove({output: '#forge:plates', mod: 'beyond_earth'});
event.recipes.thermal.press('beyond_earth:desh_plate', ['1x #forge:ingots/desh']);
event.recipes.thermal.press('beyond_earth:compressed_desh', [
'beyond_earth:desh_ingot',
'beyond_earth:desh_ingot',
]);
event.recipes.thermal.press('beyond_earth:compressed_calorite', [
'beyond_earth:calorite_ingot',
'beyond_earth:calorite_ingot',
]);
event.recipes.thermal.press('beyond_earth:compressed_ostrum', [
'beyond_earth:ostrum_ingot',
'beyond_earth:ostrum_ingot',
]);
event.remove({output: 'beyond_earth:rusted_iron_pillar_block'});
event.remove({output: 'beyond_earth:rusted_iron_plating_block'});
event.stonecutting(
'beyond_earth:rusted_iron_pillar_block',
'beyond_earth:rusted_iron_plating_block'
);
event.stonecutting(
'beyond_earth:rusted_iron_plating_block',
'beyond_earth:rusted_iron_pillar_block'
);
event.recipes.create.splashing(
['beyond_earth:rusted_iron_plating_block'],
'beyond_earth:iron_plating_block'
);
/* NASA workbench in Mechanical Crafter */
event.remove({output: 'beyond_earth:nasa_workbench'});
CustomRecipeHandler.giant(
Item.of('beyond_earth:nasa_workbench'),
[' A ', 'DPCPL', ' SSS ', 'PSFSP', 'PSSSP'],
{
A: [
{item: 'pneumaticcraft:assembly_io_unit_export'},
{item: 'pneumaticcraft:assembly_io_unit_import'},
],
C: {item: 'minecraft:crafting_table'},
D: {item: 'pneumaticcraft:assembly_drill'},
F: {item: 'industrialforegoing:machine_frame_supreme'},
L: {item: 'pneumaticcraft:assembly_laser'},
P: {tag: 'forge:plates/signalum'},
S: {tag: 'immersiveengineering:scaffoldings/steel'},
}
);
event.remove({output: 'beyond_earth:nasa_workbench'});
// CustomRecipeHandler.
[
'beyond_earth:oxygen_mask',
'beyond_earth:space_suit',
'beyond_earth:space_pants',
'beyond_earth:space_boots',
].forEach(x => event.replaceInput({output: x}, '#forge:plates/iron', 'create:sturdy_sheet'));
event.remove({output: 'beyond_earth:oxygen_loader'});
event.shaped('beyond_earth:oxygen_loader', ['SSS', 'OFO', 'SSS'], {
F: 'industrialforegoing:machine_frame_supreme',
O: 'beyond_earth:oxygen_tank',
S: 'create:sturdy_sheet',
});
event.remove({output: 'beyond_earth:oxygen_bubble_distributor'});
CustomRecipeHandler.automatableSmithing(
Item.of('beyond_earth:oxygen_bubble_distributor'),
Item.of('beyond_earth:oxygen_loader'),
Item.of('create:propeller')
);
};
const rockets = () => {
/* Couldn't use replaceInput - probably because these recipes are formatted wierdly.. */
event.remove({id: 'beyond_earth:nasa_workbenching/tier1'});
event.custom({
type: 'beyond_earth:nasa_workbench',
input: {
parts: {
'beyond_earth:nose': [{item: 'beyond_earth:rocket_nose_cone'}],
'beyond_earth:body': [
{tag: 'forge:plates/steel'},
{tag: 'forge:plates/steel'},
{tag: 'forge:plates/steel'},
{tag: 'forge:plates/steel'},
{tag: 'forge:plates/steel'},
{tag: 'forge:plates/steel'},
],
'beyond_earth:tank': [
{tag: 'beyond_earth:tanks/steel'},
{tag: 'beyond_earth:tanks/steel'},
],
'beyond_earth:fin_left': [
{item: 'beyond_earth:rocket_fin'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:fin_right': [
{item: 'beyond_earth:rocket_fin'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:engine': [{tag: 'beyond_earth:engines/steel'}],
},
},
output: {item: 'beyond_earth:rocket_t1', count: 1},
});
event.remove({id: 'beyond_earth:nasa_workbenching/tier2'});
event.custom({
type: 'beyond_earth:nasa_workbench',
input: {
parts: {
'beyond_earth:nose': [{item: 'beyond_earth:rocket_nose_cone'}],
'beyond_earth:body': [
{tag: 'beyond_earth:compresseds/desh'},
{tag: 'beyond_earth:compresseds/desh'},
{tag: 'beyond_earth:compresseds/desh'},
{tag: 'beyond_earth:compresseds/desh'},
{tag: 'beyond_earth:compresseds/desh'},
{tag: 'beyond_earth:compresseds/desh'},
],
'beyond_earth:tank': [{tag: 'beyond_earth:tanks/desh'}, {tag: 'beyond_earth:tanks/desh'}],
'beyond_earth:fin_left': [{item: 'create:fluid_tank'}, {item: 'beyond_earth:rocket_fin'}],
'beyond_earth:fin_right': [
{item: 'create:fluid_tank'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:engine': [{tag: 'beyond_earth:engines/desh'}],
},
},
output: {item: 'beyond_earth:rocket_t2', count: 1},
});
event.remove({id: 'beyond_earth:nasa_workbenching/tier3'});
event.custom({
type: 'beyond_earth:nasa_workbench',
input: {
parts: {
'beyond_earth:nose': [{item: 'beyond_earth:rocket_nose_cone'}],
'beyond_earth:body': [
{tag: 'beyond_earth:compresseds/ostrum'},
{tag: 'beyond_earth:compresseds/ostrum'},
{tag: 'beyond_earth:compresseds/ostrum'},
{tag: 'beyond_earth:compresseds/ostrum'},
{tag: 'beyond_earth:compresseds/ostrum'},
{tag: 'beyond_earth:compresseds/ostrum'},
],
'beyond_earth:tank': [
{tag: 'beyond_earth:tanks/ostrum'},
{tag: 'beyond_earth:tanks/ostrum'},
],
'beyond_earth:fin_left': [
{item: 'thermal:fluid_cell'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:fin_right': [
{item: 'thermal:fluid_cell'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:engine': [{tag: 'beyond_earth:engines/ostrum'}],
},
},
output: {item: 'beyond_earth:rocket_t3', count: 1},
});
event.remove({id: 'beyond_earth:nasa_workbenching/tier4'});
event.custom({
type: 'beyond_earth:nasa_workbench',
input: {
parts: {
'beyond_earth:nose': [{item: 'beyond_earth:rocket_nose_cone'}],
'beyond_earth:body': [
{tag: 'beyond_earth:compresseds/calorite'},
{tag: 'beyond_earth:compresseds/calorite'},
{tag: 'beyond_earth:compresseds/calorite'},
{tag: 'beyond_earth:compresseds/calorite'},
{tag: 'beyond_earth:compresseds/calorite'},
{tag: 'beyond_earth:compresseds/calorite'},
],
'beyond_earth:tank': [
{tag: 'beyond_earth:tanks/calorite'},
{tag: 'beyond_earth:tanks/calorite'},
],
'beyond_earth:fin_left': [
{item: 'industrialforegoing:advanced_black_hole_tank'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:fin_right': [
{item: 'industrialforegoing:advanced_black_hole_tank'},
{item: 'beyond_earth:rocket_fin'},
],
'beyond_earth:engine': [{tag: 'beyond_earth:engines/calorite'}],
},
},
output: {item: 'beyond_earth:rocket_t4', count: 1},
});
event.remove({output: 'beyond_earth:rocket_launch_pad'});
CustomRecipeHandler.giant(Item.of('9x beyond_earth:rocket_launch_pad'), ['HHH', 'PFP', 'SSS'], {
F: {item: 'industrialforegoing:machine_frame_supreme'},
H: {item: 'pneumaticcraft:heat_sink'},
S: {item: 'create:sturdy_sheet'},
P: {tag: 'forge:plastic'},
});
};
const cosmetic = () => {
event.remove({output: 'beyond_earth:iron_plating_block'});
event.stonecutting('2x beyond_earth:iron_plating_block', '#forge:plates/iron');
event.stonecutting('beyond_earth:blue_iron_plating_block', 'beyond_earth:iron_plating_block');
event.remove({output: 'beyond_earth:iron_mark_block'});
CustomRecipeHandler.automatableSmithing(
Item.of('2x beyond_earth:iron_mark_block'),
Item.of('minecraft:iron_block'),
Item.of('davebuildingmod:stripedblock')
);
event.remove({output: 'beyond_earth:rusted_iron_pillar_block'});
event.remove({output: 'beyond_earth:rusted_iron_plating_block'});
event.stonecutting(
'beyond_earth:rusted_iron_pillar_block',
'beyond_earth:rusted_iron_plating_block'
);
event.stonecutting(
'beyond_earth:rusted_iron_plating_block',
'beyond_earth:rusted_iron_pillar_block'
);
event.recipes.create.splashing(
['beyond_earth:rusted_iron_plating_block'],
'beyond_earth:iron_plating_block'
);
};
cleanup();
integration();
cosmetic();
rockets();
});
onEvent('item.tags', event => {
@ -47,3 +269,12 @@ onEvent('item.tags', event => {
'beyond_earth:compressed_steel'
);
});
onEvent('fluid.tags', event => {
event.removeAllTagsFrom(
Fluid.of('beyond_earth:fuel_flowing'),
Fluid.of('beyond_earth:fuel'),
Fluid.of('beyond_earth:oil_flowing'),
Fluid.of('beyond_earth:oil')
);
});