diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-10-27 15:13:31 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-10-27 15:13:31 -0400 |
commit | 6281dc744dc3951234931a9f44c3bdd353f79df7 (patch) | |
tree | 0ead0d0d18be58bed7480cb9a5ea1495230c568f /mesecons_random | |
parent | 2e6082ccdbd121cd5fc0f82a931ac01ac00dcb76 (diff) | |
download | dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.gz dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.bz2 dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.xz dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.zip |
updated boost cart, homedecor modpack, castles modpack, currency, farming-redo,
maptools, mesecons, moreblocks, moreores, pipeworks, quartz
Diffstat (limited to 'mesecons_random')
-rw-r--r-- | mesecons_random/init.lua | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 5a6ef24..397a995 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -10,8 +10,10 @@ minetest.register_node("mesecons_random:removestone", { action_on = function (pos, node) minetest.remove_node(pos) mesecon.on_dignode(pos, node) + minetest.check_for_falling(vector.add(pos, vector.new(0, 1, 0))) end - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_craft({ @@ -34,16 +36,10 @@ minetest.register_node("mesecons_random:ghoststone", { sounds = default.node_sound_stone_defaults(), mesecons = {conductor = { state = mesecon.state.off, - rules = { --axes - {x = -1, y = 0, z = 0}, - {x = 1, y = 0, z = 0}, - {x = 0, y = -1, z = 0}, - {x = 0, y = 1, z = 0}, - {x = 0, y = 0, z = -1}, - {x = 0, y = 0, z = 1}, - }, + rules = mesecon.rules.alldirs, onstate = "mesecons_random:ghoststone_active" - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_node("mesecons_random:ghoststone_active", { @@ -56,14 +52,7 @@ minetest.register_node("mesecons_random:ghoststone_active", { drop = "mesecons_random:ghoststone", mesecons = {conductor = { state = mesecon.state.on, - rules = { - {x = -1, y = 0, z = 0}, - {x = 1, y = 0, z = 0}, - {x = 0, y = -1, z = 0}, - {x = 0, y = 1, z = 0}, - {x = 0, y = 0, z = -1}, - {x = 0, y = 0, z = 1}, - }, + rules = mesecon.rules.alldirs, offstate = "mesecons_random:ghoststone" }}, on_construct = function(pos) @@ -72,7 +61,8 @@ minetest.register_node("mesecons_random:ghoststone_active", { if (minetest.get_node(shadowpos).name == "air") then minetest.dig_node(shadowpos) end - end + end, + on_blast = mesecon.on_blastnode, }) |