Page 1 of 1

absheight

PostPosted: Sat Mar 07, 2015 03:03
by Don
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

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

Re: absheight

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

Re: absheight

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

Re: absheight

PostPosted: Sat Mar 07, 2015 07:05
by paramat
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

PostPosted: Sat Mar 07, 2015 14:29
by Don
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

PostPosted: Sat Mar 07, 2015 22:25
by Calinou
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

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