#KubeJs create addon 1.19.2

87 messages · Page 1 of 1 (latest)

drifting iron
#

i know its not out yet but until then we should still be able to use json recipes and some sort of recipe builder?
i wont lie i have no idea how i can do that

basically i just want to have this

```event.recipes.createFilling('farmersdelight:wheat_dough', [
    'create:wheat_flour',
    Fluid.of('minecraft:water', 250)```

but i dont know how

austere mesaBOT
#

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

drifting iron
#

here is 1 attempt that has no way to work

half aurora
#

"has no way to work" or "didnt work"?

drifting iron
#

haha

#

both

#

here is how the jason recipe should look like

north garnet
#

instead of create:splashing

drifting iron
#

oh thx

north garnet
#

create:splashing is a bulk washing recipe

scarlet eagle
drifting iron
drifting iron
scarlet eagle
drifting iron
#

ohhh

#

sorryy

scarlet eagle
#

Function name doesn't do much, it can even be TestFuncton123 and it will work as long as recipe is correct 😄

north garnet
#
{
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:blaze_cake_base"
    },
    {
      "amount": 250,
      "fluid": "minecraft:lava",
      "nbt": {}
    }
  ],
  "results": [
    {
      "item": "create:blaze_cake"
    }
  ]
}
#

here's the most basic format for a sample json recipe btw

#

potions are a little more complicated

drifting iron
#

thx thx

#

so

#

this doesnt work

half aurora
#

what does the log say

drifting iron
half aurora
#

send the file here /logs/kubejs/server.txt

drifting iron
analog quartzBOT
#

Paste version of server.txt from @drifting iron

half aurora
#
Error creating recipe create:kjs_1m33w8flzptr74sa1ko9elmf8[create:filling]: {"type":"create:filling","ingredients":[{"item":"create:wheat_flour","count":1},{"item":"minecraft:air","count":0}],"results":[{"item":"farmersdelight:wheat_dough","count":1}]}: com.google.gson.JsonSyntaxException: Invalid item: minecraft:air
#

minecraft water is not an item

#

its a fluid

scarlet eagle
half aurora
drifting iron
#

haha

drifting iron
north garnet
# drifting iron

it can't find the item create_confectionery:chocolate_bricks_wall
maybe it's create_confectionery:chocolate_brick_wall?

half aurora
#

wha

drifting iron
#

Fluid.of('water',250)

#

like this then?

half aurora
scarlet eagle
drifting iron
#

good night kanz

half aurora
drifting iron
#

haha sorry to interrupt this cuteness but

half aurora
#

well you still parsing the fluid as an item

drifting iron
#

ah

#

and how do i not do that XD

half aurora
#

get rid of the map() and instead just put the item.of() in the list when you call the function

#

if you paste your code instead, i can do it for you

drifting iron
#

let createFilling = (inputs, output) => {
event.custom({
"type": "create:filling",
ingredients: inputs.map(input => Item.of(input).toJson()),
results: [ Item.of(output).toJson() ]
})
}

createFilling(["create:wheat_flour", Fluid.of('water',250)], "farmersdelight:wheat_dough")
drifting iron
half aurora
#
let createFilling = (inputs, output) => {
  event.custom({
    type: 'create:filling',
    ingredients: inputs,
    results: [Item.of(output).toJson()]
  })
}

createFilling([Item.of('create:wheat_flour'), Fluid.of('water', 250)], 'farmersdelight:wheat_dough')
#

try this

drifting iron
#

sorry that still doesnt work for me

#

should i send the log again?

half aurora
#

yeah

#

might be the json missing

brazen gorge
#

might need to still have inputs.map(input => input.toJson()) on ingredients

half aurora
#

was hoping it would do it automatically

drifting iron
analog quartzBOT
#

Paste version of server.txt from @drifting iron

half aurora
#

try that first

drifting iron
#

like this?

brazen gorge
#

missing a closing parenthesis

drifting iron
#

sorry but this is harder then i expected

brazen gorge
#

after tojson() add another )

#

my fault

drifting iron
half aurora
drifting iron
#

SUCCESSSS

brazen gorge
#

huzzah

drifting iron
#

XD yeahhh

half aurora
drifting iron
#

❤️

half aurora
drifting iron
#

oh and good night

half aurora