ifminetest.get_node(p).name=="basic_machines:distributor"then-- attempt to activate distributor at special grid location: coordinates of the form 10+20*i
localmeta=minetest.get_meta(p);
ifmeta:get_int("active1")==0then-- first output is disabled, indicating ready to be used as event handler
ifminetest.get_node(p).name=="basic_machines:distributor"then-- attempt to activate distributor at special grid location: coordinates of the form 10+20*i
localmeta=minetest.get_meta(p);
ifmeta:get_int("active1")==0then-- first output is disabled, indicating ready to be used as event handler
localy1=meta:get_int("y1");
ify1~=0then-- chat event, positive relays message, negative drops it
meta:set_string("infotext",message);-- record diggers message