Page 1 of 1
Region load registration

Posted:
Tue Jan 29, 2013 18:02
by Nore
Could it be possible to make a callback that is called when a particular region of the world is loaded?

Posted:
Tue Jan 29, 2013 18:03
by PilzAdam

Posted:
Tue Jan 29, 2013 18:05
by Nore
Like it, but not only on the first time the region is loaded, but on the following times too (the region has been created, then unloaded, then loaded again).

Posted:
Tue Jan 29, 2013 18:12
by PilzAdam
Why do you need it?

Posted:
Tue Jan 29, 2013 18:14
by Nore
If you want to make a mod that generates ores (for example) in a specific pattern, you will have to change unloaded nodes, but you still want the change to happen when the region gets loaded.

Posted:
Tue Jan 29, 2013 19:29
by Casimir
This works without problems with on_generated. If you want to generate ores in a specific pattern take a look at "perlinore".