entity.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. local entity = {
  2. initial_properties = {
  3. visual = "mesh",
  4. mesh = "lagwing_main.b3d",
  5. visual_size = {x=1, y=1},
  6. collisionbox = {-1, -1, -1, 1, 1, 1},
  7. physical = true,
  8. textures = {"lagwing_main.png"},
  9. is_visible = true,
  10. static_save = true,
  11. },
  12. on_activate = function(...)
  13. return lagwing.on_activate(...)
  14. end,
  15. on_deactivate = function(...)
  16. return lagwing.on_deactivate(...)
  17. end,
  18. on_punch = function(...)
  19. return lagwing.on_punch(...)
  20. end,
  21. on_death = function(...)
  22. return lagwing.on_death(...)
  23. end,
  24. on_rightclick = function(...)
  25. return lagwing.on_rightclick(...)
  26. end,
  27. get_staticdata = function(...)
  28. return lagwing.get_staticdata(...)
  29. end,
  30. on_blast = function(...)
  31. return lagwing.on_blast(...)
  32. end,
  33. on_step = function(...)
  34. return lagwing.on_step(...)
  35. end,
  36. on_attach_child = function(...)
  37. return lagwing.on_attach_child(...)
  38. end,
  39. on_detach_child = function(...)
  40. return lagwing.on_detach_child(...)
  41. end,
  42. on_detach = function(...)
  43. return lagwing.on_detach(...)
  44. end,
  45. }
  46. minetest.register_entity("lagwing:entity", entity)