Suggestion - Add random chance for results in custom crafting.
LadyCailinBot opened this issue ยท 12 comments
CRAFTBOOK-2611 - Reported by condemned
Hi again!
Just a small feature request for Craftbook.
Would the inclusion of random results be possible with Custom crafting? Here is an example config for this..
crafting-recipes:
example:
type: shapeless
ingredients:
# light wooden plank
'wood:2': 1
# light wooden plank
'wood:2': 1
# brown wool
'35:12': 1
# brown wool
'35:12': 1
results:
#50% chance of 64 endstone
'121': 64: 0.50
#20% chance of 64 TNT
'46': 64: 0.20
#30% chance of 1 diamond sword
'276': 1: 0.30
Comment by me4502
The syntax for this may be difficult to add, but I'll look into it.
Comment by me4502
I have added this for extra-results. Not sure how to do it for the first item however.
Comment by condemned
When you say "Not sure how to do it for the first item however.", what do you mean? Is it compulsory in the configuration to have this 'always given' first item, then there be a chance of getting the 'extra result' item? Can you think of any workarounds?
Comment by me4502
Not at the moment, when I have more time in the next few days hopefully I can work it out. But it kinda does need the initial item there to show up in the table once crafted.
Comment by me4502
I have been and am incredibly busy, I'll look into it next chance I get.