forked from mtcontrib/minetest-mod-sea
[seacoral] Make unifieddyes dependency as a soft dependency
This commit is contained in:
parent
6fb0d7c449
commit
7e7561ab93
@ -1,4 +1,4 @@
|
|||||||
default
|
default
|
||||||
unifieddyes
|
unifieddyes?
|
||||||
colormachine?
|
colormachine?
|
||||||
nalc_lib?
|
nalc_lib?
|
||||||
|
@ -104,8 +104,8 @@ add_group("default:coral_green", "seacoral", 1)
|
|||||||
|
|
||||||
-- CRAFTING
|
-- CRAFTING
|
||||||
|
|
||||||
if( minetest.get_modpath( "colormachine") == nil ) then
|
if not minetest.get_modpath( "colormachine") then
|
||||||
register_seacoral_craft = function(output,recipe)
|
local register_seacoral_craft = function(output,recipe)
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{
|
{
|
||||||
type = 'shapeless',
|
type = 'shapeless',
|
||||||
@ -116,10 +116,13 @@ if( minetest.get_modpath( "colormachine") == nil ) then
|
|||||||
|
|
||||||
register_seacoral_craft('dye:cyan 4', {'default:coral_cyan'})
|
register_seacoral_craft('dye:cyan 4', {'default:coral_cyan'})
|
||||||
register_seacoral_craft('dye:magenta 4', {'seacoral:coral_magenta'})
|
register_seacoral_craft('dye:magenta 4', {'seacoral:coral_magenta'})
|
||||||
|
register_seacoral_craft('dye:pink 4', {'default:coral_pink'})
|
||||||
|
|
||||||
|
if minetest.get_modpath("unifieddyes") then
|
||||||
register_seacoral_craft('dye:lime 4', {'default:coral_green'})
|
register_seacoral_craft('dye:lime 4', {'default:coral_green'})
|
||||||
register_seacoral_craft('dye:spring 4', {'seacoral:coral_aqua'})
|
register_seacoral_craft('dye:spring 4', {'seacoral:coral_aqua'})
|
||||||
register_seacoral_craft('dye:azure 4', {'seacoral:coral_skyblue'})
|
register_seacoral_craft('dye:azure 4', {'seacoral:coral_skyblue'})
|
||||||
register_seacoral_craft('dye:pink 4', {'default:coral_pink'})
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- SEACORAL SAND AND DIRT GENERATION
|
-- SEACORAL SAND AND DIRT GENERATION
|
||||||
@ -186,7 +189,7 @@ minetest.register_abm(
|
|||||||
-- OPTIONAL DEPENDENCY
|
-- OPTIONAL DEPENDENCY
|
||||||
|
|
||||||
|
|
||||||
if( minetest.get_modpath( "colormachine") ~= nil ) then
|
if minetest.get_modpath( "colormachine") then
|
||||||
colormachine.basic_dye_sources = { "flowers:rose", "flowers:tulip", "flowers:dandelion_yellow", "default:coral_green", "default:cactus", "seacoral:coral_aqua", "default::coral_cyan", "seacoral:coral_skyblue", "flowers:geranium", "flowers:viola", "seacoral:coral_magenta", "default:coral_pink", "default:stone", "", "", "", "default:coal_lump" };
|
colormachine.basic_dye_sources = { "flowers:rose", "flowers:tulip", "flowers:dandelion_yellow", "default:coral_green", "default:cactus", "seacoral:coral_aqua", "default::coral_cyan", "seacoral:coral_skyblue", "flowers:geranium", "flowers:viola", "seacoral:coral_magenta", "default:coral_pink", "default:stone", "", "", "", "default:coal_lump" };
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user