Post your modding questions here

User avatar
rubenwardy
Moderator
Posts: 6108
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Post your modding questions here

by rubenwardy » Post

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

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Post

Well, cave decoration or underwater plants don't have functions or methods. Or is there a better way to check that except the version?

User avatar
rubenwardy
Moderator
Posts: 6108
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Post your modding questions here

by rubenwardy » Post

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?

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Post

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

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Post

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

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Post

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

User avatar
thminer
Member
Posts: 66
Joined: Sat Aug 12, 2017 16:24
GitHub: TEbinger
In-game: thomas or thomas321
Contact:

Re: Post your modding questions here

by thminer » Post

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?
Find my minetest stuff in my blog: http://thomas-ebinger.de/?s=minetest

houlala
Member
Posts: 24
Joined: Fri Oct 27, 2017 13:12
Location: Long way from here

Re: Post your modding questions here

by houlala » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6108
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Post your modding questions here

by rubenwardy » Post

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

Locked

Who is online

Users browsing this forum: No registered users and 1 guest