Post your modding questions here

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

Re: Post your modding questions here

by rubenwardy » Wed Nov 08, 2017 13:02

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: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Wed Nov 08, 2017 14:05

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: 5716
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Post your modding questions here

by rubenwardy » Wed Nov 08, 2017 14:15

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: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Wed Nov 08, 2017 14:27

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: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Fri Nov 10, 2017 17:09

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: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Sat Nov 11, 2017 14:03

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: 59
Joined: Sat Aug 12, 2017 16:24
GitHub: TEbinger
In-game: thomas or thomas321

Re: Post your modding questions here

by thminer » Tue Nov 14, 2017 15:20

Can sombedy help me make this mod work? https://github.com/TEbinger/lavacontrol

It was suggested to me by sorcerykid in this post https://forum.minetest.net/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 » Fri Nov 17, 2017 14:40

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: 5716
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Post your modding questions here

by rubenwardy » Sat Dec 02, 2017 20:15

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
 

Previous

Return to Modding Discussion



Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron