Code reformat, cleanup

This commit is contained in:
oitsjustjose 2022-01-31 08:57:45 -06:00
commit 14f6b71e78
71 changed files with 4369 additions and 3704 deletions

View file

@ -1,78 +1,101 @@
onEvent("recipes", (event) => {
const modid = "immersiveengineering";
event.remove({ id: `${modid}:crafting/hammercrushing_aluminum` });
event.remove({ id: `${modid}:crafting/hammercrushing_ardite` });
event.remove({ id: `${modid}:crafting/hammercrushing_cobalt` });
event.remove({ id: `${modid}:crafting/hammercrushing_copper` });
event.remove({ id: `${modid}:crafting/hammercrushing_gold` });
event.remove({ id: `${modid}:crafting/hammercrushing_iron` });
event.remove({ id: `${modid}:crafting/hammercrushing_lead` });
event.remove({ id: `${modid}:crafting/hammercrushing_nickel` });
event.remove({ id: `${modid}:crafting/hammercrushing_osmium` });
event.remove({ id: `${modid}:crafting/hammercrushing_platinum` });
event.remove({ id: `${modid}:crafting/hammercrushing_silver` });
event.remove({ id: `${modid}:crafting/hammercrushing_tin` });
event.remove({ id: `${modid}:crafting/hammercrushing_tungsten` });
event.remove({ id: `${modid}:crafting/hammercrushing_uranium` });
event.remove({ id: `${modid}:crafting/hammercrushing_zinc` });
onEvent('recipes', event => {
const modid = 'immersiveengineering';
event.remove({id: `${modid}:crafting/hammercrushing_aluminum`});
event.remove({id: `${modid}:crafting/hammercrushing_ardite`});
event.remove({id: `${modid}:crafting/hammercrushing_cobalt`});
event.remove({id: `${modid}:crafting/hammercrushing_copper`});
event.remove({id: `${modid}:crafting/hammercrushing_gold`});
event.remove({id: `${modid}:crafting/hammercrushing_iron`});
event.remove({id: `${modid}:crafting/hammercrushing_lead`});
event.remove({id: `${modid}:crafting/hammercrushing_nickel`});
event.remove({id: `${modid}:crafting/hammercrushing_osmium`});
event.remove({id: `${modid}:crafting/hammercrushing_platinum`});
event.remove({id: `${modid}:crafting/hammercrushing_silver`});
event.remove({id: `${modid}:crafting/hammercrushing_tin`});
event.remove({id: `${modid}:crafting/hammercrushing_tungsten`});
event.remove({id: `${modid}:crafting/hammercrushing_uranium`});
event.remove({id: `${modid}:crafting/hammercrushing_zinc`});
event.remove({ id: `${modid}:crafting/plate_aluminum_hammering` });
event.remove({ id: `${modid}:crafting/plate_constantan_hammering` });
event.remove({ id: `${modid}:crafting/plate_copper_hammering` });
event.remove({ id: `${modid}:crafting/plate_electrum_hammering` });
event.remove({ id: `${modid}:crafting/plate_gold_hammering` });
event.remove({ id: `${modid}:crafting/plate_iron_hammering` });
event.remove({ id: `${modid}:crafting/plate_lead_hammering` });
event.remove({ id: `${modid}:crafting/plate_nickel_hammering` });
event.remove({ id: `${modid}:crafting/plate_silver_hammering` });
event.remove({ id: `${modid}:crafting/plate_steel_hammering` });
event.remove({ id: `${modid}:crafting/plate_uranium_hammering` });
event.remove({id: `${modid}:crafting/plate_aluminum_hammering`});
event.remove({id: `${modid}:crafting/plate_constantan_hammering`});
event.remove({id: `${modid}:crafting/plate_copper_hammering`});
event.remove({id: `${modid}:crafting/plate_electrum_hammering`});
event.remove({id: `${modid}:crafting/plate_gold_hammering`});
event.remove({id: `${modid}:crafting/plate_iron_hammering`});
event.remove({id: `${modid}:crafting/plate_lead_hammering`});
event.remove({id: `${modid}:crafting/plate_nickel_hammering`});
event.remove({id: `${modid}:crafting/plate_silver_hammering`});
event.remove({id: `${modid}:crafting/plate_steel_hammering`});
event.remove({id: `${modid}:crafting/plate_uranium_hammering`});
event.remove({ output: `${modid}:alloybrick` });
event.remove({ output: `${modid}:blastbrick` });
event.remove({ output: `${modid}:cokebrick` });
event.remove({ output: `${modid}:hammer` });
event.remove({ output: `${modid}:watermill` });
event.remove({ output: `${modid}:windmill` });
event.remove({output: `${modid}:alloybrick`});
event.remove({output: `${modid}:blastbrick`});
event.remove({output: `${modid}:cokebrick`});
event.remove({output: `${modid}:hammer`});
event.remove({output: `${modid}:watermill`});
event.remove({output: `${modid}:windmill`});
event.remove({ output: `${modid}:hemp_fabric` });
event.remove({ output: `${modid}:windmill_sail` });
event.remove({output: `${modid}:hemp_fabric`});
event.remove({output: `${modid}:windmill_sail`});
global.genCombinedRecipe(event, Ingredient.of("createdeco:dean_bricks"), Ingredient.of("minecraft:sandstone"), Item.of(`${modid}:alloybrick`));
global.genCombinedRecipe(
event,
Ingredient.of('createdeco:dean_bricks'),
Ingredient.of('minecraft:sandstone'),
Item.of(`${modid}:alloybrick`)
);
event.shaped(`27x ${modid}:blastbrick`, ["CHC", "BSB", "CBC"], {
C: "minecraft:clay",
B: "createdeco:dusk_bricks",
S: "create:blaze_burner",
H: "create:chute",
event.shaped(`27x ${modid}:blastbrick`, ['CHC', 'BSB', 'CBC'], {
C: 'minecraft:clay',
B: 'createdeco:dusk_bricks',
S: 'create:blaze_burner',
H: 'create:chute',
});
event.shaped(`27x ${modid}:cokebrick`, ["CHC", "BSB", "CBC"], {
C: "minecraft:clay",
B: "createdeco:blue_bricks",
H: "create:chute",
S: "createaddition:crude_burner",
event.shaped(`27x ${modid}:cokebrick`, ['CHC', 'BSB', 'CBC'], {
C: 'minecraft:clay',
B: 'createdeco:blue_bricks',
H: 'create:chute',
S: 'createaddition:crude_burner',
});
event.shaped(`1x ${modid}:hammer`, [" IR", " SI", "S "], {
S: "#forge:rods/wooden",
I: "#forge:plates/iron",
R: "immersiveengineering:hemp_fiber",
event.shaped(`1x ${modid}:hammer`, [' IR', ' SI', 'S '], {
S: '#forge:rods/wooden',
I: '#forge:plates/iron',
R: 'immersiveengineering:hemp_fiber',
});
global.genCombinedRecipeSewing(event, Ingredient.of(`${modid}:stick_treated`), Ingredient.of(`8x ${modid}:hemp_fiber`), Item.of(`${modid}:hemp_fabric`), 1);
global.genCombinedRecipeSewing(event, Ingredient.of(`6x ${modid}:hemp_fabric`), Ingredient.of(`${modid}:stick_treated`), Item.of(`${modid}:windmill_sail`), 1);
global.genCombinedRecipeSewing(event, Ingredient.of(`${modid}:windmill_blade`), Ingredient.of(`${modid}:windmill_sail`), Item.of("kubejs:cloth_covered_windmill_blade"), 1);
global.genCombinedRecipeSewing(
event,
Ingredient.of(`${modid}:stick_treated`),
Ingredient.of(`8x ${modid}:hemp_fiber`),
Item.of(`${modid}:hemp_fabric`),
1
);
global.genCombinedRecipeSewing(
event,
Ingredient.of(`6x ${modid}:hemp_fabric`),
Ingredient.of(`${modid}:stick_treated`),
Item.of(`${modid}:windmill_sail`),
1
);
global.genCombinedRecipeSewing(
event,
Ingredient.of(`${modid}:windmill_blade`),
Ingredient.of(`${modid}:windmill_sail`),
Item.of('kubejs:cloth_covered_windmill_blade'),
1
);
global.genLargeRecipe(
event,
["BBB", "BSB", "BBB"],
['BBB', 'BSB', 'BBB'],
{
B: {
item: "kubejs:cloth_covered_windmill_blade",
item: 'kubejs:cloth_covered_windmill_blade',
},
S: {
tag: "forge:ingots/steel",
tag: 'forge:ingots/steel',
},
},
{
@ -82,13 +105,13 @@ onEvent("recipes", (event) => {
global.genLargeRecipe(
event,
[" B ", "BSB", " B "],
[' B ', 'BSB', ' B '],
{
B: {
item: `${modid}:waterwheel_segment`,
},
S: {
tag: "forge:ingots/steel",
tag: 'forge:ingots/steel',
},
},
{
@ -97,8 +120,8 @@ onEvent("recipes", (event) => {
);
event.custom({
type: "corail_woodcutter:woodcutting",
ingredient: { tag: "forge:treated_wood" },
type: 'corail_woodcutter:woodcutting',
ingredient: {tag: 'forge:treated_wood'},
result: `${modid}:waterwheel_segment`,
count: 1,
});