Signed-off-by: Pyritie <pyritie@gmail.com> Signed-off-by: TomPlop <tomdidome@gmail.com> Co-authored-by: Xikaro <os.valerievich@ya.ru> Co-authored-by: Nebby <78170922+Nebby1999@users.noreply.github.com> Co-authored-by: Redeix <brayden.j.m.ford@gmail.com> Co-authored-by: TomPlop <tomdidome@gmail.com> Co-authored-by: aidie8 <aidenvanzuilen@gmail.com> Co-authored-by: Xikaro <55663835+Xikaro@users.noreply.github.com> Co-authored-by: Zleub <debray.arnaud@gmail.com>
60 lines
No EOL
1.7 KiB
JavaScript
60 lines
No EOL
1.7 KiB
JavaScript
/**
|
|
*
|
|
* @param {Internal.RecipesEventJS} event
|
|
*/
|
|
const registerComfortsRecipes = (event) => {
|
|
event.remove({ mod: "comforts" })
|
|
|
|
//Rope and Nail
|
|
event.recipes.minecraft.crafting_shapeless("comforts:rope_and_nail", ["firmaciv:rope_coil", "gtceu:wrought_iron_screw"])
|
|
.id("comforts:crafting/shaped/rope_and_nail");
|
|
|
|
//sleeping bag
|
|
event.recipes.minecraft.crafting_shaped("comforts:sleeping_bag_white", [
|
|
"AAA",
|
|
"B "
|
|
], {
|
|
A: "#tfc:high_quality_cloth",
|
|
B: 'tfc:bone_needle'
|
|
});
|
|
|
|
event.recipes.minecraft.crafting_shaped("comforts:hammock_white", [
|
|
"ABA",
|
|
"CCC",
|
|
"ABA"
|
|
], {
|
|
A: "#forge:string",
|
|
B: "gtceu:long_wood_rod",
|
|
C: "#tfc:high_quality_cloth",
|
|
})
|
|
|
|
|
|
global.MINECRAFT_DYE_NAMES.forEach(dyeName => {
|
|
|
|
event.recipes.gtceu.chemical_bath(`comforts:chemical_bath/dye_${dyeName}_sleeping_bag`)
|
|
.itemInputs("#comforts:sleeping_bags")
|
|
.inputFluids(Fluid.of(`tfc:${dyeName}_dye`, 144))
|
|
.itemOutputs(`comforts:sleeping_bag_${dyeName}`)
|
|
.duration(20 * 15)
|
|
.category(GTRecipeCategories.CHEM_DYES)
|
|
.EUt(4);
|
|
|
|
event.recipes.tfc.barrel_sealed(20 * 60)
|
|
.inputs("#comforts:sleeping_bags", Fluid.of(`tfc:${dyeName}_dye`, 144))
|
|
.outputItem(`comforts:sleeping_bag_${dyeName}`)
|
|
.id(`barrel/comforts/sleeping_bag_${dyeName}`)
|
|
|
|
event.recipes.gtceu.chemical_bath(`comforts:chemical_bath/dye_${dyeName}_hammock`)
|
|
.itemInputs("#comforts:hammocks")
|
|
.inputFluids(Fluid.of(`tfc:${dyeName}_dye`, 144))
|
|
.itemOutputs(`comforts:hammock_${dyeName}`)
|
|
.duration(20 * 15)
|
|
.category(GTRecipeCategories.CHEM_DYES)
|
|
.EUt(4);
|
|
|
|
event.recipes.tfc.barrel_sealed(20 * 60)
|
|
.inputs("#comforts:hammocks", Fluid.of(`tfc:${dyeName}_dye`, 144))
|
|
.outputItem(`comforts:hammock_${dyeName}`)
|
|
.id(`barrel/comforts/hammock_${dyeName}`)
|
|
})
|
|
} |