Add forcefields, and start building the map.

This commit is contained in:
Signal 2025-11-20 03:15:30 -05:00
parent 5fd67703c0
commit dd73665a23
19 changed files with 511 additions and 15 deletions

View file

@ -3,6 +3,12 @@ local ns = artifact
local hud_pop_times = {}
function ns.push_chat_message(msg, sender, splash, duration)
-- Special handling for the character names (and if sent by a player, colorize based on character).
if sender == "Key" or artifact.players[sender] and artifact.players[sender].character == "key" then
sender = minetest.colorize("#284", sender)
elseif sender == "Vix" or artifact.players[sender] and artifact.players[sender].character == "vix" then
sender = minetest.colorize("#f5dd66", sender)
end
for name, m in pairs(artifact.players) do
local box = {}
local w = minetest.get_player_window_information(name).size.x
@ -146,4 +152,9 @@ if artifact.debug then
end
})
minetest.register_chatcommand("color", {
func = function(name, args)
ns.push_chat_message(minetest.colorize(args, "This is a colored message"), "Server")
end
})
end