Jump to content

[SOLVED] Consistent Block Ticks


Jode

Recommended Posts

Let's say I have a block, and a TileEntity associated with that block. The TileEntity stores a certain amount of energy (not that it matters, but it is stored in a short). The block is set to receive random update ticks, and when it does, it will balance the amount of energy it has with adjacent blocks of the same type. However, I do not want this to occur randomly and infrequently; I want it to occur on a constant, consistent basis (every 3 ticks, for example). How would I go about accomplishing this? I don't want to hook into ticks from outside the block's class if possible, because then I'd need to scan the entire loaded world for these blocks, which wouldn't be very CPU-friendly.

 

Thanks in advance.

This isn't a legal document; why does it need a signature?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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