summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_microcontroller/init.lua15
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_sides.pngbin0 -> 663 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0000.pngbin0 -> 1105 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0001.pngbin0 -> 1188 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0010.pngbin0 -> 1172 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0011.pngbin0 -> 1188 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0100.pngbin0 -> 1181 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0101.pngbin0 -> 1203 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0110.pngbin0 -> 1180 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_0111.pngbin0 -> 1194 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1000.pngbin0 -> 1184 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1001.pngbin0 -> 1197 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1010.pngbin0 -> 1186 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1011.pngbin0 -> 1197 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1100.pngbin0 -> 1198 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1101.pngbin0 -> 1210 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1110.pngbin0 -> 1193 bytes
-rw-r--r--mesecons_textures/textures/jeija_microcontroller_top_1111.pngbin0 -> 1200 bytes
18 files changed, 11 insertions, 4 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index 82583ec..e05f983 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -3,8 +3,11 @@ EEPROM_SIZE = 255
minetest.register_node("mesecons_microcontroller:microcontroller", {
description = "Microcontroller",
drawtype = "nodebox",
- tiles = {"jeija_ic.png"},
- inventory_image = {"jeija_ic.png"},
+ tiles = {
+ "jeija_microcontroller_top_0000.png",
+ "jeija_microcontroller_sides.png",
+ },
+ inventory_image = "jeija_microcontroller_top_0000.png",
sunlight_propagates = true,
paramtype = "light",
walkable = true,
@@ -12,11 +15,15 @@ minetest.register_node("mesecons_microcontroller:microcontroller", {
material = minetest.digprop_constanttime(1.0),
selection_box = {
type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ fixed = { -8/16, -8/16, -8/16, 8/16, -4/16, 8/16 },
},
node_box = {
type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ fixed = {
+ { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, -- bottom slab
+ { -5/16, -6/16, -5/16, 5/16, -5/16, 5/16 }, -- circuit board
+ { -3/16, -5/16, -3/16, 3/16, -4/16, 3/16 }, -- IC
+ }
},
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
diff --git a/mesecons_textures/textures/jeija_microcontroller_sides.png b/mesecons_textures/textures/jeija_microcontroller_sides.png
new file mode 100644
index 0000000..8561567
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_sides.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0000.png b/mesecons_textures/textures/jeija_microcontroller_top_0000.png
new file mode 100644
index 0000000..79d43d1
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0000.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0001.png b/mesecons_textures/textures/jeija_microcontroller_top_0001.png
new file mode 100644
index 0000000..db24d65
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0001.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0010.png b/mesecons_textures/textures/jeija_microcontroller_top_0010.png
new file mode 100644
index 0000000..5f39d10
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0010.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0011.png b/mesecons_textures/textures/jeija_microcontroller_top_0011.png
new file mode 100644
index 0000000..f350e51
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0011.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0100.png b/mesecons_textures/textures/jeija_microcontroller_top_0100.png
new file mode 100644
index 0000000..d4f4fc9
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0100.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0101.png b/mesecons_textures/textures/jeija_microcontroller_top_0101.png
new file mode 100644
index 0000000..ddd59c5
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0101.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0110.png b/mesecons_textures/textures/jeija_microcontroller_top_0110.png
new file mode 100644
index 0000000..fdee436
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0110.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_0111.png b/mesecons_textures/textures/jeija_microcontroller_top_0111.png
new file mode 100644
index 0000000..e3e1aa4
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_0111.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1000.png b/mesecons_textures/textures/jeija_microcontroller_top_1000.png
new file mode 100644
index 0000000..ae33424
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1000.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1001.png b/mesecons_textures/textures/jeija_microcontroller_top_1001.png
new file mode 100644
index 0000000..8a94d5d
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1001.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1010.png b/mesecons_textures/textures/jeija_microcontroller_top_1010.png
new file mode 100644
index 0000000..bb6900b
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1010.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1011.png b/mesecons_textures/textures/jeija_microcontroller_top_1011.png
new file mode 100644
index 0000000..17c75ae
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1011.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1100.png b/mesecons_textures/textures/jeija_microcontroller_top_1100.png
new file mode 100644
index 0000000..0f60a7c
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1100.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1101.png b/mesecons_textures/textures/jeija_microcontroller_top_1101.png
new file mode 100644
index 0000000..e8ee229
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1101.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1110.png b/mesecons_textures/textures/jeija_microcontroller_top_1110.png
new file mode 100644
index 0000000..2aee4e6
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1110.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_microcontroller_top_1111.png b/mesecons_textures/textures/jeija_microcontroller_top_1111.png
new file mode 100644
index 0000000..18bd213
--- /dev/null
+++ b/mesecons_textures/textures/jeija_microcontroller_top_1111.png
Binary files differ