summaryrefslogtreecommitdiff
path: root/extra.lua
diff options
context:
space:
mode:
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