mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
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)
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user