aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-12 00:32:27 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-12 00:32:27 +0200
commit4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1 (patch)
tree32f24669a048ab2d679bcdc38e6b85fe7392e7ba
parent68cadb6ce89cae357370efd20bea59d7ed06e354 (diff)
downloadbillboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.tar.gz
billboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.tar.bz2
billboard-4a8d9ac3d7d174524f0d17892d0b4fb66183c6b1.zip
add arse train lines and ph metrorail
-rw-r--r--init.lua26
-rw-r--r--nodes.lua132
-rw-r--r--textures/Screenshot.jpgbin208990 -> 0 bytes
-rw-r--r--textures/Screenshot.pngbin1835340 -> 0 bytes
-rw-r--r--textures/aikido.jpgbin30778 -> 0 bytes
-rw-r--r--textures/aikido.pngbin142563 -> 0 bytes
-rw-r--r--textures/army.jpgbin36777 -> 0 bytes
-rw-r--r--textures/army.pngbin250904 -> 0 bytes
-rw-r--r--textures/detergen.jpgbin28378 -> 0 bytes
-rw-r--r--textures/detergen.pngbin192254 -> 0 bytes
-rw-r--r--textures/mesedrink.jpgbin21407 -> 0 bytes
-rw-r--r--textures/mesedrink.pngbin103826 -> 0 bytes
-rw-r--r--textures/meseforte.jpgbin18280 -> 0 bytes
-rw-r--r--textures/meseforte.pngbin129020 -> 0 bytes
-rw-r--r--textures/mesewave.jpgbin21277 -> 0 bytes
-rw-r--r--textures/mesewave.pngbin154606 -> 0 bytes
-rw-r--r--textures/newspaper.jpgbin16501 -> 0 bytes
-rw-r--r--textures/newspaper.pngbin129691 -> 0 bytes
18 files changed, 74 insertions, 84 deletions
diff --git a/init.lua b/init.lua
index 28a111f..c7253fa 100644
--- a/init.lua
+++ b/init.lua
@@ -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
diff --git a/nodes.lua b/nodes.lua
index 1ff44dc..c41aef9 100644
--- a/nodes.lua
+++ b/nodes.lua
@@ -33,77 +33,61 @@
--]]
-boardlist =
- {
-
- {
- title = "Aikido Billboard",
- item1 = "sign_wall_wood",
- item2 = "white",
- item3 = "white",
- scale = 3.0,
- filename = "aikido",
- imgtyp = "jpg"
- },
-
- {
- title = "Detergen Billboard",
- item1 = "sign_wall_wood",
- item2 = "yellow",
- item3 = "yellow",
- scale = 3.0,
- filename = "detergen",
- imgtyp = "jpg"
- },
-
- {
- title = "Mesedrink Billboard",
- item1 = "sign_wall_wood",
- item2 = "black",
- item3 = "yellow",
- scale = 3.5,
- filename = "mesedrink",
- imgtyp = "jpg"
- },
-
- {
- title = "Meseforte Billboard",
- item1 = "sign_wall_wood",
- item2 = "green",
- item3 = "blue",
- scale = 3.0,
- filename = "meseforte",
- imgtyp = "png"
- },
-
- {
- title = "Mesewave Billboard",
- item1 = "sign_wall_wood",
- item2 = "blue",
- item3 = "yellow",
- scale = 2.0,
- filename = "mesewave",
- imgtyp = "jpg"
- },
-
- {
- title = "Newspaper Billboard",
- item1 = "paper",
- item2 = "black",
- item3 = "orange",
- scale = 2.5,
- filename = "newspaper",
- imgtyp = "jpg"
- },
-
- {
- title = "Army Billboard",
- item1 = "paper",
- item2 = "green",
- item3 = "green",
- scale = 2.0,
- filename = "army",
- imgtyp = "png"
- }
-
- } -- bb_boardlist
+boardlist = {
+ {
+ name = "swmap",
+ title = "Subway Map Billboard",
+ scale = 3.0,
+ norecipe = true,
+ filename = "index",
+ imgtyp = "png"
+ },
+ {
+ name = "bigswmap",
+ title = "BIG Subway Map Billboard",
+ scale = 5.0,
+ norecipe = true,
+ filename = "index",
+ imgtyp = "png"
+ },
+ {
+ name = "rowhouses",
+ title = "Row Houses Billboard",
+ scale = 3.0,
+ norecipe = true,
+ filename = "rowhouses",
+ imgtyp = "png"
+ },
+ {
+ name = "treehouse",
+ title = "Treehouse Hotel Billboard",
+ scale = 3.0,
+ norecipe = true,
+ filename = "thotel",
+ imgtyp = "png"
+ },
+ {
+ name="multicraft",
+ title="Multicraft Banner",
+ scale= 3.0,
+ norecipe=true,
+ filename="multicraft-texture",
+ imgtyp="png",
+ },
+ {
+ name="atl",
+ title="ARSE Train lines",
+ scale= 3.0,
+ norecipe=true,
+ filename="arsetrainlines",
+ imgtyp="png",
+ },
+ {
+ name="phm",
+ title="Personhood Metrorail",
+ scale= 3.0,
+ norecipe=true,
+ filename="phmetrorail",
+ imgtyp="png",
+ },
+} -- bb_boardlist
diff --git a/textures/Screenshot.jpg b/textures/Screenshot.jpg
deleted file mode 100644
index 45122d4..0000000
--- a/textures/Screenshot.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/Screenshot.png b/textures/Screenshot.png
deleted file mode 100644
index 3d61866..0000000
--- a/textures/Screenshot.png
+++ /dev/null
Binary files differ
diff --git a/textures/aikido.jpg b/textures/aikido.jpg
deleted file mode 100644
index e7cc68b..0000000
--- a/textures/aikido.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/aikido.png b/textures/aikido.png
deleted file mode 100644
index d10b1a8..0000000
--- a/textures/aikido.png
+++ /dev/null
Binary files differ
diff --git a/textures/army.jpg b/textures/army.jpg
deleted file mode 100644
index b437edf..0000000
--- a/textures/army.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/army.png b/textures/army.png
deleted file mode 100644
index 21437ea..0000000
--- a/textures/army.png
+++ /dev/null
Binary files differ
diff --git a/textures/detergen.jpg b/textures/detergen.jpg
deleted file mode 100644
index e2cdaca..0000000
--- a/textures/detergen.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/detergen.png b/textures/detergen.png
deleted file mode 100644
index 334a3c8..0000000
--- a/textures/detergen.png
+++ /dev/null
Binary files differ
diff --git a/textures/mesedrink.jpg b/textures/mesedrink.jpg
deleted file mode 100644
index e687c76..0000000
--- a/textures/mesedrink.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/mesedrink.png b/textures/mesedrink.png
deleted file mode 100644
index 3467572..0000000
--- a/textures/mesedrink.png
+++ /dev/null
Binary files differ
diff --git a/textures/meseforte.jpg b/textures/meseforte.jpg
deleted file mode 100644
index 897af9a..0000000
--- a/textures/meseforte.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/meseforte.png b/textures/meseforte.png
deleted file mode 100644
index 1efa759..0000000
--- a/textures/meseforte.png
+++ /dev/null
Binary files differ
diff --git a/textures/mesewave.jpg b/textures/mesewave.jpg
deleted file mode 100644
index 25ed5c3..0000000
--- a/textures/mesewave.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/mesewave.png b/textures/mesewave.png
deleted file mode 100644
index a6df1ba..0000000
--- a/textures/mesewave.png
+++ /dev/null
Binary files differ
diff --git a/textures/newspaper.jpg b/textures/newspaper.jpg
deleted file mode 100644
index e89a4cb..0000000
--- a/textures/newspaper.jpg
+++ /dev/null
Binary files differ
diff --git a/textures/newspaper.png b/textures/newspaper.png
deleted file mode 100644
index 3c3149e..0000000
--- a/textures/newspaper.png
+++ /dev/null
Binary files differ