summaryrefslogtreecommitdiff
path: root/plasticbox
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 20:02:19 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:09:33 -0400
commitda66780a569712c23ae4f2996cfb4608a9f9d69d (patch)
tree217556029a78bc23ad4564720afc86de97228a04 /plasticbox
parent615b22df4d423aded3613db7716943a2f389b047 (diff)
downloaddreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'plasticbox')
-rw-r--r--plasticbox/COPYING14
-rw-r--r--plasticbox/README.md28
-rw-r--r--plasticbox/depends.txt4
-rw-r--r--plasticbox/init.lua351
-rw-r--r--plasticbox/textures/plastic_powder.pngbin0 -> 234 bytes
-rw-r--r--plasticbox/textures/plasticbox.pngbin0 -> 499 bytes
-rw-r--r--plasticbox/textures/plasticbox_black.pngbin0 -> 453 bytes
-rw-r--r--plasticbox/textures/plasticbox_blue.pngbin0 -> 535 bytes
-rw-r--r--plasticbox/textures/plasticbox_brown.pngbin0 -> 463 bytes
-rw-r--r--plasticbox/textures/plasticbox_cyan.pngbin0 -> 513 bytes
-rw-r--r--plasticbox/textures/plasticbox_darkgreen.pngbin0 -> 431 bytes
-rw-r--r--plasticbox/textures/plasticbox_darkgrey.pngbin0 -> 430 bytes
-rw-r--r--plasticbox/textures/plasticbox_green.pngbin0 -> 486 bytes
-rw-r--r--plasticbox/textures/plasticbox_grey.pngbin0 -> 522 bytes
-rw-r--r--plasticbox/textures/plasticbox_magenta.pngbin0 -> 522 bytes
-rw-r--r--plasticbox/textures/plasticbox_orange.pngbin0 -> 512 bytes
-rw-r--r--plasticbox/textures/plasticbox_pink.pngbin0 -> 571 bytes
-rw-r--r--plasticbox/textures/plasticbox_red.pngbin0 -> 522 bytes
-rw-r--r--plasticbox/textures/plasticbox_violet.pngbin0 -> 539 bytes
-rw-r--r--plasticbox/textures/plasticbox_white.pngbin0 -> 441 bytes
-rw-r--r--plasticbox/textures/plasticbox_yellow.pngbin0 -> 517 bytes
21 files changed, 397 insertions, 0 deletions
diff --git a/plasticbox/COPYING b/plasticbox/COPYING
new file mode 100644
index 0000000..ee7d6a5
--- /dev/null
+++ b/plasticbox/COPYING
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
diff --git a/plasticbox/README.md b/plasticbox/README.md
new file mode 100644
index 0000000..8a5e911
--- /dev/null
+++ b/plasticbox/README.md
@@ -0,0 +1,28 @@
+plasticbox
+==========
+Plastic Box Mod for Minetest
+
+* Written by cheapie and kizeren
+* Textures by VanessaE
+* Licensed under WTFPL
+
+Crafting:
+
+-Plain Plastic Box-
+
+* XXX
+* X-X
+* XXX
+
+X is Plastic Sheets (from homedecor/pipeworks), - is nothing
+(It's a ring of plastic sheets like is done with wood for chests, if the above diagram is mangled)
+
+-Colored Plastic Boxes-
+
+Plain plastic box and a dye. (shapeless)
+
+Buckets can also be crafted from plastic sheets in place of steel ingots.
+
+Recycling:
+
+There are two ways to recycle plastic boxes. If you have Technic installed, plastic boxes of any color can be ground to 2 "plastic powder" and sheets to one powder. Without Technic, craft 4 plastic boxes (plain only) in a square to get 7 powder. In either case, the powder can be cooked in a furnace to make plastic sheets, from which more boxes (or other plastic items) can be made.
diff --git a/plasticbox/depends.txt b/plasticbox/depends.txt
new file mode 100644
index 0000000..42f64ae
--- /dev/null
+++ b/plasticbox/depends.txt
@@ -0,0 +1,4 @@
+homedecor
+technic?
+bucket?
+pipeworks?
diff --git a/plasticbox/init.lua b/plasticbox/init.lua
new file mode 100644
index 0000000..256f972
--- /dev/null
+++ b/plasticbox/init.lua
@@ -0,0 +1,351 @@
+plasticbox = {}
+plasticbox.colorlist = {
+ {"black", "Black Plastic"},
+ {"blue", "Blue Plastic"},
+ {"brown", "Brown Plastic"},
+ {"cyan", "Cyan Plastic"},
+ {"green", "Green Plastic"},
+ {"grey", "Grey Plastic"},
+ {"magenta", "Magenta Plastic"},
+ {"orange", "Orange Plastic"},
+ {"pink", "Pink Plastic"},
+ {"red", "Red Plastic"},
+ {"violet", "Violet Plastic"},
+ {"white", "White Plastic"},
+ {"yellow", "Yellow Plastic"},
+}
+
+
+
+--Register Nodes, assign textures, blah, blah...
+minetest.register_node("plasticbox:plasticbox", {
+ description = "Plain Plastic Box",
+ tiles = {"plasticbox.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_black", {
+ description = "Black Plastic Box",
+ tiles = {"plasticbox_black.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_blue", {
+ description = "Blue Plastic Box",
+ tiles = {"plasticbox_blue.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_brown", {
+ description = "Brown Plastic Box",
+ tiles = {"plasticbox_brown.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_cyan", {
+ description = "Cyan Plastic Box",
+ tiles = {"plasticbox_cyan.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_darkgreen", {
+ description = "Dark Green Plastic Box",
+ tiles = {"plasticbox_darkgreen.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_darkgrey", {
+ description = "Dark Gray Plastic Box",
+ tiles = {"plasticbox_darkgrey.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_green", {
+ description = "Green Plastic Box",
+ tiles = {"plasticbox_green.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_grey", {
+ description = "Gray Plastic Box",
+ tiles = {"plasticbox_grey.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_magenta", {
+ description = "Magenta Plastic Box",
+ tiles = {"plasticbox_magenta.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_orange", {
+ description = "Orange Plastic Box",
+ tiles = {"plasticbox_orange.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_pink", {
+ description = "Pink Plastic Box",
+ tiles = {"plasticbox_pink.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_red", {
+ description = "Red Plastic Box",
+ tiles = {"plasticbox_red.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_violet", {
+ description = "Violet Plastic Box",
+ tiles = {"plasticbox_violet.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_white", {
+ description = "White Plastic Box",
+ tiles = {"plasticbox_white.png"},
+ is_ground_content = true,
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
+ sounds = default.node_sound_stone_defaults(),
+})
+minetest.register_node("plasticbox:plasticbox_yellow", {
+ description = "Yellow Plastic Box",
+ tiles = {"plasticbox_yellow.png"},
+ is_ground_content = true,
+ 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
+minetest.register_craft( {
+ output = "plasticbox:plasticbox 4",
+ recipe = {
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
+ { "homedecor:plastic_sheeting", "", "homedecor:plastic_sheeting" },
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
+ },
+})
+
+
+minetest.register_craft( {
+ output = "homedecor:plastic_sheeting 7",
+ recipe = {
+ { "plasticbox:plasticbox", "plasticbox:plasticbox" },
+ { "plasticbox:plasticbox", "plasticbox:plasticbox" },
+ },
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "homedecor:plastic_sheeting",
+ recipe = "plasticbox:plastic_powder",
+})
+
+--Register crafts for colored boxes
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_black',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_black'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_blue',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_blue'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_brown',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_brown'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_cyan',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_cyan'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_green',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_green'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_grey',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_grey'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_magenta',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_magenta'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_orange',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_orange'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_pink',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_pink'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_red',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_red'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_violet',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_violet'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_white',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_white'},
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = 'plasticbox:plasticbox_yellow',
+ recipe = {'plasticbox:plasticbox', 'group:basecolor_yellow'},
+})
+
+--ugly below here.
+
+if minetest.get_modpath("moreblocks") then
+ register_stair(
+ "plasticbox",
+ "plasticbox",
+ "plasticbox:plasticbox",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox.png",
+ },
+ "Plastic",
+ "plasticbox",
+ 0
+ )
+ register_slab(
+ "plasticbox",
+ "plasticbox",
+ "plasticbox:plasticbox",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox.png",
+ },
+ "Plastic",
+ "plasticbox",
+ 0
+ )
+
+ register_panel(
+ "plasticbox",
+ "plasticbox",
+ "plasticbox:plasticbox",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox.png",
+ },
+ "Plastic",
+ "plasticbox",
+ 0
+ )
+
+ register_micro(
+ "plasticbox",
+ "plasticbox",
+ "plasticbox:plasticbox",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox.png",
+ },
+ "Plastic",
+ "plasticbox",
+ 0
+ )
+ table.insert(circular_saw.known_stairs, "plasticbox:plasticbox")
+
+end
+
+
+
+for i in ipairs(plasticbox.colorlist) do
+ local colorname = plasticbox.colorlist[i][1]
+ local desc = plasticbox.colorlist[i][2]
+
+ if minetest.get_modpath("moreblocks") then
+ register_stair(
+ "plasticbox",
+ "plasticbox_"..colorname,
+ "plasticbox:plasticbox_"..colorname,
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox_"..colorname..".png",
+ },
+ desc,
+ "plasticbox_"..colorname,
+ 0
+ )
+ register_slab(
+ "plasticbox",
+ "plasticbox_"..colorname,
+ "plasticbox:plasticbox_"..colorname,
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox_"..colorname..".png",
+ },
+ desc,
+ "plasticbox_"..colorname,
+ 0
+ )
+
+ register_panel(
+ "plasticbox",
+ "plasticbox_"..colorname,
+ "plasticbox:plasticbox_"..colorname,
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox_"..colorname..".png",
+ },
+ desc,
+ "plasticbox_"..colorname,
+ 0
+ )
+
+ register_micro(
+ "plasticbox",
+ "plasticbox_"..colorname,
+ "plasticbox:plasticbox_"..colorname,
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1 },
+ { "plasticbox_"..colorname..".png",
+ },
+ desc,
+ "plasticbox_"..colorname,
+ 0
+ )
+ table.insert(circular_saw.known_stairs, "plasticbox:plasticbox_"..colorname)
+
+ end
+end
+
+--Crafting recipes involving other mods
+if minetest.get_modpath("bucket") then
+minetest.register_craft( {
+ output = "bucket:bucket_empty",
+ recipe = {
+ { "homedecor:plastic_sheeting", "", "homedecor:plastic_sheeting" },
+ { "", "homedecor:plastic_sheeting", "" },
+ },
+})
+end
diff --git a/plasticbox/textures/plastic_powder.png b/plasticbox/textures/plastic_powder.png
new file mode 100644
index 0000000..3dde702
--- /dev/null
+++ b/plasticbox/textures/plastic_powder.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox.png b/plasticbox/textures/plasticbox.png
new file mode 100644
index 0000000..4f9bbc9
--- /dev/null
+++ b/plasticbox/textures/plasticbox.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_black.png b/plasticbox/textures/plasticbox_black.png
new file mode 100644
index 0000000..d0409b3
--- /dev/null
+++ b/plasticbox/textures/plasticbox_black.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_blue.png b/plasticbox/textures/plasticbox_blue.png
new file mode 100644
index 0000000..fa29a0f
--- /dev/null
+++ b/plasticbox/textures/plasticbox_blue.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_brown.png b/plasticbox/textures/plasticbox_brown.png
new file mode 100644
index 0000000..6164f9f
--- /dev/null
+++ b/plasticbox/textures/plasticbox_brown.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_cyan.png b/plasticbox/textures/plasticbox_cyan.png
new file mode 100644
index 0000000..4eefe78
--- /dev/null
+++ b/plasticbox/textures/plasticbox_cyan.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_darkgreen.png b/plasticbox/textures/plasticbox_darkgreen.png
new file mode 100644
index 0000000..cb021e5
--- /dev/null
+++ b/plasticbox/textures/plasticbox_darkgreen.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_darkgrey.png b/plasticbox/textures/plasticbox_darkgrey.png
new file mode 100644
index 0000000..d20c724
--- /dev/null
+++ b/plasticbox/textures/plasticbox_darkgrey.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_green.png b/plasticbox/textures/plasticbox_green.png
new file mode 100644
index 0000000..1811f19
--- /dev/null
+++ b/plasticbox/textures/plasticbox_green.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_grey.png b/plasticbox/textures/plasticbox_grey.png
new file mode 100644
index 0000000..cbed434
--- /dev/null
+++ b/plasticbox/textures/plasticbox_grey.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_magenta.png b/plasticbox/textures/plasticbox_magenta.png
new file mode 100644
index 0000000..f390bc6
--- /dev/null
+++ b/plasticbox/textures/plasticbox_magenta.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_orange.png b/plasticbox/textures/plasticbox_orange.png
new file mode 100644
index 0000000..df004a9
--- /dev/null
+++ b/plasticbox/textures/plasticbox_orange.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_pink.png b/plasticbox/textures/plasticbox_pink.png
new file mode 100644
index 0000000..c315b65
--- /dev/null
+++ b/plasticbox/textures/plasticbox_pink.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_red.png b/plasticbox/textures/plasticbox_red.png
new file mode 100644
index 0000000..e7c5aac
--- /dev/null
+++ b/plasticbox/textures/plasticbox_red.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_violet.png b/plasticbox/textures/plasticbox_violet.png
new file mode 100644
index 0000000..428738b
--- /dev/null
+++ b/plasticbox/textures/plasticbox_violet.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_white.png b/plasticbox/textures/plasticbox_white.png
new file mode 100644
index 0000000..ec4a403
--- /dev/null
+++ b/plasticbox/textures/plasticbox_white.png
Binary files differ
diff --git a/plasticbox/textures/plasticbox_yellow.png b/plasticbox/textures/plasticbox_yellow.png
new file mode 100644
index 0000000..c0e2679
--- /dev/null
+++ b/plasticbox/textures/plasticbox_yellow.png
Binary files differ