Started by
gerbillover
on
Topic category: Help with MCreator software
I'm trying to make a thirst bar for my new mod (Not Magicka, it's a private one so far), but I cannot find any way to do this. I have tried using overlays, and this makes the bar appear but I am clueless as to how to make the thirst drop over time and kill the player when it reaches 0. I know this will probably require code and I am prepared to write any code needed if you can provide for me. Thank you for your time. I am using 1.7.1 MCreator (Version 1.10.2 of MC)
Edited by gerbillover on Wed, 01/11/2017 - 19:24
After every tick, decrease a timer value by 1, the timer being 6000, when it reaches 0
Ok, I just need to know the piece of code for how to make something happen each tick. Is it OnUpdateTick() or something similar?
Would love to see a more detailed version of how to do this
Its most likely to be the update tick. Create an event and put the decrease of thirst every tick.
Tell me please how to properly export the mod. When I export, I get an error.
You need a variable. Code is not required for variables.