extranodes: Make unifieddyes dependency optional.

This commit is contained in:
Diego Martínez 2017-03-13 00:20:41 -03:00
parent 3ba5354f83
commit 0ad8012cd3
2 changed files with 70 additions and 66 deletions

View File

@ -1,6 +1,6 @@
default
technic_worldgen
concrete
unifieddyes
unifieddyes?
intllib?
moreblocks?

View File

@ -102,7 +102,9 @@ if minetest.get_modpath("moreblocks") then
end
minetest.register_node(":technic:insulator_clip", {
if minetest.get_modpath("unifieddyes") then
minetest.register_node(":technic:insulator_clip", {
description = "Insulator/cable clip",
drawtype = "mesh",
mesh = "technic_insulator_clip.obj",
@ -114,9 +116,9 @@ minetest.register_node(":technic:insulator_clip", {
palette = "unifieddyes_palette_colorwallmounted.png",
after_place_node = unifieddyes.fix_rotation,
after_dig_node = unifieddyes.after_dig_node,
})
})
minetest.register_node(":technic:insulator_clip_fencepost", {
minetest.register_node(":technic:insulator_clip_fencepost", {
description = "Insulator/cable clip",
tiles = {"technic_insulator_clip.png"},
is_ground_content = false,
@ -152,22 +154,24 @@ minetest.register_node(":technic:insulator_clip_fencepost", {
groups = {fence=1, choppy=1, snappy=1, oddly_breakable_by_hand=1, ud_param2_colorable = 1},
sounds = default.node_sound_stone_defaults(),
place_param2 = 171 -- medium amber, low saturation, closest color to default:wood
})
})
minetest.register_craft({
minetest.register_craft({
output = "technic:insulator_clip",
recipe = {
{ "", "dye:white", ""},
{ "", "technic:raw_latex", ""},
{ "technic:raw_latex", "default:stone", "technic:raw_latex"},
}
})
})
minetest.register_craft({
minetest.register_craft({
output = "technic:insulator_clip_fencepost 2",
recipe = {
{ "", "dye:white", ""},
{ "", "technic:raw_latex", ""},
{ "technic:raw_latex", "default:fence_wood", "technic:raw_latex"},
}
})
})
end