mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-12 07:58:32 +02:00
25 lines
650 B
Lua
25 lines
650 B
Lua
-- 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},
|
|
description="Removestone",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = '"mesecons_random:removestone" 4',
|
|
recipe = {
|
|
{'', '"default:cobble"',''},
|
|
{'"default:cobble"', '"mesecons:mesecon_off"', '"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)
|