Region load registration

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

Region load registration

by Nore » Tue Jan 29, 2013 18:02

Could it be possible to make a callback that is called when a particular region of the world is loaded?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Tue Jan 29, 2013 18:03

 

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Tue Jan 29, 2013 18:05

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).
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Tue Jan 29, 2013 18:12

Why do you need it?
 

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Tue Jan 29, 2013 18:14

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.
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Tue Jan 29, 2013 19:29

This works without problems with on_generated. If you want to generate ores in a specific pattern take a look at "perlinore".
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 2 guests

cron