Jump to content

[1.12.1] How do you set entity tracking info with new EntityEntry registry event system?


Recommended Posts

Posted (edited)

So while porting my mods I'm trying to move my old registration methods to the new registry events. However, for entities two important aspects of the registration no longer seem available -- the tracking range and tracking speed. Now many people may not have played with this, but it is critical in my mods -- for example if you make a bird entity you need to greatly increase the tracking range because even when they are flying overhead they may be over 100 blocks away. And for fast moving entities like thrown ones I tended to increase the frequency of the tracking updates.

 

So how do you do that with the new registry system that uses EntityEntry? In EntityEntry all I can see is that you can directly set the entity and registry name, and indirectly you can set the EntityEggInfo but I can't see anything related to the tracking that the previous registry system allowed you to control.

 

Also setting the egg seems to be a pain because it takes in the entity id which I assume is only valid after the registration is completed... so when and how should that be done?

 

Also, while the idea of an EntityEntry class makes some sense it is inconsistent with all the other registry events whose register methods take in a "value" (the actual thing to get registered) and presumbably grab the registry name directly. It would be more consistent if Entity also had a registry name field with equivalent getter. 

 

Am I missing something, or should I work on a pull request to add those parameters? Seems like the EntityEntry registration is only half-way implemented at the moment...

Edited by jabelar

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.