diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-08-09 04:13:05 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-08-09 04:13:05 -0400 |
commit | 2e99d234c99b64de215db255f84c7ab31ef0d753 (patch) | |
tree | 6df6c1625bd2039495d031e3b0843dafbcf40d22 /mesecons_microcontroller/init.lua | |
parent | 331ae1a13cf4c4bde52800752e6d60e8ef55f4e0 (diff) | |
download | mesecons-2e99d234c99b64de215db255f84c7ab31ef0d753.tar mesecons-2e99d234c99b64de215db255f84c7ab31ef0d753.tar.gz mesecons-2e99d234c99b64de215db255f84c7ab31ef0d753.tar.bz2 mesecons-2e99d234c99b64de215db255f84c7ab31ef0d753.tar.xz mesecons-2e99d234c99b64de215db255f84c7ab31ef0d753.zip |
new textures and nodeboxes for mesecons microcontroller
Diffstat (limited to 'mesecons_microcontroller/init.lua')
-rw-r--r-- | mesecons_microcontroller/init.lua | 15 |
1 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) |