KubeJS (Old)

KubeJS (Old)

3M Downloads

replaceIngredient does not work on Quilt

Treeways opened this issue ยท 0 comments

commented

Minecraft Version

1.20.1

KubeJS Version

2001.6.3-build.45

Rhino Version

2001.2.2-build.6

Architectury Version

9.1.12

Forge/Fabric Version

Quilt 0.20.2

Describe your issue

The following code adds the recipe successfully, but does not replace any of the crafting table's ingredients.

This works on Forge, but not on Quilt:

ServerEvents.recipes((event) => {
    event.shaped(
        'minecraft:stick',
        [
            'I I',
            'BIB',
            'BWB',
        ],
        {
            I: 'minecraft:iron_ingot',
            B: 'minecraft:bricks',
            W: 'minecraft:water_bucket',
        },
    ).replaceIngredient('minecraft:water_bucket', 'minecraft:air')
        .replaceIngredient('minecraft:brick', 'minecraft:torch');
});

There are no errors in the console, nor the KubeJS server log:

[INIT] KubeJS 2001.6.3-build.45; MC 2001 fabric
[INIT] Loaded plugins:
[INIT] - dev.latvian.mods.kubejs.fabric.BuiltinKubeJSFabricPlugin
[INFO] Loaded script server_scripts:miscRecipes.js in 0.001 s
[INFO] Loaded 1/1 KubeJS server scripts in 0.009 s
[INFO] Scripts loaded
[INFO] Initializing recipe event...
[INFO] Processing recipes...
[INFO] Found 1174 recipes in 10.21 ms
[INFO] Posted recipe events in 1.366 ms
[INFO] Added 1 recipes, removed 0 recipes, modified 0 recipes, with 0 failed recipes in 7.204 ms

See the Discord thread for more details and our troubleshooting.

Crash report/logs

No response