summaryrefslogtreecommitdiff
path: root/extranodes/extramesecons.lua
diff options
context:
space:
mode:
authorroot <root@mirzakhani.gpcf.eu>2018-05-15 19:12:18 +0200
committerroot <root@mirzakhani.gpcf.eu>2018-05-15 19:12:18 +0200
commit64b8b8c861ac493e5415a5e65bc64e3b48a72910 (patch)
treec92cf26531064feb23a45da936025e369f11cef9 /extranodes/extramesecons.lua
parentf97fbdc83db182efd984f16cc5a0508bd3fc65f3 (diff)
parent4ca6a5ca8f25bfb3536d1ce942971c3705896785 (diff)
Merge https://github.com/h-v-smacker/technic
Diffstat (limited to 'extranodes/extramesecons.lua')
-rw-r--r--extranodes/extramesecons.lua22
1 files changed, 14 insertions, 8 deletions
diff --git a/extranodes/extramesecons.lua b/extranodes/extramesecons.lua
index 1dd712d..05581c5 100644
--- a/extranodes/extramesecons.lua
+++ b/extranodes/extramesecons.lua
@@ -8,11 +8,11 @@ if minetest.get_modpath("mesecons") then
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
after_place_node = function(pos, placer, itemstack, pointed_thing)
- local meta = minetest:get_meta(pos)
+ local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "")
end,
on_rightclick = function (pos, node, player)
- local meta = minetest:get_meta(pos)
+ local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
local pname = player:get_player_name();
if owner ~= pname then
@@ -28,15 +28,21 @@ if minetest.get_modpath("mesecons") then
end
},{
groups = {dig_immediate=2},
- tiles = { "mesecons_switch_side.png", "mesecons_switch_side.png",
- "mesecons_switch_side.png^default_key.png", "mesecons_switch_side.png^default_key.png",
- "mesecons_switch_side.png", "mesecons_switch_off.png^mesecons_switch_locked_frame.png"},
+ tiles = { "mesecons_switch_side.png",
+ "mesecons_switch_side.png",
+ "mesecons_switch_side.png^default_key.png^[transformR180",
+ "mesecons_switch_side.png^default_key.png^[transformR180FX",
+ "mesecons_switch_side.png",
+ "mesecons_switch_off.png^mesecons_switch_locked_frame.png"},
mesecons = {receptor = { state = mesecon.state.off }}
},{
groups = {dig_immediate=2, not_in_creative_inventory=1},
- tiles = { "mesecons_switch_side.png", "mesecons_switch_side.png",
- "mesecons_switch_side.png^default_key.png", "mesecons_switch_side.png^default_key.png",
- "mesecons_switch_side.png", "mesecons_switch_on.png^mesecons_switch_locked_frame.png"},
+ tiles = { "mesecons_switch_side.png",
+ "mesecons_switch_side.png",
+ "mesecons_switch_side.png^default_key.png^[transformR180",
+ "mesecons_switch_side.png^default_key.png^[transformR180FX",
+ "mesecons_switch_side.png",
+ "mesecons_switch_on.png^mesecons_switch_locked_frame.png"},
mesecons = {receptor = { state = mesecon.state.on }}
})