neuralgia/kubejs/server_scripts/wan_ancient_beasts/recipes.js
2025-12-02 19:12:36 +00:00

84 lines
No EOL
1.9 KiB
JavaScript

// priority: 0
"use strict";
/**
* @param {Internal.RecipesEventJS_} event
*/
const registerWABRecipes = (event) => {
event.remove({ mod: 'wan_ancient_beasts'})
event.shapeless('wan_ancient_beasts:quick_sand_bucket',
[
'#tfc:dirt',
'#tfc:mud',
'tfc:sand/yellow',
'minecraft:bucket'
])
event.shapeless('wan_ancient_beasts:quick_red_sand_bucket',
[
'#tfc:dirt',
'#tfc:mud',
'minecraft:red_sand',
'minecraft:bucket'
])
event.recipes.tfc.heating('wan_ancient_beasts:toxlacanth', 200)
.resultItem(TFC.isp.of('wan_ancient_beasts:cooked_toxlacanth').copyFood())
event.recipes.tfc.heating('wan_ancient_beasts:raw_ancient_meat', 200)
.resultItem(TFC.isp.of('wan_ancient_beasts:cooked_ancient_meat').copyFood())
event.recipes.gtceu.macerator('wan_ancient_beasts:skull_crush')
.itemInputs('#wan_ancient_beasts:ancient_skull')
.itemOutputs('32x #forge:dusts/bone')
.duration(400)
.EUt(30)
event.shaped('wan_ancient_beasts:reinforced_shield', [
'BAB',
'DCD',
'BAB'
], {
A: 'wan_ancient_beasts:eater_tooth',
B: 'wan_ancient_beasts:crusher_spike',
C: '#tfc:shields',
D: '#forge:plates/titanium'
}).id('tfg:shaped/reinforced_shield_from_shield')
}
const registerWABData = (event) => {
event.foodItem('wan_ancient_beasts:toxlacanth', food => {
food.hunger(2)
food.protein(1.5)
food.decayModifier(3)
})
event.foodItem('wan_ancient_beasts:cooked_toxlacanth', food => {
food.hunger(4)
food.saturation(2)
food.protein(2.5)
food.decayModifier(2.25)
})
// Eater meat
event.foodItem('wan_ancient_beasts:raw_ancient_meat', food => {
food.hunger(2)
food.protein(2)
food.decayModifier(3)
})
event.foodItem('wan_ancient_beasts:cooked_ancient_meat', food => {
food.hunger(4)
food.saturation(3)
food.protein(5)
food.decayModifier(2.25)
})
event.itemSize('wan_ancient_beasts:reinforced_shield', 'very_large', 'very_heavy')
}