Posted October 14, 201410 yr hello i am trying to make a Geyser using a TileEntity but i want the Geyser to detect the exact time of day so that it will go off once a minecraft day. How would i go about doing this? Its best to only ask questions when you did most of the work yourself.
October 14, 201410 yr In the desired method (probably onUpdate()) I believe you can use: worldObj.getWorldTime() to get the time. It returns a long variable but I'm not sure how it's formatted (Never tested it). Probably same as commands set the time, where 0000 is the sunrise, and about 1700 is evening. You might want to set a timer though so it wouldn't check it every tick to prevent lag, though I think you should be fine.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.