diff options
author | Jeija <norrepli@gmail.com> | 2012-08-13 20:17:45 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-08-13 20:17:45 +0200 |
commit | 00ce2540c22340ed02135d74c6d70a35757e8deb (patch) | |
tree | 24f5ee80cf20e3eb2a9a303a52ead63ff685fecd /mesecons_random/init.lua | |
parent | 24c50571f788a2d946ee905dd295124affc88d8b (diff) |
New effector system, effectors have to be registered with mesecon:register_effector(onstate, offstate, rules, function get_rules) rules and function get_rules are optional. You don't have to specify both onstate and offstate (required for e.g. removestone)
Diffstat (limited to 'mesecons_random/init.lua')
-rw-r--r-- | mesecons_random/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index d60b871..fe29bea 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -4,10 +4,12 @@ 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, mesecon_effector_off = 1, mesecon = 2}, + groups = {cracky=3, mesecon = 2}, description="Removestone", }) +mesecon:register_effector(nil, "mesecons_random:removestone") + minetest.register_craft({ output = '"mesecons_random:removestone" 4', recipe = { |