use morecolor palette if available
parent
7812d24144
commit
f61438a6bd
|
@ -2,7 +2,9 @@
|
||||||
xconnected = {}
|
xconnected = {}
|
||||||
|
|
||||||
-- if unifieddyes or morecolor is installed, use colorfacedir
|
-- if unifieddyes or morecolor is installed, use colorfacedir
|
||||||
xconnected.with_color = minetest.get_modpath( "unifieddyes") or minetest.get_modpath("morecolor");
|
xconnected.with_unifieddyes = minetest.get_modpath( "unifieddyes");
|
||||||
|
-- morecolor adds less colors than unifieddyes (but more than none)
|
||||||
|
xconnected.with_morecolor = minetest.get_modpath( "morecolor");
|
||||||
|
|
||||||
-- change the drops value if you want the player to get one of the other node types when digged (i.e. c0 or ln or lp)
|
-- change the drops value if you want the player to get one of the other node types when digged (i.e. c0 or ln or lp)
|
||||||
local drops = "c4";
|
local drops = "c4";
|
||||||
|
@ -143,7 +145,10 @@ xconnected.register = function( name, def, node_box_data, selection_box_data, cr
|
||||||
-- some common values for all xconnected nodes
|
-- some common values for all xconnected nodes
|
||||||
def.drawtype = "nodebox";
|
def.drawtype = "nodebox";
|
||||||
def.paramtype = "light";
|
def.paramtype = "light";
|
||||||
if( xconnected.with_color ) then
|
if( xconnected.with_morecolor ) then
|
||||||
|
def.paramtype2 = "colorfacedir";
|
||||||
|
def.palette = "colorfacedir_palette.png";
|
||||||
|
elseif( xconnected.with_unifieddyes ) then
|
||||||
def.paramtype2 = "colorfacedir";
|
def.paramtype2 = "colorfacedir";
|
||||||
def.palette = "unifieddyes_palette_colorwallmounted.png";
|
def.palette = "unifieddyes_palette_colorwallmounted.png";
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue