diff options
author | Max Hipp <34799688+maxxmodding@users.noreply.github.com> | 2018-03-07 22:07:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 22:07:09 +0100 |
commit | f82cb6b55b0b4f1451067571e78fd8b711421168 (patch) | |
tree | b931411b8e5b1c488d0550490ecd9b3133229a6a /craft.lua | |
parent | 4bf4a0dc00daab2e870c07c1ecabe4a0395d800c (diff) |
Add files via upload
Diffstat (limited to 'craft.lua')
-rw-r--r-- | craft.lua | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/craft.lua b/craft.lua new file mode 100644 index 0000000..c589d06 --- /dev/null +++ b/craft.lua @@ -0,0 +1,78 @@ +--CRAFTING
+
+-- Blocks
+
+minetest.register_craft({
+ output = 'trainblocks:subwayblock',
+ recipe = {
+ {'', 'dye:blue', ''},
+ {'dye:white', 'default:glass', 'dye:white'},
+ {'', 'dye:blue', ''},
+ }
+})
+
+minetest.register_craft({
+ output = 'trainblocks:sbahnblock',
+ recipe = {
+ {'', 'dye:orange', ''},
+ {'dye:white', 'default:glass', 'dye:white'},
+ {'', 'dye:orange', ''},
+ }
+})
+
+--lineblocks from 1 to 10
+local dyes1 = {"blue", "red", "violet", "green", "orange", "yellow", "gray", "magenta", "cyan", "black"}
+local dyes2 = {"white", "white", "white", "white", "white", "black", "white", "white", "white", "white"}
+
+for count = 1, 10, 1 do
+minetest.register_craft({
+ output = "trainblocks:line" .. count .. " 4",
+ recipe = {
+ {'', "dye:" .. dyes1[count] , ''},
+ {"dye:" .. dyes2[count], 'default:glass', ''},
+ {'', '', ''},
+ }
+})
+end
+
+
+
+--subway direction signs
+
+minetest.register_craft({
+ output = 'trainblocks:subwaysignL 2',
+ recipe = {
+ {'', '', ''},
+ {'dye:white', 'default:glass', 'dye:blue'},
+ {'', '', ''},
+ }
+})
+
+minetest.register_craft({
+ output = 'trainblocks:subwaysignR 2',
+ recipe = {
+ {'', '', ''},
+ {'dye:blue', 'default:glass', 'dye:white'},
+ {'', '', ''},
+ }
+})
+
+--sbahn direction signs
+
+minetest.register_craft({
+ output = 'trainblocks:sbahnsignL 2',
+ recipe = {
+ {'', '', ''},
+ {'dye:white', 'default:glass', 'dye:orange'},
+ {'', '', ''},
+ }
+})
+
+minetest.register_craft({
+ output = 'trainblocks:sbahnsignR 2',
+ recipe = {
+ {'', '', ''},
+ {'dye:blue', 'default:glass', 'dye:orange'},
+ {'', '', ''},
+ }
+})
\ No newline at end of file |