GameCore - Minecraft Minigame Core
WARNING: This resource is old and may be outdated, buggy or broken. Use at your own risk.
Visit the homepage.
Get your version of GameCore: downloads.
GameCore is not a standalone! It is for developers to use.
Serverwide game
Manage game
Manage players
Manage teams
Manage kits
Game states
Five gamestates (Lobby, starting, warmup, started, ending)
File Management
Countdowns
More
Here are a couple of examples of what you can do!
Let´s call our example game SuperMinigame.
First off we need to create a new instance of GameCore:
GameCore game = new GameCore();
Now you need to create the Game and set the game´s current state:
public void onEnable() {
game.createGame("SuperMinigame", State.LOBBY);
}
Basically what we did now was setup our basics for creating a game, now we get to the fun part called do it yourself :)
Download JAR-file from GitHub: downloads page.
Version | Name |
---|---|
0.1.3 | GameCore alpha |
0.1.2 | GameCore alpha |
0.1.1 | GameCore alpha |
0.1.0 | GameCore alpha |
0.0.8 | GameCore pre-alpha |
Tutorial on creating a simple game will be coming soon, here are a few examples instead.
Managing your base game
GameCore core = new GameCore() //This should be on top in your main class, and made accessible everywhere needed. core.createGame(String name, State state) //Now we are creating a class of the Game Object. With the name of your game and setting the starting GameState, which usally should be State.LOBBY, but you can go with any of the five game states. core.getGame() //Getting your game object. (Here you have a few setters/getters, such as: getPlayers, getName, getState, setState.
Teams
Team teamName = new Team(String name, ChatColor teamColor) //Creating a new team object with a name and a color. core.getTeamManager() //Using this you will manage all your created teams. (Using: getTeam, addPlayer, removePlayer, removeTeam)
Kits
Kit kitName = new Kit(String name) //Creating a new kit object with a name. core.getKitManager() //Using this you will manage all your created teams. (Using: getKit, addPlayer, removePlayer, removeKit)
Well thats all of my current documentation, got any questions? Message me: mc-market.