init.lua 780 B

123456789101112131415161718192021222324
  1. -- deathmsg
  2. -- jadedctrl; GPLv3+
  3. minetest.register_on_dieplayer(function(player)
  4. messages = { "~ has had life torn violently from their grasp.",
  5. "~ swore on their life… too bad it was a bluff.",
  6. "~ was killed by the invisible hand.",
  7. "I guess ~ couldn't take the heat.",
  8. "~ wasn't a supporter of social Darwinsim, obviously.",
  9. "~ wasn't worthy anyway.",
  10. "Oh, hey, side-note: ~'s a bit in the ground.",
  11. "~'s ghost wants to have a word with you.",
  12. "God hate ~'s guts.",
  13. "Don't be upset, but ~'s malfunctioned.",
  14. "~ is broken, but their lifetime warranty doesn't cover death." }
  15. messageno = math.random(1, table.getn(messages))
  16. message = messages[messageno]
  17. message = message:gsub("~", player:get_player_name())
  18. minetest.chat_send_all(message)
  19. end)