summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKotolegokot <gkotolegokot@gmail.com>2012-08-01 21:27:50 +0600
committerKotolegokot <gkotolegokot@gmail.com>2012-08-01 21:30:30 +0600
commita0417d3ad323a99a67773909b14556dd22a8f584 (patch)
tree621eee28ca4d1c2d11243e9c6b5e8735461c824d
parent20d1b9dd524931204e8a69eefaf60a534247acf9 (diff)
downloadmesecons-a0417d3ad323a99a67773909b14556dd22a8f584.tar
mesecons-a0417d3ad323a99a67773909b14556dd22a8f584.tar.gz
mesecons-a0417d3ad323a99a67773909b14556dd22a8f584.tar.bz2
mesecons-a0417d3ad323a99a67773909b14556dd22a8f584.tar.xz
mesecons-a0417d3ad323a99a67773909b14556dd22a8f584.zip
Mesecon Torch
-rw-r--r--mesecons_textures/textures/jeija_torches_off.pngbin214 -> 219 bytes
-rw-r--r--mesecons_textures/textures/jeija_torches_off_ceiling.pngbin216 -> 220 bytes
-rw-r--r--mesecons_textures/textures/jeija_torches_off_side.pngbin202 -> 206 bytes
-rw-r--r--mesecons_textures/textures/jeija_torches_on.pngbin207 -> 210 bytes
-rw-r--r--mesecons_textures/textures/jeija_torches_on_ceiling.pngbin217 -> 220 bytes
-rw-r--r--mesecons_textures/textures/jeija_torches_on_side.pngbin193 -> 197 bytes
-rw-r--r--mesecons_torch/init.lua16
7 files changed, 14 insertions, 2 deletions
diff --git a/mesecons_textures/textures/jeija_torches_off.png b/mesecons_textures/textures/jeija_torches_off.png
index fe01bfb..537920c 100644
--- a/mesecons_textures/textures/jeija_torches_off.png
+++ b/mesecons_textures/textures/jeija_torches_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_torches_off_ceiling.png b/mesecons_textures/textures/jeija_torches_off_ceiling.png
index f143b01..3934e6e 100644
--- a/mesecons_textures/textures/jeija_torches_off_ceiling.png
+++ b/mesecons_textures/textures/jeija_torches_off_ceiling.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_torches_off_side.png b/mesecons_textures/textures/jeija_torches_off_side.png
index 8d20e56..ecb2951 100644
--- a/mesecons_textures/textures/jeija_torches_off_side.png
+++ b/mesecons_textures/textures/jeija_torches_off_side.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_torches_on.png b/mesecons_textures/textures/jeija_torches_on.png
index b4c1797..a93dcc2 100644
--- a/mesecons_textures/textures/jeija_torches_on.png
+++ b/mesecons_textures/textures/jeija_torches_on.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_torches_on_ceiling.png b/mesecons_textures/textures/jeija_torches_on_ceiling.png
index efe0400..24fe201 100644
--- a/mesecons_textures/textures/jeija_torches_on_ceiling.png
+++ b/mesecons_textures/textures/jeija_torches_on_ceiling.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_torches_on_side.png b/mesecons_textures/textures/jeija_torches_on_side.png
index 1f20ac7..fe7dfd2 100644
--- a/mesecons_textures/textures/jeija_torches_on_side.png
+++ b/mesecons_textures/textures/jeija_torches_on_side.png
Binary files differ
diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua
index 9e03233..e9b9931 100644
--- a/mesecons_torch/init.lua
+++ b/mesecons_torch/init.lua
@@ -15,8 +15,14 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", {
paramtype = "light",
walkable = false,
paramtype2 = "wallmounted",
+ selection_box = {
+ type = "wallmounted",
+ wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
+ wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
+ wall_side = {-0.5, -0.1, -0.1, -0.5+0.6, 0.1, 0.1},
+ },
legacy_wallmounted = true,
- groups = {dig_immediate=2},
+ groups = {dig_immediate=3,not_in_creative_inventory=1},
drop = '"mesecons_torch:mesecon_torch_on" 1',
description="Mesecon Torch",
})
@@ -30,8 +36,14 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
sunlight_propagates = true,
walkable = false,
paramtype2 = "wallmounted",
+ selection_box = {
+ type = "wallmounted",
+ wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
+ wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
+ wall_side = {-0.5, -0.1, -0.1, -0.5+0.6, 0.1, 0.1},
+ },
legacy_wallmounted = true,
- groups = {dig_immediate=2,not_in_creative_inventory=1},
+ groups = {dig_immediate=3},
light_source = LIGHT_MAX-5,
description="Mesecon Torch",
after_place_node = function(pos)