#Edit recipes while the world is running
20 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
The recipe needs to be changed automatically every few minutes...
I have no idea if that's possible, but you could try making a function and calling that in a tick loop.
Could I accomplish this using modify result?
Uhh, not really. most people use modify result to copy NBT data from an ingredient or to apply nbt data to the result.
Not to change the recipe randomly
Do you have example code you need help working with?
No example code. I was hoping to look into using recipe modification to create a stock market feature like what slime rancher does
Never played it, so I can't say, but you basically have 1 item to craft and you want to randomize the ingredients every 5 minutes?
I want to be able to change the amount of items outputed every X amount of minutes
Give me an example so I understand
For example a recipe that requires a diamond as an input and outputs X amount of silver coins
where the amount of silver coins outputted changes every minute based on logic handled by the script
Gotcha, I don't think this is possible, if it is, it's not something I know how to do.
it may be possible but the recipes being reloaded every x time would be pretty annoying
afaik recipes can't just follow "rules" to change their output amount, not naturally that is
I tried some magic with functions, globals and server tick loops to try and increment the output quantity of a recipe and it just straight up doesn't work.