nodes.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. minetest.register_node("sumo:player_killer_air", {
  2. description = "Sumo Arena Player Killer Air",
  3. drawtype = "airlike",
  4. paramtype = "light",
  5. sunlight_propagates = true,
  6. walkable = false,
  7. pointable = true,
  8. diggable = true,
  9. buildable_to = false,
  10. drop = "",
  11. damage_per_second = 40,
  12. groups = {oddly_breakable_by_hand = 1},
  13. })
  14. minetest.register_node("sumo:fullclip", {
  15. description = "Player Blocker (sumo)",
  16. drawtype = "airlike",
  17. paramtype = "light",
  18. sunlight_propagates = true,
  19. walkable = true,
  20. pointable = true,
  21. diggable = false,
  22. buildable_to = false,
  23. drop = "",
  24. damage_per_second = 40,
  25. groups = {},
  26. })
  27. minetest.register_node("sumo:player_killer_water_source", {
  28. description = "Sumo Arena Player Killer Water Source",
  29. drawtype = "liquid",
  30. waving = 3,
  31. tiles = {
  32. {
  33. name = "default_water_source_animated.png",
  34. backface_culling = false,
  35. animation = {
  36. type = "vertical_frames",
  37. aspect_w = 16,
  38. aspect_h = 16,
  39. length = 2.0,
  40. },
  41. },
  42. {
  43. name = "default_water_source_animated.png",
  44. backface_culling = true,
  45. animation = {
  46. type = "vertical_frames",
  47. aspect_w = 16,
  48. aspect_h = 16,
  49. length = 2.0,
  50. },
  51. },
  52. },
  53. damage_per_second = 40,
  54. alpha = 191,
  55. paramtype = "light",
  56. walkable = false,
  57. pointable = false,
  58. diggable = false,
  59. buildable_to = true,
  60. is_ground_content = false,
  61. drop = "",
  62. drowning = 1,
  63. liquidtype = "source",
  64. liquid_alternative_flowing = "sumo:player_killer_water_flowing",
  65. liquid_alternative_source = "sumo:player_killer_water_source",
  66. liquid_viscosity = 1,
  67. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  68. groups = {water = 3, liquid = 3, cools_lava = 1},
  69. sounds = default.node_sound_water_defaults(),
  70. })
  71. minetest.register_node("sumo:player_killer_water_flowing", {
  72. description = "Sumo Arena Player Killer Water Flowing",
  73. drawtype = "flowingliquid",
  74. waving = 3,
  75. tiles = {"default_water.png"},
  76. special_tiles = {
  77. {
  78. name = "default_water_flowing_animated.png",
  79. backface_culling = false,
  80. animation = {
  81. type = "vertical_frames",
  82. aspect_w = 16,
  83. aspect_h = 16,
  84. length = 0.5,
  85. },
  86. },
  87. {
  88. name = "default_water_flowing_animated.png",
  89. backface_culling = true,
  90. animation = {
  91. type = "vertical_frames",
  92. aspect_w = 16,
  93. aspect_h = 16,
  94. length = 0.5,
  95. },
  96. },
  97. },
  98. damage_per_second = 200,
  99. alpha = 191,
  100. paramtype = "light",
  101. walkable = false,
  102. pointable = false,
  103. diggable = false,
  104. buildable_to = true,
  105. is_ground_content = false,
  106. drop = "",
  107. drowning = 1,
  108. liquidtype = "flowing",
  109. liquid_alternative_flowing = "sumo:player_killer_water_flowing",
  110. liquid_alternative_source = "sumo:player_killer_water_source",
  111. liquid_viscosity = 1,
  112. post_effect_color = {a = 103, r = 30, g = 60, b = 90},
  113. groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
  114. cools_lava = 1},
  115. sounds = default.node_sound_water_defaults(),
  116. })