From b0e45d401257e6cf79ff648d21ea7309fb11f44c Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 18 Jun 2020 11:26:03 +0200 Subject: [PATCH] add mesecons interface to world anchor --- technic/machines/other/anchor.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/technic/machines/other/anchor.lua b/technic/machines/other/anchor.lua index 1c15bd2..96ed2a6 100644 --- a/technic/machines/other/anchor.lua +++ b/technic/machines/other/anchor.lua @@ -106,4 +106,16 @@ minetest.register_node("technic:admin_anchor", { end set_display(pos, meta) end, + mesecons = { + effector = { + action_on = function(pos) + local meta = minetest.get_meta(pos) + forceload_on(pos, meta) + end, + action_off = function(pos) + local meta = minetest.get_meta(pos) + forceload_off(pos, meta) + end + } + } })