2012-03-05 10:21:26 -08:00
|
|
|
-- 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),
|
2012-08-13 11:17:45 -07:00
|
|
|
groups = {cracky=3, mesecon = 2},
|
2012-08-01 02:58:19 -07:00
|
|
|
description="Removestone",
|
2012-03-05 10:21:26 -08:00
|
|
|
})
|
|
|
|
|
2012-08-13 11:17:45 -07:00
|
|
|
mesecon:register_effector(nil, "mesecons_random:removestone")
|
|
|
|
|
2012-03-05 10:21:26 -08:00
|
|
|
minetest.register_craft({
|
|
|
|
output = '"mesecons_random:removestone" 4',
|
|
|
|
recipe = {
|
|
|
|
{'', '"default:cobble"',''},
|
2012-08-11 17:53:47 -07:00
|
|
|
{'"default:cobble"', '"group:mesecon_conductor_craftable"', '"default:cobble"'},
|
2012-03-05 10:21:26 -08:00
|
|
|
{'', '"default:cobble"',''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
mesecon:register_on_signal_on(function(pos, node)
|
|
|
|
if node.name=="mesecons_random:removestone" then
|
|
|
|
minetest.env:remove_node(pos)
|
|
|
|
end
|
|
|
|
end)
|