summaryrefslogtreecommitdiff
path: root/extra.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-05 11:39:20 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-05 11:39:20 +0100
commit306c025713487b20a20e32e33277d2f215a70832 (patch)
tree681fa828ac02732b2670392e4d30c613c407a579 /extra.lua
parenta3a3934227ec7d56f526ad392690df92fa0165d5 (diff)
Code tweak and tidy
Diffstat (limited to 'extra.lua')
-rw-r--r--extra.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/extra.lua b/extra.lua
index ebb216f..6dfd552 100644
--- a/extra.lua
+++ b/extra.lua
@@ -41,20 +41,22 @@ minetest.register_craft({
})
-- X pattern craft recipes (5x 'a' in X pattern gives 5 of 'b')
-for _,items in pairs({
+local cheat = {
{"default:cobble", "default:gravel"},
{"default:gravel", "default:dirt"},
{"default:dirt", "default:sand"},
{"default:ice", "default:snow"},
{"ethereal:dry_dirt", "default:desert_sand"},
-}) do
- local a, b = unpack(items)
+}
+
+for n = 1, #cheat do
+
minetest.register_craft({
- output = b.." 5",
+ output = cheat[n][2] .. " 5",
recipe = {
- {a, "", a},
- {"", a, ""},
- {a, "", a},
+ {cheat[n][1], "", cheat[n][1]},
+ {"", cheat[n][1], ""},
+ {cheat[n][1], "", cheat[n][1]},
}
})
end