ABM Ore Placement

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

ABM Ore Placement

by octacian » Mon Jun 20, 2016 20:19

How can I use ABMs to generate ores in worlds that have already been created? This has been a problem that has bothered me for a while, and it should be simple to solve. Just have a conf option to use ABMs for ores within one specific mod which would not only allow for generating ores from new mods on old worlds but also regenerating old caves.

I'm not sure how the ABMs would be written to do such advanced placement, but I think that you would most likely use other blocks as reference point from which to generate new materials.
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: ABM Ore Placement

by paramat » Mon Jun 20, 2016 21:01

Use the new LBM instead, it's like an ABM but runs only once for each mapblock when that mapblock is first loaded, see lua_api.txt.
 

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

Re: ABM Ore Placement

by octacian » Mon Jun 20, 2016 22:06

OK, when was this introduced? (That way I know what version of Minetest my mod will require.) I assume it's then up to me to process the surrounding blocks and generate the needed ores, but I guess I'll figure that out...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
name = "modname:replace_legacy_door"


The above is a identifier name which I assume works like those of formspecs?
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron