water.lua 772 B

1234567891011121314151617181920212223
  1. -- Basically just a copy of regular water, with damage_per_second.
  2. local sdef = table.copy(minetest.registered_nodes["default:water_source"])
  3. local fdef = table.copy(minetest.registered_nodes["default:water_flowing"])
  4. sdef.damage_per_second = 1*500
  5. fdef.damage_per_second = 1*500
  6. sdef._damage_per_second_type = "fleshy"
  7. fdef._damage_per_second_type = "fleshy"
  8. sdef._death_message = "The piranha got <player>."
  9. fdef._death_message = "The piranha got <player>."
  10. sdef.liquid_alternative_flowing = "cw:water_flowing"
  11. sdef.liquid_alternative_source = "cw:water_source"
  12. fdef.liquid_alternative_flowing = "cw:water_flowing"
  13. fdef.liquid_alternative_source = "cw:water_source"
  14. minetest.register_node("cw:water_source", sdef)
  15. minetest.register_node("cw:water_flowing", fdef)