Chemical Vat recipes can't be inserted by KubeJS events.
GraithTiger opened this issue ยท 0 comments
Version: 1.21.1-1.1.0c
Adding a recipe via kubejs doesn't work with event.custom() if it's a chemical vat recipe, but it will work if it's inserted into a datapack folder within kubejs. Kubejs doesn't report any warnings or errors either.
what doesn't work:
ServerEvents.recipes(event => {
event.custom({
type: "tfmg:vat_machine_recipe",
allowed_vat_types: [
"tfmg:steel_vat",
"tfmg:firebrick_lined_vat"
],
heat_requirement: "heated",
ingredients: [
{
item: "tfmg:sulfur_dust"
},
{
type: "fluid_tag",
amount: 250,
fluid: "c:heavy_oil"
}
],
machines: [
"tfmg:mixing"
],
min_size: 1,
results: [
{
id: "tfmg:rubber_sheet"
}
]
});
})But the equivalent in kubejs/data/[namespace]/recipe/vat_machine_recipe/rubber.json does
{
"type": "tfmg:vat_machine_recipe",
"allowed_vat_types": [
"tfmg:steel_vat",
"tfmg:firebrick_lined_vat"
],
"heat_requirement": "heated",
"ingredients": [
{
"item": "tfmg:sulfur_dust"
},
{
"type": "fluid_tag",
"amount": 250,
"fluid_tag": "c:heavy_oil"
}
],
"machines": [
"tfmg:mixing"
],
"min_size": 1,
"results": [
{
"id": "tfmg:rubber_sheet"
}
]
}