Arena_lib is a library for Minetest working as a core for any arena mini-game you have in mind.
It comes with an arena manager and a signs system. The latter creates a bridge inside your own server between the hub and your actual mod (deathmatch, capture the flag, assault, you name it). In other words, you don't have to do the boring job and you can focus exclusively on your minigame.
Example of how to implement arena_lib
Code: Select all
arena_lib.register_minigame("Call of Zughy", {
prefix = "[CoZ] ",
hub_spawn_point = { x = 5, y = 10, z = 4 },
teams = {
"red",
"blue"
},
teams_color_overlay = {
"crimson",
"blue"
},
disabled_damage_types = {
"fall"
},
queue_waiting_time = 20,
show_minimap = true,
properties = {
planting_locations = {{x=30, y=20, z=40}, {x=5, y=20, z=80}}, --you can override these parameters via your mod, of course
},
temp_properties = {
kill_leader = " ",
is_bomb_planted = false
},
player_properties = {
killstreak = 0,
has_bomb = false
},
team_properties = {
rounds_won = 0
}
})
Read the full documentation: https://gitlab.com/zughy-friends-minete ... er/DOCS.md
License: GPL 3
Mod dependencies: default, signs_lib, (optional) hub manager
Known conflicts: anything overriding the default respawn behaviour, such as Beds
Download: https://gitlab.com/zughy-friends-minete ... v4.1.0.zip
ContentDB: https://content.minetest.net/packages/Zughy/arena_lib/
GitLab: https://gitlab.com/zughy-friends-minetest/arena_lib
Issue Tracker: https://gitlab.com/zughy-friends-minete ... b/-/issues
A few mods using arena_lib
Murder by Giov4
Skywars by Giov4