Use different textures in MineClone2-derived games

This commit is contained in:
Nils Dagsson Moskopp 2021-08-26 04:13:47 +02:00
parent 524dc0c3d5
commit 5383de2c16
Signed by: erlehmann
GPG Key ID: A3BC671C35191080
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,5 @@
default?
mcl_colorblocks?
mcl_core?
wordedit?
intllib?

View File

@ -12,7 +12,8 @@ local function mod_loaded(modname)
end
local has_default = mod_loaded("default")
local has_mcl = mod_loaded("mcl_core")
local has_mcl = mod_loaded("mcl_core") and
mod_loaded("mcl_colorblocks")
if not (has_default or has_mcl) then
error(
@ -38,6 +39,15 @@ local control_textures = {
"default_obsidian_block.png",
"default_gold_block.png",
}
if has_mcl then
control_textures = {
"default_steel_block.png",
"default_diamond_block.png",
"mcl_colorblocks_concrete_orange.png",
"default_obsidian.png",
"default_gold_block.png",
}
end
if is_singleplayer then
meshnode.config.max_radius = 16