Started by
kylze
on
Topic category: Help with Minecraft modding (Java Edition)
I've made a machine called a Crusher with a simple GUI - two in, one out. I want to make a machine very similar to a furnace and would like some help on getting started with the procedures needed to do it. I'd like the first slot to only take ores (coal, iron, gold, diamond, emerald and lapis), the second slot to take any fuel item the furnace takes, and after a fair time (maybe 10 seconds) I'd like it to put two of a specific item in the output slot, and consume the item and an appropriate amount of fuel. Thank you
Ok. First off, there are some things that may or may not disappoint you about this:
1. There really isn't a way to display a progress bar like there is in a furnace
2. Slots are either input or output, and cannot selectively choose which items can be put in them
3. You will have to manually input every fuel type and probably every "smelt-able" item as well
Now that that's out of the way, let's get into it.
On your custom machine block, create a procedure that triggers every block tick (make sure your block's tick rate is set to 1- found on the second page).
Repeat step 6 for all items you want to process, putting the if statements one after the other.
Example Image: in my example, a red mushroom cooks into a mushroom block and 3 brown mushrooms cook into a dispenser.
hmm.. seems the image didn't work in the post. Here it is:
https://imgur.com/a/78lhEEa
actually there is a way to make a progress bar