summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-22 01:17:52 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-22 01:19:04 -0400
commit271f59bbac660bccca676f561dbeab898e30ae11 (patch)
treee5a3f5e693f87f418eb1596d800f610853dd9e2e
parent9eadebe6de71c43812ce053e37e6efc5bf69346c (diff)
downloadplasticbox-271f59bbac660bccca676f561dbeab898e30ae11.tar
plasticbox-271f59bbac660bccca676f561dbeab898e30ae11.tar.gz
plasticbox-271f59bbac660bccca676f561dbeab898e30ae11.tar.bz2
plasticbox-271f59bbac660bccca676f561dbeab898e30ae11.tar.xz
plasticbox-271f59bbac660bccca676f561dbeab898e30ae11.zip
switch to colored itemstacks
with full crafting recipes (requires Unified Dyes commit 2a816534 or later
-rw-r--r--init.lua26
1 files changed, 23 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index c8a1672..5a94b35 100644
--- a/init.lua
+++ b/init.lua
@@ -6,10 +6,7 @@ minetest.register_node("plasticbox:plasticbox", {
sounds = default.node_sound_stone_defaults(),
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- after_dig_node = unifieddyes.after_dig_node,
- place_param2 = 240,
on_construct = unifieddyes.on_construct,
- after_place_node = unifieddyes.recolor_on_place,
})
if minetest.global_exists("stairsplus") then
@@ -30,6 +27,29 @@ minetest.register_craft( {
},
})
+unifieddyes.register_color_craft({
+ output = "plasticbox:plasticbox 4",
+ palette = "extended",
+ neutral_node = "homedecor:plastic_sheeting",
+ recipe = {
+ { "NEUTRAL_NODE", "NEUTRAL_NODE", "NEUTRAL_NODE" },
+ { "NEUTRAL_NODE", "MAIN_DYE", "NEUTRAL_NODE" },
+ { "NEUTRAL_NODE", "NEUTRAL_NODE", "NEUTRAL_NODE" },
+
+ }
+})
+
+unifieddyes.register_color_craft({
+ output = "plasticbox:plasticbox",
+ palette = "extended",
+ type = "shapeless",
+ neutral_node = "plasticbox:plasticbox",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
minetest.register_lbm({
name = "plasticbox:convert_colors",
label = "Convert plastic boxes to use param2 color",