Skip to content

Commit

Permalink
Add smores (#50)
Browse files Browse the repository at this point in the history
* Update the Genisis chapter

* Add files via upload

* Added Fluid Tag Filter recipe and Radium Salt Electrolysis

* Added Milk Choclate Chain

* Made it work

* Fix Stupid Mistackes

* Add Ghram Cracker recipe

Fix more typso

* Add Marshmallow Recipes

* Add Smores

* Fix Bugs

* Reverted Changes

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Update smoreRecipies.js

* Apply suggestions from code review

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* Chaned what milk to use and add a recipe for milk

* Update kubejs/server_scripts/smoreRecipies.js

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

---------

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>
  • Loading branch information
zcarp7220 and LetterN authored Apr 21, 2024
1 parent 3c8786e commit d289ea5
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 17 deletions.
5 changes: 3 additions & 2 deletions kubejs/client_scripts/JEI.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ JEIEvents.hideItems(event => {
event.hide([Item.of('ironjetpacks:cell', '{Id:"ironjetpacks:dark_soularium"}').strongNBT(), Item.of('ironjetpacks:cell', '{Id:"ironjetpacks:fluxed"}').strongNBT(), 'ironjetpacks:capacitor', Item.of('ironjetpacks:thruster', '{Id:"ironjetpacks:creative"}').strongNBT()])
event.hide(['ironjetpacks:basic_coil', 'ironjetpacks:advanced_coil', 'ironjetpacks:elite_coil', 'ironjetpacks:ultimate_coil'])

// Chisel
event.hide('chiselsandbits:block_bit');

// antiblocks (is this even needed?)
// event.hide([/^antiblocksrechiseled:pressure_plate_.+$/, /^antiblocksrechiseled:button_.+$/, /^antiblocksrechiseled:stair_.+$/, /^antiblocksrechiseled:slab_.+$/, /^antiblocksrechiseled:border_.+$/, /^antiblocksrechiseled:wool_.+$/])
Expand Down Expand Up @@ -90,6 +88,9 @@ JEIEvents.hideItems(event => {

// Chipped
event.hide(['chipped:botanist_workbench', 'chipped:glassblower', 'chipped:carpenters_table', 'chipped:loom_table', 'chipped:mason_table', 'chipped:alchemy_bench', 'chipped:tinkering_table'])

//Greg Milk
event.hide('gtceu:milk')
})

JEIEvents.hideFluids(event => {
Expand Down
2 changes: 0 additions & 2 deletions kubejs/server_scripts/Fixes_Server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Issue 187 - https://github.com/ThePansmith/Monifactory/issues/187

function getTrueXp(level, event, debug) {

let xpReq = event.player.getXpNeededForNextLevel()
Expand Down
14 changes: 1 addition & 13 deletions kubejs/server_scripts/random_recipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ ServerEvents.recipes(event => {
}
).damageIngredient('#minecraft:swords')

//Wooden rods from armor plus are easy to accidentally craft instead of wood gears. Turn it into a shaped recipe
//Wooden rods from armor plus are easy to accidentally craft instead of wood gears. Turn it into a shaped recipe
event.remove({ id: "armorplus:crafting/shapeless/wooden_rod" })
event.shaped(
'2x armorplus:wooden_rod', [
Expand Down Expand Up @@ -574,16 +574,4 @@ ServerEvents.recipes(event => {
L: 'gtceu:lead_plate'
}
)

// Stonecutting CCI blocks
let sameItemsTags = ['#chisel_chipped_integration:factory_block', '#chisel_chipped_integration:technical_block', '#chisel_chipped_integration:laboratory_block', '#chisel_chipped_integration:tyrian']; // What item tags to go trough (change this so you have your tags)
sameItemsTags.forEach(tag => {
let sameItems = Ingredient.of(tag).stacks; // Get all of the items with that tag
sameItems.forEach(input => {
sameItems.forEach(output => { // Loop trough the items so all combination of input and output are met
if (input != output) // Ignore recipes where input and output are the same item
event.stonecutting(output, input); // Make the recipe
});
});
});
})
140 changes: 140 additions & 0 deletions kubejs/server_scripts/smoreRecipies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
ServerEvents.recipes(event => {
// Milk Chocolate Making

event.smelting('nuclearcraft:roasted_cocoa_beans', 'minecraft:cocoa_beans').id("kubejs:cocoa_beans")
event.recipes.gtceu.macerator("kubejs:ground_cocoa_nibs")
.itemInputs('nuclearcraft:roasted_cocoa_beans')
.itemOutputs('nuclearcraft:ground_cocoa_nibs')
.EUt(20)
.duration(100)

event.recipes.gtceu.electric_blast_furnace('kubejs:chocolate_liquor')
.itemInputs('nuclearcraft:ground_cocoa_nibs')
.itemOutputs('gtceu:tiny_carbon_dust')
.outputFluids(Fluid.of('nuclearcraft:chocolate_liquor', 144))
.duration(100)
.blastFurnaceTemp(307)
.EUt(120)

event.recipes.gtceu.extractor('kubejs:cocoa_butter')
.itemInputs('nuclearcraft:ground_cocoa_nibs')
.itemOutputs('nuclearcraft:cocoa_solids')
.outputFluids(Fluid.of('nuclearcraft:cocoa_butter', 144))
.EUt(2)
.duration(32)

event.recipes.gtceu.mixer('kubejs:unsweetened_chocolate')
.inputFluids(Fluid.of('nuclearcraft:chocolate_liquor', 144), Fluid.of('nuclearcraft:cocoa_butter', 144))
.outputFluids(Fluid.of('nuclearcraft:unsweetened_chocolate', 288))
.EUt(30)
.duration(100)

event.recipes.gtceu.chemical_reactor('kubejs:milk_pasteurization')
.inputFluids(Fluid.of('minecraft:milk', 1000), Fluid.of('gtceu:steam', 500))//TODO Change to forge tags for steam
.itemInputs('2x gtceu:stainless_steel_plate')
.itemOutputs('2x gtceu:stainless_steel_plate')
.outputFluids(Fluid.of('nuclearcraft:pasteurized_milk', 1000))
.EUt(480)
.duration(250)

event.recipes.gtceu.mixer('kubejs:dark_chocolate')
.inputFluids(Fluid.of('nuclearcraft:unsweetened_chocolate', 144), Fluid.of('nuclearcraft:sugar', 72))
.outputFluids(Fluid.of('nuclearcraft:dark_chocolate', 144))
.EUt(30)
.duration(100)

event.recipes.gtceu.mixer('kubejs:milk_chocolate')
.inputFluids(Fluid.of('nuclearcraft:dark_chocolate', 144), Fluid.of('nuclearcraft:pasteurized_milk', 250))
.outputFluids(Fluid.of('nuclearcraft:milk_chocolate',288))
.EUt(30)
.duration(80)

event.recipes.gtceu.fluid_solidifier('kubejs:solidify_chocolate')
.inputFluids(Fluid.of('nuclearcraft:milk_chocolate', 144))
.itemOutputs('nuclearcraft:milk_chocolate')
.notConsumable('gtceu:plate_casting_mold')
.duration(100)
.EUt(16)

//Grham Cracker
event.recipes.gtceu.compressor('kubejs:graham_cracker')
.itemInputs('2x gtceu:wheat_dust')
.itemOutputs('nuclearcraft:graham_cracker')
.EUt(20)
.duration(200)
event.recipes.gtceu.macerator('kubejs:wheat_dust')
.itemInputs('minecraft:wheat')
.itemOutputs('gtceu:wheat_dust')

//Marshmellow
event.recipes.gtceu.fluid_solidifier('kubejs:solid_marshmallow')
.inputFluids(Fluid.of('nuclearcraft:marshmallow', 144))
.itemOutputs('nuclearcraft:marshmallow')
.notConsumable('gtceu:ball_casting_mold')
.duration(100)
.EUt(16)

event.recipes.gtceu.mixer('kubejs:liquid_marshmallow')
.inputFluids(Fluid.of('nuclearcraft:sugar',72),Fluid.of('nuclearcraft:hydrated_gelatin',144))
.outputFluids(Fluid.of('nuclearcraft:marshmallow',144))
.EUt(30)
.duration(100)
event.recipes.gtceu.extractor('kubejs:liquid_sugar')
.itemInputs('minecraft:sugar')
.outputFluids('nuclearcraft:sugar')
.EUt(16)
.duration(150)
event.recipes.gtceu.mixer('kubejs:hydrated_gelatin')
.inputFluids(Fluid.of('minecraft:water',500),Fluid.of('nuclearcraft:gelatin',144))
.outputFluids(Fluid.of('nuclearcraft:hydrated_gelatin',144))
.EUt(16)
.duration(45)
event.recipes.gtceu.extractor('kubejs:gelatin')
.itemInputs('gtceu:gelitan_dust')
.outputFluids('nuclearcraft:gelatin',144)
.EUt(7)
.duration(100)

event.recipes.gtceu.extractor('kubejs:extract_milk')
.itemInputs('minecraft:cow_spawn_egg')
.outputFluids(Fluid.of('minecraft:milk',5000))
.EUt(32)
.duration(1000)

//Smores Finally!!!
event.shapeless('kubejs:smore_1',[
'2x nuclearcraft:graham_cracker',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_1')
event.shapeless('kubejs:smore_2',[
'2x kubejs:smore_1',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_2')
event.shapeless('kubejs:smore_4',[
'2x kubejs:smore_2',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_4')
event.shapeless('kubejs:smore_8',[
'2x kubejs:smore_4',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_8')
event.shapeless('kubejs:smore_16',[
'2x kubejs:smore_8',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_16')
event.shapeless('kubejs:smore_32',[
'2x kubejs:smore_16',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_32')
event.shapeless('kubejs:smore_64',[
'2x kubejs:smore_32',
'nuclearcraft:milk_chocolate'
,'nuclearcraft:marshmallow'
]).id('kubejs:smore_64')
})

0 comments on commit d289ea5

Please sign in to comment.