Go to file
Marco 8b399892db Fix readme 2020-04-02 18:40:17 +02:00
PUT THESE INSIDE YOUR textures FOLDER Da mod a libreria interna + README esplicativo 2020-04-02 18:38:18 +02:00
LICENSE Fix vari e pulizia 2020-03-31 23:38:31 +02:00
README.md Fix readme 2020-04-02 18:40:17 +02:00
api.lua Da mod a libreria interna + README esplicativo 2020-04-02 18:38:18 +02:00
debug_utilities.lua Spostate funzioni debug da quake 2020-04-02 12:45:50 +02:00
items.lua Da mod a libreria interna + README esplicativo 2020-04-02 18:38:18 +02:00
player_manager.lua Funzione/status on_load + giocatore può entrare a partita avviata + pulizia + codice più performante 2020-04-02 12:47:55 +02:00
signs.lua Da mod a libreria interna + README esplicativo 2020-04-02 18:38:18 +02:00

README.md

Arena_lib

Arena_lib is a library for Minetest working as a core for any minigame 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 arena minigame :*

Config

  1. You DON'T need to create a different folder in your mods path. Instead, create a folder called arena_lib inside your specific mod folder and put all the files of this repo there (mind the textures!).

  2. Add this in your init.lua
    dofile(minetest.get_modpath("quake") .. "/arena_lib/api.lua")

  3. You can customize the lib calling

arena_lib.settings({
  prefix = "[whatever] "
  --other parameters
})

in your init.lua.

For a in-depth understanding of what you can do with the library, have a look at the API document (TODO).

Arena phases

An arena comes in 4 phases:

  • load
  • start
  • celebration
  • end

To add events such as to expand what happens in one of those, there is a function for every arena phase you can easily override: on_load, on_start, on_celebration, on_end.

Dependencies

signs_lib by Vanessa Dannenberg

Known conflicts

Beds or any other mod overriding the default respawn system