summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2014-05-15 18:58:13 -0500
committercheapie <no-email-for-you@example.com>2014-05-15 18:58:13 -0500
commitdbdc8c4518333605a4b4966a66cefc34e83b76cd (patch)
treeb7b89687413097ee9ea78b7354d60c07058f86bb
parent9c96849ff7d331429f70d14afc50907c897cef00 (diff)
downloadplasticbox-dbdc8c4518333605a4b4966a66cefc34e83b76cd.tar
plasticbox-dbdc8c4518333605a4b4966a66cefc34e83b76cd.tar.gz
plasticbox-dbdc8c4518333605a4b4966a66cefc34e83b76cd.tar.bz2
plasticbox-dbdc8c4518333605a4b4966a66cefc34e83b76cd.tar.xz
plasticbox-dbdc8c4518333605a4b4966a66cefc34e83b76cd.zip
Added plastic powder (formed by grinding plastic boxes or sheets. No non-technic recipe (or use) for it yet.)
-rw-r--r--depends.txt1
-rw-r--r--init.lua32
-rw-r--r--textures/plastic_powder.pngbin0 -> 234 bytes
3 files changed, 33 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt
index 2bf0202..8793099 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1 +1,2 @@
homedecor
+technic?
diff --git a/init.lua b/init.lua
index dc632f1..6b5e9fa 100644
--- a/init.lua
+++ b/init.lua
@@ -130,6 +130,10 @@ minetest.register_node("plasticbox:plasticbox_yellow", {
groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
sounds = default.node_sound_stone_defaults(),
})
+minetest.register_craftitem("plasticbox:plastic_powder", {
+ image = "plastic_powder.png",
+ description="Plastic Powder",
+})
--Register craft for plain box
@@ -142,6 +146,34 @@ minetest.register_craft( {
},
})
+--Register crafts for plastic powder
+
+if minetest.get_modpath("technic") then
+ local grinder_recipes = {
+ {"plasticbox:plasticbox", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_black", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_blue", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_brown", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_cyan", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_darkgreen", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_darkgrey", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_green", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_grey", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_magenta", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_orange", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_pink", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_red", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_violet", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_white", "plasticbox:plastic_powder 2"},
+ {"plasticbox:plasticbox_yellow", "plasticbox:plastic_powder 2"},
+ {"homedecor:plastic_sheeting", "plasticbox:plastic_powder 1"}
+ }
+ for _, data in pairs(grinder_recipes) do
+ technic.register_grinder_recipe({input=data[1], output=data[2]})
+ end
+else
+end
+
--Register crafts for colored boxes
minetest.register_craft({
type = "shapeless",
diff --git a/textures/plastic_powder.png b/textures/plastic_powder.png
new file mode 100644
index 0000000..3dde702
--- /dev/null
+++ b/textures/plastic_powder.png
Binary files differ