Jump to content

Every tick save the state of all the mobs and add it to an array


Recommended Posts

OK so what I am trying to do here is make a "recorder" which doesn't record video, but instead the entities, tile entities, block changes, etc. So my first goal is entities. I searched the events section for an onTick event, but I didn't find anything. Then, If I get access to an onTick event(or something else) with world access, how do I get the pos,rot,etc of all the entities? Then, How do I add all of these to an array (efficiently(I know basic Java but I came from JavaScript and there this task seems alot easier)) Thanks in advance. (PS. I am new to modding)

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.

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.

  • Create New...

Important Information

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