Basically, I want the end result would be this: Code: //changeTime1 is 12000 //changeTime2 is 0 if(worldTime = (changeTime1) { this.methods.changePlayerInto; } if(worldTime = (chaneTime2) { this.methods.changePlayerBack; } } Please, If anyone would be so kind to show some samples as to how I would go around doing this. Much Appreciated as Always
I'm a bit confused as to what you're trying to accomplish here. Perhaps you could give some more (and clearer) information?
Ok. Thank you for the Reply. At Dusk I want (certain) players to turn into Werewolves so: At 12000 Ticks, I wish to execute the method "changePlayerInto" At Dawn At Dusk I want (certain) players to turn into Players so: At 0 Ticks, I wish to execute the method "changePlayerBack" Am I being clear enough, Apologies if I am not.
Seems to me you were sufficiently answered here. Please don't create another thread simply because you felt like the original one didn't help. Consider reading the wiki link given to you.
imjake9 - Just giving you a Bump Sayshal - I have actually created a method that turns players into actual evilwolves, I just have to make it so that they can turn into Wolves at Dusk, hence why I am posting yes, but that does not help me at all, I am really looking more at the Time API. Can anyone give an example? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
There simply is no Time API. It doesn't exist. There is no way to register for anything to happen at a specific time in Minecraft. Without this, you'll simply have to poll the time using scheduled events. That's the only way to do it. There is no other way. At all. None. Read the provided wiki article.