forked from nalc/death_messages
Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
a58ea2bc33 | |||
|
4a294c2f14 | ||
|
87145f0634 | ||
749320358c | |||
8abee494e3 | |||
|
c7b597995e | ||
|
509c036d94 | ||
|
1579c47a58 | ||
|
f516e3904e | ||
|
31aff1751a | ||
|
edd059747c | ||
|
24644bbb33 | ||
|
7bcdff90d9 | ||
|
d2b31a3ffe | ||
|
02a8670823 | ||
|
327b43428c | ||
|
0c6591fd0f | ||
|
e78359248e | ||
|
bb2fe0f677 | ||
|
163661c2b7 |
0
LICENSE.txt
Executable file → Normal file
0
LICENSE.txt
Executable file → Normal file
10
README.txt
10
README.txt
@ -1,3 +1,13 @@
|
||||
As of 2024-08-17, this mod will probably not be updated by me as I lost interest
|
||||
in Minetest a long time ago and probably will not be coming back.
|
||||
|
||||
If you do want to make any changes, here was my list of TODO items that I never got around to:
|
||||
- Update meta stuff (readme, version, mod.conf, etc.)
|
||||
- Change settings file to not use do_file and add options for custom messages (with placement of player name(s) anywhere in the message)
|
||||
- Add some kind of translation support (may be covered by custom messages)
|
||||
- Use the new API features to poperly detect types of death that weren't feasible before
|
||||
- Make a small API for registering custom messages for other mods (see dying by corium in technic)
|
||||
|
||||
____ _ _ __ __
|
||||
| _ \ ___ __ _| |_| |__ | \/ | ___ ___ ___ __ _ __ _ ___ ___
|
||||
| | | |/ _ \/ _` | __| '_ \ | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __|
|
||||
|
0
depends.txt
Normal file
0
depends.txt
Normal file
1
description.txt
Normal file
1
description.txt
Normal file
@ -0,0 +1 @@
|
||||
A Minetest mod which sends a chat message when a player dies.
|
10
init.lua
10
init.lua
@ -42,6 +42,9 @@ local sounds = {
|
||||
-- Translation wrapper
|
||||
local S = minetest.get_translator(mname)
|
||||
|
||||
-- To translate server-side in server language for irc
|
||||
local lang = minetest.settings:get("language") or "fr"
|
||||
|
||||
-- Lava death messages
|
||||
messages.lava = {
|
||||
"@1 thought lava was cool.",
|
||||
@ -110,7 +113,7 @@ messages.other = {
|
||||
"@1 died.",
|
||||
"@1 left this world.",
|
||||
"@1 reached miner's heaven.",
|
||||
"@1 lost him/her life.",
|
||||
"@1 lost his/her life.",
|
||||
"@1 saw the light.",
|
||||
"@1 fell from a bit too high.",
|
||||
"@1 slipped on a banana skin.",
|
||||
@ -141,7 +144,7 @@ messages.whacking = {
|
||||
|
||||
messages.monsters_whacking = {
|
||||
"@1 got whacked by a @2.",
|
||||
"Darwin said : @1 was less adapted than a @2.",
|
||||
"Darwin said: @1 was less adapted than a @2.",
|
||||
"@1 was transformed into a doormat by a @2.",
|
||||
"@1 thought (s)he was stronger than a @2.",
|
||||
"@1 got kicked up by a @2. Next up...",
|
||||
@ -208,7 +211,8 @@ local function broadcast_death(msg)
|
||||
logfilep:write(os.date("[%Y-%m-%d %H:%M:%S] ") .. msg .. "\n")
|
||||
logfilep:close()
|
||||
if irc then
|
||||
irc.say(msg)
|
||||
local tr_msg = minetest.get_translated_string(lang, msg)
|
||||
irc.say(tr_msg)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user