diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..ee7d6a5 --- /dev/null +++ b/COPYING @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + 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/README.md b/README.md index 478efe3..2564c2c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,21 @@ plasticbox ========== - Plastic Box Mod for Minetest + +Written by cheapie +Textures by VanessaE +Licensed under WTFPL + +Crafting: + +-Plain Plastic Box- + +XXX +X-X +XXX + +X is Plastic Sheets (from homedecor/pipeworks), - is nothing + +-Colored Plastic Boxes- + +Plain plastic box and a dye. (shapeless) diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..2bf0202 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +homedecor diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..dba95a5 --- /dev/null +++ b/init.lua @@ -0,0 +1,191 @@ +--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(), +}) + + +--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" } + }, +}) + +--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'}, +}) diff --git a/textures/plasticbox.png b/textures/plasticbox.png new file mode 100644 index 0000000..4f9bbc9 Binary files /dev/null and b/textures/plasticbox.png differ diff --git a/textures/plasticbox_black.png b/textures/plasticbox_black.png new file mode 100644 index 0000000..d0409b3 Binary files /dev/null and b/textures/plasticbox_black.png differ diff --git a/textures/plasticbox_blue.png b/textures/plasticbox_blue.png new file mode 100644 index 0000000..fa29a0f Binary files /dev/null and b/textures/plasticbox_blue.png differ diff --git a/textures/plasticbox_brown.png b/textures/plasticbox_brown.png new file mode 100644 index 0000000..6164f9f Binary files /dev/null and b/textures/plasticbox_brown.png differ diff --git a/textures/plasticbox_cyan.png b/textures/plasticbox_cyan.png new file mode 100644 index 0000000..4eefe78 Binary files /dev/null and b/textures/plasticbox_cyan.png differ diff --git a/textures/plasticbox_darkgreen.png b/textures/plasticbox_darkgreen.png new file mode 100644 index 0000000..cb021e5 Binary files /dev/null and b/textures/plasticbox_darkgreen.png differ diff --git a/textures/plasticbox_darkgrey.png b/textures/plasticbox_darkgrey.png new file mode 100644 index 0000000..d20c724 Binary files /dev/null and b/textures/plasticbox_darkgrey.png differ diff --git a/textures/plasticbox_green.png b/textures/plasticbox_green.png new file mode 100644 index 0000000..1811f19 Binary files /dev/null and b/textures/plasticbox_green.png differ diff --git a/textures/plasticbox_grey.png b/textures/plasticbox_grey.png new file mode 100644 index 0000000..cbed434 Binary files /dev/null and b/textures/plasticbox_grey.png differ diff --git a/textures/plasticbox_magenta.png b/textures/plasticbox_magenta.png new file mode 100644 index 0000000..f390bc6 Binary files /dev/null and b/textures/plasticbox_magenta.png differ diff --git a/textures/plasticbox_orange.png b/textures/plasticbox_orange.png new file mode 100644 index 0000000..df004a9 Binary files /dev/null and b/textures/plasticbox_orange.png differ diff --git a/textures/plasticbox_pink.png b/textures/plasticbox_pink.png new file mode 100644 index 0000000..c315b65 Binary files /dev/null and b/textures/plasticbox_pink.png differ diff --git a/textures/plasticbox_red.png b/textures/plasticbox_red.png new file mode 100644 index 0000000..e7c5aac Binary files /dev/null and b/textures/plasticbox_red.png differ diff --git a/textures/plasticbox_violet.png b/textures/plasticbox_violet.png new file mode 100644 index 0000000..428738b Binary files /dev/null and b/textures/plasticbox_violet.png differ diff --git a/textures/plasticbox_white.png b/textures/plasticbox_white.png new file mode 100644 index 0000000..ec4a403 Binary files /dev/null and b/textures/plasticbox_white.png differ diff --git a/textures/plasticbox_yellow.png b/textures/plasticbox_yellow.png new file mode 100644 index 0000000..c0e2679 Binary files /dev/null and b/textures/plasticbox_yellow.png differ