Page 1 of 1
absheight

Posted:
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

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

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

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

Posted:
Sat Mar 07, 2015 07:05
by paramat
Re: absheight

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

Posted:
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.