diff options
author | Jeija <norrepli@googlemail.com> | 2012-08-01 11:46:59 -0700 |
---|---|---|
committer | Jeija <norrepli@googlemail.com> | 2012-08-01 11:46:59 -0700 |
commit | 80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb (patch) | |
tree | 4ae27ea425d4b88db70a62f727522141803e0ff5 /mesecons_torch | |
parent | 150da24db6947306ae09340bb80249f922a84af8 (diff) | |
parent | 9f493e8cb723137b7f42c501ba640d128d208fe4 (diff) | |
download | mesecons-80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb.tar mesecons-80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb.tar.gz mesecons-80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb.tar.bz2 mesecons-80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb.tar.xz mesecons-80b2da6c85a05ad23f5e3a07f1c664c6609a9ceb.zip |
Merge pull request #7 from Kotolegokot/master
Torch selection box and lamp node box
Diffstat (limited to 'mesecons_torch')
-rw-r--r-- | mesecons_torch/init.lua | 16 |
1 files changed, 14 insertions, 2 deletions
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) |