Jump to content

Call ServerStarting before the initialWorldChunkLoad


Recommended Posts

Posted

Would it be possible to call the @ServerStarting before the MinecraftServer.initialWorldChunkLoad

 

My npcs have customizable factions and other data that needs to be loaded before my npcs spawn. Currently I cant do this in a clean way, because my npcs spawn, because of the initial worldchuck that gets loaded, before the @ServerStarting is called.

Posted

It does actually make sense to do starting before everything else, but i'll talk to cpw about that.,

But it seems to me that you could do the initial loading in the world load event if you haven't already loaded anything, and be fine...

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

I guess I could use the WorldEvent.Load for it and only load it when the event.world.provider.dimensionId == 0 and not remote. That should make it load only once and before entities spawn. Thanks, hadnt seen the Load yet.

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.