absheight

Post Reply
User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

absheight

by Don » Post

Just wondering if someone could give me a little info about absheight. I tried googling it but couldn't find a good explaination.
I am working on a mapgen and wondering what the flag does.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
paramat
Developer
Posts: 3691
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: absheight

by paramat » Post

Do you mean the 'absvalue' noise flag?

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: absheight

by Don » Post

In the default mod mapgen.lua there is a line
flags = absheight,
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
srifqi
Member
Posts: 557
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: absheight

by srifqi » Post

Do you mean, at minetest.register_ore() ?
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
paramat
Developer
Posts: 3691
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: absheight

by paramat » Post

https://github.com/minetest/minetest/bl ... i.txt#L730
Line 730. Something i didn't know about, so i learned something =)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: absheight

by Don » Post

paramat wrote:https://github.com/minetest/minetest/bl ... i.txt#L730
Line 730. Something i didn't know about, so i learned something =)
I read that but but it doesn't explain what it is. Does it mean that the ore can be above y=0?
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: absheight

by Calinou » Post

Example: you register an ore which spawns from Y = -256 to Y = -240 with flag "absheight". It will also generate from Y = 240 to Y = 256, which is the absolute value.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: absheight

by Don » Post

Calinou wrote:Example: you register an ore which spawns from Y = -256 to Y = -240 with flag "absheight". It will also generate from Y = 240 to Y = 256, which is the absolute value.
OK. Thank you. Now I get it.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests