Topic category: Help with Minecraft modding (Java Edition)
Hi! I decided to create my own mod for minecraft, but programming on text I can't stand, no matter how hard I try, so I decided to try on mcreator. I needed to make a furnace that has one fuel slot, an output slot and two input slots. I want to make a furnace with a timer like in vanilla minecraft. The only detailed tutorial I could find was a series of videos from the NorthWestTrees MCreator channel, but stopped at the point with linking the created routines to the furnace block. In the video, the author had no problems with binding, as the procedure had no itemstack dependency, and I have one. I can't figure out how to fix this, help me if you can, maybe I just missed something or didn't understand it.
Version of mcreator 2024.4
The procedure with which the problem occurred on timecode 44:33
Just a small clarification, since I have two resource input slots, wherever the procedures involved an input slot, I duplicated also for the second one with and or something like that.
make sure to read the whole comment as there are very important details.
This is the code for a furnace i made recently which has 2 input slots the fuel slot was slot 0, the input slots were 1 and 2, and the output was 3. Here is the code in 2 images: https://imgur.com/a/jrOeERC There are other necessary mod elements like the furnace block needs to be bound to your GUI, have a tick rate of one (tick rate can be found in the advanced properties tab) and a tag for items that can go in slot one, a second tag for items that can go in slot 2 and a third for the fuel items, these need to be item tags (there is a tags tab on the right of the workspace). There are important parts i need to tell you how to tweak such as the time it takes to smelt an item. That is controlled by the number shown by the green arrow and the number is the time it takes in ticks (there are 20 ticks in a second). The red arrows show how long a certain fuel will fuel the furnace for. The yellow arrows show which tags are which. You can add more fuel types and recipes to the if else if blocks.
I have repeated this procedure and have a couple more questions:
What is the last part of the procedure? (it's just that only one input slot is used, do I need to duplicate this for the second slot?)
Which block trigger should I bind this procedure to?
How do I replace the block texture with the running version?
How to make the display of the item's degree of readiness and the degree of fuel consumption (like in a regular minecraft stove)?