Jump to content

KhanBhai

Members
  • Posts

    2
  • Joined

  • Last visited

KhanBhai's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. so um I need some help with my mod... wut I'm trying to do is that after every 10 min (20x10=200 ticks) it makes the player say something in chat. this will run forever. this is wut I have so far but it not working. I recently got into java so IDK wut I'm doing so plz help. I think that the code is accurate and should work but it don't. public class Timer { private int timer = 0; @SubscribeEvent public void onPlayerTick(PlayerTickEvent evt) { tickCounter++; if (timer == 200) { <MOD NAME>.getInstance().getMinecraft().thePlayer.sendChatMessage("10min passed bud"); timer =0; } else { tickCounter =0; } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.