Files
ATM8/minecraft/kubejs/server_scripts/erroringRecipes.js
Adrian Marquis b5ede55eba Version 1.0.19b
2023-05-29 13:49:34 +00:00

217 lines
5.2 KiB
JavaScript

ServerEvents.highPriorityData(event => {
// Create compat for BYG Mangrove Logs (removed due to MC adding mangrove)
['mangrove_log', 'mangrove_wood', 'stripped_mangrove_log', 'stripped_mangrove_wood'].forEach(wood => {
event.addJson(`create:recipes/cutting/compat/byg/${wood}`, {
type: "create:cutting",
conditions: [
{ type: "forge:false" }
]
})
});
// ATC recipe for energizing compress blaze rods in powah
['block', '1x', '2x', '3x'].forEach(tier => {
event.addJson(`powah:recipes/energizing/allthecompressed/blazing_crystal/${tier}`, {
type: "powah:energizing",
conditions: [
{ type: "forge:false" }
]
})
});
event.addJson('ftbic:recipes/shapeless/sulfur_from_hammer', {
type: "minecraft:crafting_shapeless",
conditions: [
{ type: "forge:false" }
]
})
event.addJson('biggerreactors:recipes/compat/mekanism/rotary/superheated_sodium', {
type: "mekanism:rotary",
conditions: [
{ type: "forge:false" }
]
})
// wrong recipe type
event.addJson('croptopia:recipes/banana_cream_pie', {
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"tag": "forge:bananas"
},
{
"tag": "forge:vanilla"
},
{
"item": "minecraft:sugar"
},
{
"item": "minecraft:egg"
},
{
"tag": "forge:milks"
},
{
"item": "croptopia:frying_pan"
}
],
"result": {
"item": "croptopia:banana_cream_pie",
"count": 1
}
})
// item doesn't seem to exist yet, add a check
event.addJson('advgenerators:recipes/modules/gas_input', {
"type": "minecraft:crafting_shaped",
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "mekanism"
},
{
"type": "forge:item_exists",
"item": "advgenerators:gas_input"
}
],
"pattern": [
"S S",
"FPF",
" W "
],
"key": {
"S": {
"tag": "forge:ingots/steel"
},
"F": {
"item": "advgenerators:iron_frame"
},
"W": {
"item": "advgenerators:iron_tubing"
},
"P": {
"item": "minecraft:piston"
}
},
"result": {
"item": "advgenerators:gas_input"
}
})
// add check for mod to be loaded
event.addJson('deeperdarker:recipes/sculk_affinity', {
"type": "jeed:effect_provider",
"effect": {
"idi": "deeperdarker:sculk_affinity"
},
"providers": [
{
"item": "deeperdarker:soul_dust"
}
],
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "jeed"
}
]
})
// productive bees missing reagent for botania bee
event.addJson('productivebees:recipes/botania/pure_bee', {
"type": "botania:petal_apothecary",
"ingredients": [
{
"tag": "botania:petals/white"
},
{
"tag": "botania:petals/white"
},
{
"tag": "botania:petals/white"
},
{
"tag": "botania:petals/white"
},
{
"item": "minecraft:bee_spawn_egg"
}
],
"output": {
"type": "forge:nbt",
"item": "productivebees:spawn_egg_configurable_bee",
"nbt": "{EntityTag:{type:\"productivebees:pure\"}}"
},
"reagent": {
"tag": "botania:seed_apothecary_reagent"
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "botania"
},
{
"type": "productivebees:bee_exists",
"bee": "productivebees:pure"
}
]
});
// sophisticated storage / quark chest compat
['acacia', 'birch', 'crimson', 'dark_oak', 'jungle', 'oak', 'spruce', 'warped'].forEach(wood => {
event.addJson(`sophisticatedstorage:recipes/${wood}_chest_from_quark_${wood}_chest`, {
"type": "minecraft:crafting_shapeless",
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "quark"
},
{
"type": "sophisticatedcore:item_enabled",
"itemRegistryName": "sophisticatedstorage:chest"
}
],
"ingredients": [
{
"item": `quark:${wood}_chest`
},
{
"item": "minecraft:redstone_torch"
}
],
"result": {
"item": "sophisticatedstorage:chest",
"nbt": `{woodType:\"${wood}\"}`
}
})
});
// create / hexcasting compat (akashic log renamed)
['wood', 'log'].forEach(variety => {
event.addJson(`create:recipes/cutting/compat/hexcasting/akashic_${variety}`, {
"type": "create:cutting",
"ingredients": [
{
"item": `hexcasting:edified_${variety}`
}
],
"processingTime": 50,
"results": [
{
"item": `hexcasting:stripped_edified_${variety}`
}
]
})
event.addJson(`create:recipes/cutting/compat/hexcasting/akashic_${variety}_stripped`, {
"type": "create:cutting",
"ingredients": [
{
"item": `hexcasting:stripped_edified_${variety}`
}
],
"processingTime": 50,
"results": [
{
"count": 6,
"item": "hexcasting:edified_planks"
}
]
})
})
// Fix farmers delight / botany pot recipes
// TODO
})