diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-07-12 00:32:27 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-07-12 00:32:27 +0200 |
commit | 4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1 (patch) | |
tree | 32f24669a048ab2d679bcdc38e6b85fe7392e7ba /init.lua | |
parent | 68cadb6ce89cae357370efd20bea59d7ed06e354 (diff) | |
download | billboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.tar.gz billboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.tar.bz2 billboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.zip |
add arse train lines and ph metrorail
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -30,8 +30,12 @@ for i,n in ipairs(boardlist) do n.imgtyp = "png" end + if not n.name then + n.name=n.item1 .. "_" .. n.item2 .. "_" .. n.item3 + end + -- Register the Node - minetest.register_node("billboard:bb_".. n.item1 .."_"..n.item2 .."_"..n.item3, { + minetest.register_node("billboard:bb_"..n.name, { description = n.title, drawtype = "signlike", visual_scale = n.scale, @@ -53,14 +57,16 @@ for i,n in ipairs(boardlist) do }) - -- Register the Recipe for the Node - minetest.register_craft({ - output = "billboard:bb_"..n.item1.."_"..n.item2.."_"..n.item3, - recipe = { - {"group:stick", "group:stick", "group:stick"}, - {"default:"..n.item1, "wool:"..n.item2, "wool:"..n.item3}, - {"group:stick", "group:stick", "group:stick"} - } - }) + if not n.norecipe then + -- Register the Recipe for the Node + minetest.register_craft({ + output = "billboard:bb_"..n.name, + recipe = { + {"group:stick", "group:stick", "group:stick"}, + {"default:"..n.item1, "wool:"..n.item2, "wool:"..n.item3}, + {"group:stick", "group:stick", "group:stick"} + } + }) + end end |