Hello I was thinking up some mods that I could do. And I thought of one but dont know how I would set it up. I was wondering if anybody know how to make a modtick timer to increase a variable by 1 every 20 ticks(1 second)?
var tick = 20;
var count = 0;
function modTick()
{
tick--;
if(tick == 0)
{
tick = 20;
count += 1;
}
}
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
<~>Darkserver<~>
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
var testvar = 0; function modTick(){ testvar = testvar + 1; }You can also add more time with
right after the var in modTick()
Please click that little green button down there to if I helped!
var count=0;function modTick{count++;}var tick = 20; var count = 0; function modTick() { tick--; if(tick == 0) { tick = 20; count += 1; } }IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions