fix unified_dyes integration (#14)

This commit is contained in:
fluxionary 2022-11-09 08:03:28 -08:00 committed by GitHub
parent 71f3ccfb14
commit c46c624e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 59 additions and 88 deletions

View File

@ -28,23 +28,6 @@ minetest.register_craft({
}
})
--[[ Round Glass By Semmett9 aka Infinatum ]]
if minetest.get_modpath("unifieddyes") then
minetest.register_node("darkage:milk_glass", {
description = "Milky Medieval Glass (Good for colorization)",
drawtype = "glasslike",
tiles = {"darkage_milk_glass.png"},
use_texture_alpha=true,
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
sunlight_propagates = true,
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
sounds = default.node_sound_glass_defaults(),
after_dig_node = unifieddyes.after_dig_node
})
end
minetest.register_node("darkage:glass_round", {
description = "Round Glass",
drawtype = "glasslike",
@ -205,19 +188,13 @@ if minetest.get_modpath("unifieddyes") then
sounds = default.node_sound_glass_defaults()
})
minetest.register_craft({
output = "darkage:milk_glass",
type = "shapeless",
recipe = {"darkage:glass", "dye:white"}
})
unifieddyes.register_color_craft({
output = "darkage:milk_glass",
palette = "extended",
type = "shapeless",
neutral_node = "",
neutral_node = "darkage:glass",
recipe = {
"darkage:milk_glass",
"NEUTRAL_NODE",
"MAIN_DYE"
}
})
@ -242,20 +219,14 @@ if minetest.get_modpath("unifieddyes") then
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable = 1, ud_param2_colorable = 1},
sounds = default.node_sound_glass_defaults()
})
-- Craft
minetest.register_craft({
output = "darkage:milk_glass_round",
type = "shapeless",
recipe = {"darkage:glass_round", "dye:white"},
})
unifieddyes.register_color_craft({
output = "darkage:milk_glass_round",
palette = "extended",
type = "shapeless",
neutral_node = "",
neutral_node = "darkage:glass_round",
recipe = {
"darkage:milk_glass_round",
"NEUTRAL_NODE",
"MAIN_DYE"
}
})
@ -292,9 +263,9 @@ if minetest.get_modpath("unifieddyes") then
output = "darkage:milk_glass_square",
palette = "extended",
type = "shapeless",
neutral_node = "",
neutral_node = "darkage:glass_square",
recipe = {
"darkage:milk_glass_square",
"NEUTRAL_NODE",
"MAIN_DYE"
}
})