From 9c9457e1f50ebdd943695a4cce6b88fa552370f3 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 22 Aug 2018 22:28:28 -0400 Subject: update castles modpack, blox, bobblocks, coloredwood, technic, gloopblocks, homedecor, ilights, led marquee, plasticbox, solidcolor, stained_glass, unified bricks, and unified dyes In most of these, the update is to shift over to the new "old" coloring paradigm in Unified Dyes. See its forum thread for details. --- ilights/init.lua | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'ilights/init.lua') diff --git a/ilights/init.lua b/ilights/init.lua index ed6f6e5..0cad68a 100644 --- a/ilights/init.lua +++ b/ilights/init.lua @@ -56,9 +56,7 @@ minetest.register_node("ilights:light", { node_box = lamp_cbox, after_place_node = function(pos, placer, itemstack, pointed_thing) unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing) - unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing) end, - after_dig_node = unifieddyes.after_dig_node }) minetest.register_craft({ @@ -70,6 +68,28 @@ minetest.register_craft({ }, }) +unifieddyes.register_color_craft({ + output = "ilights:light 3", + palette = "wallmounted", + neutral_node = "", + recipe = { + { "", "default:steel_ingot", "" }, + { "", "default:glass", "MAIN_DYE" }, + { "default:steel_ingot", "default:torch", "default:steel_ingot" } + } +}) + +unifieddyes.register_color_craft({ + output = "ilights:light", + palette = "wallmounted", + type = "shapeless", + neutral_node = "ilights:light", + recipe = { + "NEUTRAL_NODE", + "MAIN_DYE", + } +}) + -- convert old static nodes to param2 coloring ilights.colors = { -- cgit v1.2.3