Jump to content

Recommended Posts

Posted

Question 1: Is there an alternative to tick handlers? I have a block and something happens to it after a certain amount of time and id usually use a tick counter to time and then execute but id need to make the variable a static one to make it accessible from my Block class, now I dont want that because I dont want the timer to be the same for every block. Is there a way around this or an alternative? Im trying to avoid static at all costs

 

*To people who suggest the update method in Block, it dosent tick enough, so no.*

 

 

Posted

*To people who suggest the update method in Block, it dosent tick enough, so no.*

You can world.scheduleBlockUpdate(args) , so yes.

 

Never knew that was such a thing, this works fine. Thanks

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.