Topic category: Help with modding (Java Edition)
Goodmorning to all of you, I hope you had an excellent week-end.
I'm still making my Steampunk Vehicles Mod for our server (and for everyone, later !). I found nearly everything I needed here. But right now I'm stuck.
I'm creating a fuel system with a GUI that looks like this :
The slot 0 is built to receive coal and charcoal. In the future I want it to light the furnace on the right of the GUI. It is bind to the entity with the "inventory" tab. The size of the inventory is "1". It works perfectly in my client, just have to shift then right click and I have my wonderful GUI showing.
Now here comes the problem...
The following procedure is bind to the "On entity Tick Update", in the "Triggers" tab.
But yeah, it doesn't work.
I have a local variable named "FuelLevel", a number from that starts from 0. It is used in other procedure such as adding speed to the entity if the fuel level is more than 0, playing an idle sound for the entity, adding particles, lights, etc.
Do you guys have any idea on how I should resolve it ? An maybe anticipating with further questions : how do I add a timer for a loop after the last dialog box (The "Set" One), in order to add +1 to my FuelLevel at every loop if there is a coal or charcoal ?
Big thanks guys. Greetings from France.