2018-03-07 22:07:09 +01:00
|
|
|
--CRAFTING
|
|
|
|
|
|
|
|
-- Blocks
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:subwayblock',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
|
|
|
{'', 'dye:blue', ''},
|
|
|
|
{'dye:white', 'default:glass', 'dye:white'},
|
|
|
|
{'', 'dye:blue', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:sbahnblock',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
2018-03-23 22:01:23 +01:00
|
|
|
{'', 'dye:green', ''},
|
2018-03-07 22:07:09 +01:00
|
|
|
{'dye:white', 'default:glass', 'dye:white'},
|
2018-03-23 22:01:23 +01:00
|
|
|
{'', 'dye:green', ''},
|
2018-03-07 22:07:09 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--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
|
2020-05-15 03:58:19 +10:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:line" .. count .. " 4",
|
|
|
|
recipe = {
|
|
|
|
{'', "dye:" .. dyes1[count] , ''},
|
|
|
|
{"dye:" .. dyes2[count], 'default:glass', ''},
|
|
|
|
{'', '', ''},
|
|
|
|
}
|
|
|
|
})
|
2018-03-07 22:07:09 +01:00
|
|
|
end
|
|
|
|
|
2020-05-15 15:23:48 +10:00
|
|
|
-- Platform signs 0-10
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign0",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'', 'dye:white', ''},
|
|
|
|
{'', '' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign1",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', 'dye:white'},
|
|
|
|
{'', '', 'dye:white'},
|
|
|
|
{'', '' ,'dye:white'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign2",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', 'dye:white', ''},
|
|
|
|
{'', '' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign3",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', 'dye:white', 'dye:white'},
|
|
|
|
{'', '' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign4",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', 'dye:white', ''},
|
|
|
|
{'dye:white', 'dye:white' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign5",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', 'dye:white', 'dye:white'},
|
|
|
|
{'dye:white', 'dye:white' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign6",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', 'dye:white', 'dye:white'},
|
|
|
|
{'dye:white', 'dye:white' ,'dye:white'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign7",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', 'dye:white'},
|
|
|
|
{'', '', 'dye:white'},
|
|
|
|
{'', 'dye:white' ,''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign8",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', 'dye:white'},
|
|
|
|
{'dye:white', '', 'dye:white'},
|
|
|
|
{'dye:white', 'dye:white' ,'dye:white'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign9",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', 'dye:white'},
|
|
|
|
{'', 'dye:white', 'dye:white'},
|
|
|
|
{'', '' ,'dye:white'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "trainblocks:platformsign10",
|
|
|
|
recipe = {
|
|
|
|
{'dye:blue', 'default:glass', ''},
|
|
|
|
{'dye:white', '', ''},
|
|
|
|
{'dye:white', '' ,'dye:white'}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-03-07 22:07:09 +01:00
|
|
|
--subway direction signs
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:subwaysignL 2',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
|
|
|
{'', '', ''},
|
|
|
|
{'dye:white', 'default:glass', 'dye:blue'},
|
|
|
|
{'', '', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:subwaysignR 2',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
|
|
|
{'', '', ''},
|
|
|
|
{'dye:blue', 'default:glass', 'dye:white'},
|
|
|
|
{'', '', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--sbahn direction signs
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:sbahnsignL 2',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
|
|
|
{'', '', ''},
|
2018-03-23 22:01:23 +01:00
|
|
|
{'dye:white', 'default:glass', 'dye:green'},
|
2018-03-07 22:07:09 +01:00
|
|
|
{'', '', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-03-08 16:31:40 +01:00
|
|
|
output = 'trainblocks:sbahnsignR 2',
|
2018-03-07 22:07:09 +01:00
|
|
|
recipe = {
|
|
|
|
{'', '', ''},
|
2020-05-15 03:58:19 +10:00
|
|
|
{'dye:white', 'default:glass', 'dye:green'},
|
|
|
|
{'', '', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- Station direction signs
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'trainblocks:stationsignL 2',
|
|
|
|
recipe = {
|
|
|
|
{'', '', ''},
|
|
|
|
{'dye:white', 'default:glass', 'dye:black'},
|
|
|
|
{'', '', ''}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'trainblocks:stationsignR 2',
|
|
|
|
recipe = {
|
2018-03-07 22:07:09 +01:00
|
|
|
{'', '', ''},
|
2020-05-15 03:58:19 +10:00
|
|
|
{'dye:black', 'default:glass', 'dye:white'},
|
|
|
|
{'', '', ''}
|
2018-03-07 22:07:09 +01:00
|
|
|
}
|
2018-03-08 16:20:15 +01:00
|
|
|
})
|
2020-05-15 03:58:19 +10:00
|
|
|
|
|
|
|
-- Switch betwen modern station direction signs and older style
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'trainblocks:stationsignR_modern',
|
|
|
|
recipe = {'trainblocks:stationsignR'}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'trainblocks:stationsignL_modern',
|
|
|
|
recipe = {'trainblocks:stationsignL'}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {'trainblocks:stationsignR_modern'},
|
|
|
|
output = 'trainblocks:stationsignR'
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {'trainblocks:stationsignL_modern'},
|
|
|
|
output = 'trainblocks:stationsignL'
|
|
|
|
})
|