Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("looper:looping_node", {
- tiles = {"default:stone"},
- groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
- sounds = default.node_sound_wood_defaults(),
- description="Looper",
- active = false,
- technic_power_machine=1,
- paramtype = "light",
- is_ground_content = true,
- })
- minetest.register_abm(
- {nodenames = {"looper:looping_node"},
- interval = 1,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- do
- print ("looped")
- while true
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement