3 Mods hinzugefügt, Fehlende Nahrungspunkteangaben im Inventar ergänzt, falsche Nahrungspunkte berichtigt
This commit is contained in:
parent
763ba03e6c
commit
23dda4593a
151 changed files with 6445 additions and 109 deletions
21
mods/death_coords/LICENSE
Normal file
21
mods/death_coords/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 Niden
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
18
mods/death_coords/README.md
Normal file
18
mods/death_coords/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# DCM
|
||||
Show Death Coordinates
|
||||
|
||||
Installation:
|
||||
```Minetest/mods/death_coords```
|
||||
|
||||
Chat
|
||||
|
||||

|
||||
|
||||
|
||||
# Niden
|
||||
|
||||
Discord: Niden#7063
|
||||
|
||||
Licence: MIT Licence
|
||||
|
||||
https://github.com/Niden1
|
1
mods/death_coords/depends.txt
Normal file
1
mods/death_coords/depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
default
|
66
mods/death_coords/init.lua
Normal file
66
mods/death_coords/init.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
activate = true
|
||||
|
||||
minetest.register_chatcommand(
|
||||
"death",
|
||||
{
|
||||
description = "Enable or disable death coordinates",
|
||||
params = "<true> | <false>",
|
||||
privs = {ban = true},
|
||||
func = function(name, param)
|
||||
if param == "true" then
|
||||
activate = true
|
||||
minetest.chat_send_all(minetest.colorize("#00FF00", "*** [Server]: Death coordinates are enabled!"))
|
||||
|
||||
music =
|
||||
minetest.sound_play(
|
||||
"notify",
|
||||
{
|
||||
loop = false,
|
||||
gain = 1.0
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
if param == "false" then
|
||||
activate = false
|
||||
|
||||
minetest.chat_send_all(minetest.colorize("#FF0000", "*** [Server]: Death coordinates are disabled!"))
|
||||
|
||||
music =
|
||||
minetest.sound_play(
|
||||
"notify",
|
||||
{
|
||||
loop = false,
|
||||
gain = 1.0
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
minetest.register_on_dieplayer(
|
||||
function(player)
|
||||
if activate == true then
|
||||
local pname = player:get_player_name()
|
||||
local pos = player:getpos()
|
||||
pos.x = math.floor(pos.x)
|
||||
pos.y = math.floor(pos.y)
|
||||
pos.z = math.floor(pos.z)
|
||||
minetest.chat_send_player(
|
||||
pname,
|
||||
core.get_color_escape_sequence("#FF0000") ..
|
||||
"*** [Server] - Last Dead At: " .. pos.x .. ", " .. pos.y .. ", " .. pos.z
|
||||
)
|
||||
|
||||
music =
|
||||
minetest.sound_play(
|
||||
"die",
|
||||
{
|
||||
loop = false,
|
||||
gain = 1.0
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
)
|
5
mods/death_coords/mod.conf
Normal file
5
mods/death_coords/mod.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
name = death_coords
|
||||
author = Niden
|
||||
description = Shows a message with the coordinates of the last death.
|
||||
title = death_coords
|
||||
release = 14333
|
BIN
mods/death_coords/screenshot.png
Normal file
BIN
mods/death_coords/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/death_coords/sounds/die.ogg
Normal file
BIN
mods/death_coords/sounds/die.ogg
Normal file
Binary file not shown.
BIN
mods/death_coords/sounds/notify.ogg
Normal file
BIN
mods/death_coords/sounds/notify.ogg
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue