aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpithydon <pithydon@gmail.com>2016-05-18 16:02:28 -0600
committerAuke Kok <sofar+github@foo-projects.org>2016-05-18 15:02:28 -0700
commiteb3f9363d5485838451cfaca5fca79be2d08f44d (patch)
tree839c6c08d4beb6f3752151b719dbfe8041528123
parentfa6937ce7ba1eb4259a73f8458b56b2bcb851313 (diff)
downloadmoreblocks-eb3f9363d5485838451cfaca5fca79be2d08f44d.tar.gz
moreblocks-eb3f9363d5485838451cfaca5fca79be2d08f44d.tar.bz2
moreblocks-eb3f9363d5485838451cfaca5fca79be2d08f44d.zip
add node copper patina (#37)
Good for building things like the statue of liberty.
-rw-r--r--crafting.lua16
-rw-r--r--nodes.lua5
-rw-r--r--textures/moreblocks_copperpatina.pngbin0 -> 325 bytes
3 files changed, 21 insertions, 0 deletions
diff --git a/crafting.lua b/crafting.lua
index c85cc3f..501c9f4 100644
--- a/crafting.lua
+++ b/crafting.lua
@@ -457,6 +457,22 @@ minetest.register_craft({
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
})
+minetest.register_craft({
+ type = "shapeless",
+ output = "moreblocks:copperpatina",
+ recipe = {"bucket:bucket_water", "default:copperblock"},
+ replacements = {
+ {"bucket:bucket_water", "bucket:bucket_empty"}
+ }
+})
+
+minetest.register_craft({
+ output = "default:copper_ingot 9",
+ recipe = {
+ {"moreblocks:copperpatina"},
+ }
+})
+
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
minetest.register_craft({
output = "moreblocks:circular_saw",
diff --git a/nodes.lua b/nodes.lua
index 810df36..2d35cd2 100644
--- a/nodes.lua
+++ b/nodes.lua
@@ -331,6 +331,11 @@ local nodes = {
sounds = sound_leaves,
no_stairs = true,
},
+ ["copperpatina"] = {
+ description = S("Copper Patina Block"),
+ groups = {cracky = 1, level = 2},
+ sounds = sound_stone,
+ },
}
for name, def in pairs(nodes) do
diff --git a/textures/moreblocks_copperpatina.png b/textures/moreblocks_copperpatina.png
new file mode 100644
index 0000000..1b971dc
--- /dev/null
+++ b/textures/moreblocks_copperpatina.png
Binary files differ