Jump to content

Recommended Posts

Posted

Hi!

 

I wanted to make a mod letting asteroids fall from the sky.

To make them more rare I wanted to let them appear using an If-Loop.

 

But in order to initiate the loop I need a command (in the code ofc) which detects if a new chunk has been loaded.

(Only newly generated chunks should be counted)

 

Would be great if anyone could help me with this =)

Posted

In this case i would use the Retrogen Way.

The Retrogen way is there perfect.

When you save a chunk you could add a nbt that says randomly you have a meteor when you get loaded again.

And when it get loaded these chunks which have it spawn a meteor.

xD

 

Hope the idea is good.

Posted

Hi guys!

The best way to do this was the Method onChunkGenerate().

It is a great way to trigger the loop and, unlike onChunkLoad(), it makes sure, that only new Chunks count^^

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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