mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Add default.flags to detect functions/features of the current game
This commit is contained in:
parent
a1aee9a68f
commit
5a7dc8a733
1 changed files with 29 additions and 0 deletions
|
@ -45,3 +45,32 @@ dofile(minetest.get_modpath("default").."/mapgen.lua")
|
|||
dofile(minetest.get_modpath("default").."/player.lua")
|
||||
dofile(minetest.get_modpath("default").."/trees.lua")
|
||||
dofile(minetest.get_modpath("default").."/aliases.lua")
|
||||
|
||||
-- Flags to detect functions/features of the current game
|
||||
|
||||
default.features = {
|
||||
-- Alias for default:*
|
||||
["alias"] = true,
|
||||
-- Contains default.gui_* variables
|
||||
["gui"] = true,
|
||||
--[[ Ores
|
||||
0 = exists minimal, lump and/or ingot only
|
||||
1 = exists with blocks
|
||||
2 = also generated as ore
|
||||
]]
|
||||
["coal"] = 2,
|
||||
["iron"] = 2,
|
||||
["copper"] = 2,
|
||||
["diamond"] = 2,
|
||||
["mese"] = 2,
|
||||
["gold"] = 1,
|
||||
["bronze"] = 1,
|
||||
-- Normal trees
|
||||
["tree_normal"] = true,
|
||||
-- Jungle trees
|
||||
["tree_jungle"] = true,
|
||||
-- Grow tree without transfer of VM
|
||||
["new_grow_function"] = true,
|
||||
["papyrus"] = true,
|
||||
["cactus"] = true,
|
||||
}
|
Loading…
Add table
Reference in a new issue