Use different textures in MineClone2-derived games
This commit is contained in:
parent
524dc0c3d5
commit
5383de2c16
|
@ -1,4 +1,5 @@
|
||||||
default?
|
default?
|
||||||
|
mcl_colorblocks?
|
||||||
mcl_core?
|
mcl_core?
|
||||||
wordedit?
|
wordedit?
|
||||||
intllib?
|
intllib?
|
||||||
|
|
12
init.lua
12
init.lua
|
@ -12,7 +12,8 @@ local function mod_loaded(modname)
|
||||||
end
|
end
|
||||||
|
|
||||||
local has_default = mod_loaded("default")
|
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
|
if not (has_default or has_mcl) then
|
||||||
error(
|
error(
|
||||||
|
@ -38,6 +39,15 @@ local control_textures = {
|
||||||
"default_obsidian_block.png",
|
"default_obsidian_block.png",
|
||||||
"default_gold_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
|
if is_singleplayer then
|
||||||
meshnode.config.max_radius = 16
|
meshnode.config.max_radius = 16
|
||||||
|
|
Loading…
Reference in New Issue