summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_microcontroller/init.lua15
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_LED_A.pngbin0 -> 1240 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_LED_B.pngbin0 -> 1239 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_LED_C.pngbin0 -> 1240 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_LED_D.pngbin0 -> 1239 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top.png (renamed from mesecons_textures/textures/jeija_microcontroller_top_0000.png)bin1151 -> 1151 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0001.pngbin1179 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0010.pngbin1188 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0011.pngbin1208 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0100.pngbin1172 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0101.pngbin1191 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0110.pngbin1200 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0111.pngbin1216 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1000.pngbin1172 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1001.pngbin1193 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1010.pngbin1206 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1011.pngbin1220 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1100.pngbin1184 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1101.pngbin1201 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1110.pngbin1211 -> 0 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1111.pngbin1223 -> 0 bytes
21 files changed, 14 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index 00a8f55..a4c2741 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -11,6 +11,19 @@ for b = 0, 1 do
for c = 0, 1 do
for d = 0, 1 do
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
+local top = "jeija_microcontroller_top.png"
+if tostring(a) == "1" then
+ top = top.."^jeija_microcontroller_LED_A.png"
+end
+if tostring(b) == "1" then
+ top = top.."^jeija_microcontroller_LED_B.png"
+end
+if tostring(c) == "1" then
+ top = top.."^jeija_microcontroller_LED_C.png"
+end
+if tostring(d) == "1" then
+ top = top.."^jeija_microcontroller_LED_D.png"
+end
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 3}
else
@@ -20,7 +33,7 @@ minetest.register_node(nodename, {
description = "Microcontroller",
drawtype = "nodebox",
tiles = {
- "jeija_microcontroller_top_"..tostring(d)..tostring(c)..tostring(b)..tostring(a)..".png",
+ top,
"jeija_microcontroller_bottom.png",
"jeija_microcontroller_sides.png",
"jeija_microcontroller_sides.png",
diff --git a/mesecons_textures/textures/jeija_microcontroller_LED_A.png b/mesecons_textures/textures/jeija_microcontroller_LED_A.png
new file mode 100644
index 0000000..64526cf
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_LED_A.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_LED_B.png b/mesecons_textures/textures/jeija_microcontroller_LED_B.png
new file mode 100644
index 0000000..1f7b451
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_LED_B.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_LED_C.png b/mesecons_textures/textures/jeija_microcontroller_LED_C.png
new file mode 100644
index 0000000..399cc2c
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_LED_C.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_LED_D.png b/mesecons_textures/textures/jeija_microcontroller_LED_D.png
new file mode 100644
index 0000000..506389c
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_LED_D.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0000.png b/mesecons_textures/textures/jeija_microcontroller_top.png
index 438c934..438c934 100644
--- a/mesecons_textures/textures/jeija_microcontroller_top_0000.png
+++ b/mesecons_textures/textures/jeija_microcontroller_top.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0001.png b/mesecons_textures/textures/jeija_microcontroller_top_0001.png
deleted file mode 100644
index 0e67ad3..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0001.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0010.png b/mesecons_textures/textures/jeija_microcontroller_top_0010.png
deleted file mode 100644
index 37dd2d0..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0010.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0011.png b/mesecons_textures/textures/jeija_microcontroller_top_0011.png
deleted file mode 100644
index 0035a8c..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0011.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0100.png b/mesecons_textures/textures/jeija_microcontroller_top_0100.png
deleted file mode 100644
index 18471db..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0100.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0101.png b/mesecons_textures/textures/jeija_microcontroller_top_0101.png
deleted file mode 100644
index 0b8dd8e..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0101.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0110.png b/mesecons_textures/textures/jeija_microcontroller_top_0110.png
deleted file mode 100644
index b1b4e11..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0110.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0111.png b/mesecons_textures/textures/jeija_microcontroller_top_0111.png
deleted file mode 100644
index c40544b..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_0111.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1000.png b/mesecons_textures/textures/jeija_microcontroller_top_1000.png
deleted file mode 100644
index 7b3805e..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1000.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1001.png b/mesecons_textures/textures/jeija_microcontroller_top_1001.png
deleted file mode 100644
index 5f36754..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1001.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1010.png b/mesecons_textures/textures/jeija_microcontroller_top_1010.png
deleted file mode 100644
index aac19ab..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1010.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1011.png b/mesecons_textures/textures/jeija_microcontroller_top_1011.png
deleted file mode 100644
index 6f15fe1..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1011.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1100.png b/mesecons_textures/textures/jeija_microcontroller_top_1100.png
deleted file mode 100644
index dde148b..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1100.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1101.png b/mesecons_textures/textures/jeija_microcontroller_top_1101.png
deleted file mode 100644
index 10f07ba..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1101.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1110.png b/mesecons_textures/textures/jeija_microcontroller_top_1110.png
deleted file mode 100644
index bf45b69..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1110.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1111.png b/mesecons_textures/textures/jeija_microcontroller_top_1111.png
deleted file mode 100644
index b864c51..0000000
--- a/mesecons_textures/textures/jeija_microcontroller_top_1111.png
+++ /dev/null
Binary files differ