mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-02 18:57:34 +01:00
extranodes: Make unifieddyes dependency optional.
This commit is contained in:
parent
3ba5354f83
commit
0ad8012cd3
@ -1,6 +1,6 @@
|
||||
default
|
||||
technic_worldgen
|
||||
concrete
|
||||
unifieddyes
|
||||
unifieddyes?
|
||||
intllib?
|
||||
moreblocks?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user