adding the option to define the old dripstone nodes
This commit is contained in:
parent
234588dd08
commit
4aaeaabc5f
1
init.lua
1
init.lua
@ -14,6 +14,7 @@ dofile(modpath.."/nodes.lua")
|
|||||||
dofile(modpath.."/functions.lua") --function definitions
|
dofile(modpath.."/functions.lua") --function definitions
|
||||||
dofile(modpath.."/features.lua")
|
dofile(modpath.."/features.lua")
|
||||||
dofile(modpath.."/player_spawn.lua")
|
dofile(modpath.."/player_spawn.lua")
|
||||||
|
dofile(modpath.."/legacy.lua") -- contains old node definitions, will be removed at some point in the future.
|
||||||
|
|
||||||
subterrane.disable_mapgen_caverns = function()
|
subterrane.disable_mapgen_caverns = function()
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
44
legacy.lua
Normal file
44
legacy.lua
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
--These nodes used to be defined by subterrane but were pulled due to not wanting to force all mods that use it to create these nodes.
|
||||||
|
--For backwards compatibility they can still be defined here, however.
|
||||||
|
|
||||||
|
if minetest.setting_getbool("subterrane_enable_legacy_dripstone") then
|
||||||
|
|
||||||
|
subterrane.register_stalagmite_nodes("subterrane:dry_stal", {
|
||||||
|
description = "Dry Dripstone",
|
||||||
|
tiles = {
|
||||||
|
"default_stone.png^[brighten",
|
||||||
|
},
|
||||||
|
groups = {cracky = 3, stone = 2},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("subterrane:dry_flowstone", {
|
||||||
|
description = "Dry Flowstone",
|
||||||
|
tiles = {"default_stone.png^[brighten"},
|
||||||
|
groups = {cracky = 3, stone = 1},
|
||||||
|
is_ground_content = true,
|
||||||
|
drop = 'default:cobble',
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
-----------------------------------------------
|
||||||
|
|
||||||
|
subterrane.register_stalagmite_nodes("subterrane:wet_stal", {
|
||||||
|
description = "Wet Dripstone",
|
||||||
|
tiles = {
|
||||||
|
"default_stone.png^[brighten^subterrane_dripstone_streaks.png",
|
||||||
|
},
|
||||||
|
groups = {cracky = 3, stone = 2, subterrane_wet_dripstone = 1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
}, "subterrane:dry_stal")
|
||||||
|
|
||||||
|
minetest.register_node("subterrane:wet_flowstone", {
|
||||||
|
description = "Wet Flowstone",
|
||||||
|
tiles = {"default_stone.png^[brighten^subterrane_dripstone_streaks.png"},
|
||||||
|
groups = {cracky = 3, stone = 1, subterrane_wet_dripstone = 1},
|
||||||
|
is_ground_content = true,
|
||||||
|
drop = 'default:cobble',
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
1
settingtypes.txt
Normal file
1
settingtypes.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
subterrane_enable_legacy_dripstone (Adds old dripstone node definitions) bool false
|
BIN
textures/subterrane_dripstone_streaks.png
Normal file
BIN
textures/subterrane_dripstone_streaks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 465 B |
Loading…
x
Reference in New Issue
Block a user