mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
Upload after major code reorganization - Version 0.6 DEV - Split mesecons mod into several modules - [BUGGY?]
This commit is contained in:
2
mesecons_random/depends.txt
Normal file
2
mesecons_random/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
mesecons
|
||||
experimental
|
33
mesecons_random/init.lua
Normal file
33
mesecons_random/init.lua
Normal file
@ -0,0 +1,33 @@
|
||||
--Launch TNT
|
||||
|
||||
mesecon:register_on_signal_on(function(pos, node)
|
||||
if node.name=="experimental:tnt" then
|
||||
minetest.env:remove_node(pos)
|
||||
minetest.env:add_entity(pos, "experimental:tnt")
|
||||
nodeupdate(pos)
|
||||
end
|
||||
end)
|
||||
|
||||
-- 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),
|
||||
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)
|
Reference in New Issue
Block a user