Compare commits

...

20 Commits

Author SHA1 Message Date
a58ea2bc33 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:00:06 +02:00
Evergreen
4a294c2f14
Update README.txt 2024-08-17 12:55:46 -05:00
Evergreen
87145f0634
Archive repository, update README.txt 2024-08-17 12:49:20 -05:00
749320358c Merge branch 'crabman77-translate_irc' 2022-07-09 16:13:01 +02:00
8abee494e3 fix typo and translate messages server-side before sending to irc(wrong formated due to translation expression included in message) 2022-07-04 21:47:34 +02:00
4Evergreen4
c7b597995e Update mod.conf, reformat init.lua, and add luacheckrc 2020-07-13 11:41:11 -04:00
4Evergreen4
509c036d94 Cleanup as well as adding screenshot and description 2016-01-14 19:34:10 -05:00
4Evergreen4
1579c47a58 Change drowning detection to player:get_breath() 2014-03-20 10:25:56 -04:00
4Evergreen4
f516e3904e Merge pull request #2 from webdesigner97/master
add support for groups lava and water
2014-03-20 08:44:47 -04:00
webdesigner97
31aff1751a add support for groups lava and water 2014-03-20 12:32:08 +01:00
4Evergreen4
edd059747c Change license to GPL v3 2014-03-19 12:16:52 -04:00
4Evergreen4
24644bbb33 Bump version to 0.1.2 2014-03-19 10:50:44 -04:00
4Evergreen4
7bcdff90d9 Make random messages optional, and add more quips. 2014-03-19 10:48:40 -04:00
4Evergreen4
d2b31a3ffe Add random table of quips, and bump version to 0.1.1 2014-03-18 20:59:44 -04:00
4Evergreen4
02a8670823 Fix formatting in README (OCD much?) 2014-03-17 15:15:12 -04:00
4Evergreen4
327b43428c Clean up code a bit and use variables 2014-03-17 15:10:44 -04:00
4Evergreen4
0c6591fd0f Merge branch 'master' of https://github.com/4Evergreen4/death_messages 2014-03-17 13:52:03 -04:00
4Evergreen4
e78359248e Add depends.txt 2014-03-17 13:51:40 -04:00
4Evergreen4
bb2fe0f677 Fix README.md 2014-03-17 13:25:34 -04:00
4Evergreen4
163661c2b7 Add all files and bump version to 0.1 2014-03-17 13:23:56 -04:00
5 changed files with 18 additions and 3 deletions

0
LICENSE.txt Executable file → Normal file
View File

View File

@ -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
View File

1
description.txt Normal file
View File

@ -0,0 +1 @@
A Minetest mod which sends a chat message when a player dies.

View File

@ -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