minetest-mod-mesecons/mesecons_random/init.lua

25 lines
702 B
Lua
Raw Normal View History

-- 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-12 01:57:00 -07:00
groups = {cracky=3, mesecon_effector_off = 1, mesecon = 2},
2012-08-01 02:58:19 -07:00
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)