Page 1 of 1

### absheight

Posted: Sat Mar 07, 2015 03:03
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.

### Re: absheight

Posted: Sat Mar 07, 2015 04:45
Do you mean the 'absvalue' noise flag?

### Re: absheight

Posted: Sat Mar 07, 2015 06:22
In the default mod mapgen.lua there is a line
flags = absheight,

### Re: absheight

Posted: Sat Mar 07, 2015 06:34
Do you mean, at minetest.register_ore() ?

### Re: absheight

Posted: Sat Mar 07, 2015 07:05
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L730
Line 730. Something i didn't know about, so i learned something =)

### Re: absheight

Posted: Sat Mar 07, 2015 14:29
paramat wrote:https://github.com/minetest/minetest/blob/master/doc/lua_api.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?

### Re: absheight

Posted: Sat Mar 07, 2015 22:25
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.

### Re: absheight

Posted: Sat Mar 07, 2015 22:31
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.