summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-06-21 16:38:48 +0200
committerJeija <norrepli@gmail.com>2012-06-21 16:38:48 +0200
commit3a6b099ae1793c28c724061ba29879e1c9f277d8 (patch)
treea03e82c1ce8fd592c227fa3c2c603ad07a1a09ee
parent1712523772ebc0e75eed7087d720276df9fed9de (diff)
downloadmesecons-3a6b099ae1793c28c724061ba29879e1c9f277d8.tar
mesecons-3a6b099ae1793c28c724061ba29879e1c9f277d8.tar.gz
mesecons-3a6b099ae1793c28c724061ba29879e1c9f277d8.tar.bz2
mesecons-3a6b099ae1793c28c724061ba29879e1c9f277d8.tar.xz
mesecons-3a6b099ae1793c28c724061ba29879e1c9f277d8.zip
Replace old wall button with a fancy new 3d button
-rw-r--r--mesecons_button/init.lua26
-rw-r--r--mesecons_textures/textures/jeija_wall_button_off.pngbin411 -> 349 bytes
-rw-r--r--mesecons_textures/textures/jeija_wall_button_on.pngbin449 -> 563 bytes
3 files changed, 18 insertions, 8 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua
index 69f9777..7d7ec93 100644
--- a/mesecons_button/init.lua
+++ b/mesecons_button/init.lua
@@ -1,27 +1,37 @@
-- WALL BUTTON
minetest.register_node("mesecons_button:button_off", {
- drawtype = "signlike",
+ drawtype = "nodebox",
tile_images = {"jeija_wall_button_off.png"},
paramtype = "light",
- paramtype2 = "wallmounted",
+ paramtype2 = "facedir",
legacy_wallmounted = true,
walkable = false,
selection_box = {
- type = "wallmounted",
+ type = "fixed",
+ fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5},
},
groups = {dig_immediate=2},
description = "Button",
})
minetest.register_node("mesecons_button:button_on", {
- drawtype = "signlike",
+ drawtype = "nodebox",
tile_images = {"jeija_wall_button_on.png"},
paramtype = "light",
- paramtype2 = "wallmounted",
+ paramtype2 = "facedir",
legacy_wallmounted = true,
walkable = false,
- selection_box = {
- type = "wallmounted",
- },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5},
+ },
groups = {dig_immediate=2},
drop = 'mesecons_button:button_off',
description = "Button",
diff --git a/mesecons_textures/textures/jeija_wall_button_off.png b/mesecons_textures/textures/jeija_wall_button_off.png
index f755a34..fadf3f3 100644
--- a/mesecons_textures/textures/jeija_wall_button_off.png
+++ b/mesecons_textures/textures/jeija_wall_button_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_wall_button_on.png b/mesecons_textures/textures/jeija_wall_button_on.png
index 0600c27..5d5f822 100644
--- a/mesecons_textures/textures/jeija_wall_button_on.png
+++ b/mesecons_textures/textures/jeija_wall_button_on.png
Binary files differ