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.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
Post your modding questions here
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Post your modding questions here
there is minetest.get_version() for informative reasons only
Re: Post your modding questions here
Well, cave decoration or underwater plants don't have functions or methods. Or is there a better way to check that except the version?
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Post your modding questions here
What do you mean by cave decoration or underwater plants?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?
Re: Post your modding questions here
New decoration featuresrubenwardy wrote: What do you mean by cave decoration or underwater plants?
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
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
I think I can set mg_flags with minetest.set_mapgen_params, but how can I set mgv7_spflags?
I tried
but mgv7_spflags will be ignored
I want to set
Code: Select all
mg_flags = caves, dungeons, light, decorations
mgv7_spflags = mountains, ridges, floatlands, caverns
I tried
Code: Select all
minetest.set_mapgen_params({mgname="v7", flags = "caves, dungeons, light, decorations", mgv7_spflags = "mountains, ridges, floatlands, caverns"})
Re: Post your modding questions here
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
- thminer
- Member
- Posts: 83
- Joined: Sat Aug 12, 2017 16:24
- GitHub: TEbinger
- In-game: thomas or thomas321
- Contact:
Re: Post your modding questions here
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?
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?
Find my minetest stuff in my blog: http://thomas-ebinger.de/?s=minetest
Re: Post your modding questions here
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.
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.
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Post your modding questions here
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
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
Who is online
Users browsing this forum: Google [Bot] and 4 guests