Page 169 of 169

Re: Post your modding questions here

Posted: Wed Nov 08, 2017 13:02
by rubenwardy
burli wrote:How can I get the version of the engine in Lua? I want to know if the engine is 0.4 or 0.5
Why? It's the wrong approach to check for features using version numbers. Instead you should check for the existence of any functions or methods that you need, or use the minetest.features table.
Spoiler
there is minetest.get_version() for informative reasons only

Re: Post your modding questions here

Posted: Wed Nov 08, 2017 14:05
by burli
Well, cave decoration or underwater plants don't have functions or methods. Or is there a better way to check that except the version?

Re: Post your modding questions here

Posted: Wed Nov 08, 2017 14:15
by rubenwardy
burli wrote:Well, cave decoration or underwater plants don't have functions or methods. Or is there a better way to check that except the version?
What do you mean by cave decoration or underwater plants?

Re: Post your modding questions here

Posted: Wed Nov 08, 2017 14:27
by burli
rubenwardy wrote: What do you mean by cave decoration or underwater plants?
New decoration features

https://github.com/minetest/minetest/bl ... .txt#L4866
https://github.com/minetest/minetest/bl ... i.txt#L972

Maybe it is not necessary because it is ignored by older versions, but I don't want to register unnecessary nodes

Re: Post your modding questions here

Posted: Fri Nov 10, 2017 17:09
by burli
How can I set mapgen flags to a subgame? I tryed to set them in the subgames minetest.conf, but they will be ignored

I want to set

Code: Select all

mg_flags = caves, dungeons, light, decorations
mgv7_spflags = mountains, ridges, floatlands, caverns
I think I can set mg_flags with minetest.set_mapgen_params, but how can I set mgv7_spflags?

I tried

Code: Select all

	minetest.set_mapgen_params({mgname="v7", flags = "caves, dungeons, light, decorations", mgv7_spflags = "mountains, ridges, floatlands, caverns"})
but mgv7_spflags will be ignored

Re: Post your modding questions here

Posted: Sat Nov 11, 2017 14:03
by burli
Is it possible that decorations only spawn at the height of the heightmap? I tried to create a new ground on water level with an ore, which works, but I can't spawn any decoration on it

Re: Post your modding questions here

Posted: Tue Nov 14, 2017 15:20
by thminer
Can sombedy help me make this mod work? https://github.com/TEbinger/lavacontrol

It was suggested to me by sorcerykid in this post viewtopic.php?f=10&t=18808

Maybe You have better ideas to solve the problem of lava in a creative world?

Re: Post your modding questions here

Posted: Fri Nov 17, 2017 14:40
by houlala
How know the generator (v5, v6, v7, etc) used for the generation map ?
I would like generated certains blocks in certains biomes only, so, i need to know that.

How could I make "connected blocks" with personnals walls blocks ?
If I add "stone" in groups, this is a problem because my blocks can be used for all stones craft, like furnaces and others, unfortunally there is no params for groups in walls.register function.

Re: Post your modding questions here

Posted: Sat Dec 02, 2017 20:15
by rubenwardy
Please post any new questions in the Modding Discussion subforum.

If you'd like to reply to anything in this thread, please report the post and I (or another moderator) will split it out and notify you