#Farmer's Delight Chance Recipes

41 messages · Page 1 of 1 (latest)

earnest rivet
#

How can I add chances to Farmer's Delight cutting board recipes? I can't figure out how to do it. I thought I could just add a line for the chance, but it doesn't seem to work.

finite pendantBOT
#

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

maiden citrus
#

Item.of().withChance()

earnest rivet
#

Doesn't seem like it'd fit the general layout at all.

#

Unless it replaces item: ?

maiden citrus
#

Oh, maybe this won't work

#

Farmer's Delight JSON may not support this, but you can try

earnest rivet
#

Yeah FD recipes here use a different layout

#

So I'm not sure how to go about it

#

Might just have to make a data pack

maiden citrus
#
result: [
  Item.of('kubejs:latex').withChance(0.75).toJson()
]

Try that

maiden citrus
earnest rivet
#

It is easier yeah but if this doesn't work it'll probably be the only way

#

Will change it because I can just directly add a Farmer's Delight recipe instead of trying to implement it via KubeJS

#

Testing what you sent, 1 sec.

maiden citrus
#

What's wrong with KubeJS scripting? You can still use it for whatever you want

#

If it doesn't work this way, it doesn't work at all

#

Farmer's Delight JSON may not be setup to do Chance

#

So it won't matter

earnest rivet
#

It is. Lol

#

That's why I'm saying it'd be easier to do it that way

#

What you sent does not work and I tried a few adjustments to test and those did not work either

maiden citrus
#

Yeah I wasn't sure. Sorry for the inconvenience

earnest rivet
#

All good!

maiden citrus
#

If there are any existing recipes that show with Chance, you can look through their code on Github for it and check the json

earnest rivet
#

I would assume something like this should work, but it does not

#

It reloads without errors but the recipe then doesn't work at all

maiden citrus
#

You include chance in the same curvy braces

earnest rivet
#

WAIT, I GOT IT

#

YEE

maiden citrus
#

There ya go

earnest rivet
maiden citrus
#

Yep thats right

earnest rivet
#

I could've swore I tried this before but it did not work?

#

Thanks :))

maiden citrus
#

No probs, have a good evening

earnest rivet
#

You too! 😄

maiden citrus
#

👋