
[1.21.1] KubeJS recipe outputs are defined as inputs
Closed this issue ยท 1 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
7.1.0-SNAPSHOT
Minecraft Version
1.21.1 NeoForge
Recipe Viewer Installed
JEI
Environment
Multiplayer - Dedicated Server
Cross-Mod Interaction
Yes
Other Installed Mods
KubeJS (version 2101.7.1-build.181)
Expected Behavior
Be able to add recipes via kubejs.
https://gregtechceu.github.io/GregTech-Modern/Modpacks/Other-Topics/Adding-and-Removing-Recipes/
https://github.com/GregTechCEu/GregTech-Modern/blob/1.21/src/main/java/com/gregtechceu/gtceu/integration/kjs/recipe/GTRecipeSchema.java#L261
Actual Behavior
gtceu_recipes.js:
ServerEvents.recipes(event => {
event.recipes.gtceu.macerator('osmium_to_dust')
.inputItems('1x mekanism:raw_osmium')
.outputItems('2x gtceu:osmium_dust')
.duration(20)
.EUt(2)
event.recipes.gtceu.macerator('macerate_certus_crystal')
.inputItems('1x ae2:certus_quartz_crystal')
.outputItems('1x ae2:certus_quartz_dust')
.duration(15)
.EUt(2)
event.recipes.gtceu.assembler('test')
.inputItems(
'64x minecraft:dirt',
'32x minecraft:diamond'
)
.inputFluids(
Fluid.of('minecraft:lava', 1500)
)
.outputItems(
'minecraft:stick'
)
.duration(100)
.EUt(30)
})
JEI recipe previews:


As seen in the assembler recipe, the outputItems
are being loaded as inputs.
Steps to Reproduce
- Write a KubeJS recipe and save to
./kubejs/server_scripts/
- Launch the server
Additional Information
No response
Fixed in #3602