summaryrefslogtreecommitdiff
path: root/mesecons_random/init.lua
blob: d60b871edfa823168f676e741f3d455765610900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- REMOVE_STONE

minetest.register_node("mesecons_random:removestone", {
	tile_images = {"jeija_removestone.png"},
	inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
	material = minetest.digprop_stonelike(1.0),
	groups = {cracky=3, mesecon_effector_off = 1, mesecon = 2},
	description="Removestone",
})

minetest.register_craft({
	output = '"mesecons_random:removestone" 4',
	recipe = {
		{'', '"default:cobble"',''},
		{'"default:cobble"', '"group:mesecon_conductor_craftable"', '"default:cobble"'},
		{'', '"default:cobble"',''},
	}
})

mesecon:register_on_signal_on(function(pos, node)
	if node.name=="mesecons_random:removestone" then
		minetest.env:remove_node(pos)
	end
end)