summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-25 00:39:47 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-25 00:39:47 -0400
commit0c0c9502ce926b3229640a8497e38608ea12a554 (patch)
treecca078d1267b8266ced95f4f6d2babf771adb248
parent1ca2cefc4d01b757abd1033412fef25bc54d3b6b (diff)
downloadunifiedmesecons-0c0c9502ce926b3229640a8497e38608ea12a554.tar
unifiedmesecons-0c0c9502ce926b3229640a8497e38608ea12a554.tar.gz
unifiedmesecons-0c0c9502ce926b3229640a8497e38608ea12a554.tar.bz2
unifiedmesecons-0c0c9502ce926b3229640a8497e38608ea12a554.tar.xz
unifiedmesecons-0c0c9502ce926b3229640a8497e38608ea12a554.zip
fix missing crafting
-rw-r--r--init.lua77
1 files changed, 71 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index 0a2bfec..3a36823 100644
--- a/init.lua
+++ b/init.lua
@@ -80,7 +80,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)},
+ groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)},
mesecons = {conductor = {
state = mesecon.state.off,
onstate = "mesecons_insulated:insulated_"..color.."_on",
@@ -96,7 +96,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1},
+ groups = {dig_immediate = 3,not_in_creative_inventory = 1},
mesecons = {conductor = {
state = mesecon.state.on,
offstate = "mesecons_insulated:insulated_"..color.."_off",
@@ -132,7 +132,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)},
+ groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)},
mesecons = {conductor = {
state = mesecon.state.off,
onstate = "mesecons_extrawires:insulated_corner_"..color.."_on",
@@ -148,7 +148,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1},
+ groups = {dig_immediate = 3,not_in_creative_inventory = 1},
mesecons = {conductor = {
state = mesecon.state.on,
offstate = "mesecons_extrawires:insulated_corner_"..color.."_off",
@@ -184,7 +184,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)},
+ groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)},
mesecons = {conductor = {
state = mesecon.state.off,
onstate = "mesecons_extrawires:insulated_tjunction_"..color.."_on",
@@ -200,7 +200,7 @@ for _,color in pairs(hues) do
},
},
{
- groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1},
+ groups = {dig_immediate = 3,not_in_creative_inventory = 1},
mesecons = {conductor = {
state = mesecon.state.on,
offstate = "mesecons_extrawires:insulated_tjunction_"..color.."_off",
@@ -337,3 +337,68 @@ if minetest.get_modpath("digilines") then
}
})
end
+
+for _,color in pairs(hues) do
+ if color ~= "grey" then
+ local dye = "dye:"..color
+ minetest.register_craft({
+ output = unifieddyes.make_colored_itemstack(
+ "mesecons_extrawires:insulated_corner_"..color.."_off 3",
+ true,
+ dye),
+ recipe = {
+ {"", dye, ""},
+ {"mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off", ""},
+ {"", "mesecons_insulated:insulated_grey_off", ""},
+ }
+ })
+
+ minetest.register_craft({
+ output = unifieddyes.make_colored_itemstack(
+ "mesecons_extrawires:insulated_tjunction_"..color.."_off 3",
+ true,
+ dye),
+ recipe = {
+ {"", dye, ""},
+ {"mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off"},
+ {"", "mesecons_insulated:insulated_grey_off", ""},
+ }
+ })
+
+ minetest.register_craft({
+ type = "shapeless",
+ output = unifieddyes.make_colored_itemstack(
+ "mesecons_insulated:insulated_"..color.."_off",
+ true,
+ dye),
+ recipe = {
+ dye,
+ "mesecons_insulated:insulated_grey_off",
+ },
+ })
+
+ minetest.register_craft({
+ output = unifieddyes.make_colored_itemstack(
+ "mesecons_extrawires:insulated_corner_"..color.."_off",
+ true,
+ dye),
+ type = "shapeless",
+ recipe = {
+ dye,
+ "mesecons_extrawires:insulated_corner_grey_off"
+ }
+ })
+
+ minetest.register_craft({
+ output = unifieddyes.make_colored_itemstack(
+ "mesecons_extrawires:insulated_tjunction_"..color.."_off",
+ true,
+ dye),
+ type = "shapeless",
+ recipe = {
+ dye,
+ "mesecons_extrawires:insulated_tjunction_grey_off"
+ }
+ })
+ end
+end