


minetest.register_node("holoemitter:holoemitter", {
	description = "Holoemitter",

	tiles = {
		"holoemitter.png"
	},
	drawtype = "glasslike",

	on_construct = function(pos)
		-- inventory
		local meta = minetest.get_meta(pos)
		-- default digiline channel
		meta:set_string("channel", "holoemitter")
		meta:set_int("session", math.random(10000))
	end,

	groups = {
		cracky = 3,
		oddly_breakable_by_hand = 3
	},

	digiline = {
		receptor = {
			rules = holoemitter.digiline_rules,
			action = function() end
		},
		effector = {
			rules = holoemitter.digiline_rules,
			action = holoemitter.digiline_effector
		}
	},
})
