#Create Mixing Recipe wont work. Help. (RESOLVED)

12 messages · Page 1 of 1 (latest)

west lantern
#

When using this Script:

ServerEvents.recipes(event => {
event.custom({
  "type": "create:mixing",
  "heat_requirement": "lowheated",
  "ingredients": [
    {
      "item": "minecraft:red_sand"
    },
    {
      "item": "minecraft:rotten_flesh"
    },
    {
      "type": "fluid_stack",
      "amount": 1000,
      "fluid": "minecraft:lava"
    }
  ],
  "results": [
    {
      "item": {
        "id": "minecraft:soul_sand"
      }
    }
  ]
})
})```
It keeps giving me this error:
[16:25:15] [ERROR] ! server_scripts:create.js#63: Failed to create custom recipe from json {"type":"create:mixing","heat_requirement":"lowheated","ingredients":[{"item":"minecraft:red_sand"},{"item":"minecraft:rotten_flesh"},{"type":"fluid_stack","amount":1000,"fluid":"minecraft:lava"}],"results":[{"item":{"id":"minecraft:soul_sand"}}]}: Failed to read required component 'results: either<fluid_stack, create:processing_output>[]' - java.lang.IllegalStateException: Failed to parse either. First: No key amount in MapLike[{"item":{"id":"minecraft:soul_sand"}}]; No key id in MapLike[{"item":{"id":"minecraft:soul_sand"}}]; Second: No key id in MapLike[{"item":{"id":"minecraft:soul_sand"}}]

What am i doing wrong?
I got both KubeJS and CreateJS installed (aswell as "create lowheated", for this recipe)
nimble driftBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

hybrid frost
#

Are you sure that this syntax is correct?

west lantern
#

i was looking at some other .json Recipes... and it was stated like this, so i was pretty sure

west lantern
# hybrid frost Are you sure that this syntax is correct?

stated like this one... i was sure

  "type": "create:mixing",
  "heat_requirement": "lowheated",
  "ingredients": [
    {
      "item": "minecraft:bowl"
    },
    {
      "item": "minecraft:beetroot"
    },
    {
      "item": "minecraft:beetroot"
    },
    {
      "item": "minecraft:beetroot"
    },
    {
      "type": "fluid_stack",
      "amount": 250,
      "fluid": "minecraft:water"
    }
  ],
  "results": [
    {
      "item": {
        "id": "minecraft:beetroot_soup"
      }
    }
  ]
}```
#

hm... same error, something is wrong

hybrid frost
#

I know that liminal industries actively uses create low heated, check out the script examples there

west lantern
#

there are differences in the scripts, even tiny ones

hybrid frost
west lantern
#

i got it working!

Working Script:

ServerEvents.recipes(event => { 
  event.custom({
  "type": "create:mixing",
  "heat_requirement": "lowheated",
  "ingredients": [
    {
      "item": "minecraft:sugar"
    },
    {
      "item": "minecraft:cocoa_beans"
    },
    {
      "type": "neoforge:single",
      "amount": 250,
      "fluid": "minecraft:lava"
    }
  ],
  "results": [
    {
      "id": "minecraft:soul_sand"
    }
  ]
})
})```

First Script:
```// KubeJS server script
ServerEvents.recipes(event => {
event.custom({
  "type": "create:mixing",
  "heat_requirement": "lowheated",
  "ingredients": [
    {
      "item": "minecraft:red_sand"
    },
    {
      "item": "minecraft:rotten_flesh"
    },
    {
      "type": "fluid_stack",
      "amount": 1000,
      "fluid": "minecraft:lava"
    }
  ],
  "results": [
    {
      "item": {
        "id": "minecraft:soul_sand"
      }
    }
  ]
})
})```

Find the Mistakes!