Advertisement
Guest User

Untitled

a guest
Aug 28th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. minetest.register_node("looper:looping_node", {
  2. tiles = {"default:cobble"},
  3. groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
  4. sounds = default.node_sound_wood_defaults(),
  5. description="Looper",
  6. active = false,
  7. technic_power_machine=1,
  8. drawtype = "nodebox",
  9. paramtype = "light",
  10. is_ground_content = true,
  11. node_box = {
  12. type = "fixed",
  13. fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
  14. },
  15. selection_box = {
  16. type = "fixed",
  17. fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
  18. },
  19.  
  20. })
  21.  
  22.  
  23. minetest.register_abm(
  24. {nodenames = {"looper:looping_node"},
  25. interval = 1,
  26. chance = 1,
  27. action = function(pos, node, active_object_count, active_object_count_wider)
  28. while true do
  29. print ("looped")
  30. end
  31. end,
  32. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement