Skip to content

Introduction

Martin Eisengardt edited this page Jul 23, 2016 · 3 revisions

----- (wiki is still under construction) ----- (original wiki)

I created the MinigamesAPI because it got boring to copy about 900 lines of code of my current arena system into each new project and alter it to my needs in a self repeating workflow. And that's pretty much all there is to say. The API (if one could call it so) is mainly based on overriding the Arena class, in rare cases other components like ArenaSetup or ArenaScoreboard. Pretty much everything gets handled in the API, you only need to change things like kits and add the core of your minigame idea.

Example: I want someone flying around in minecarts and shoot themselves. I create a new project, add two events into the main class to enable flying minecarts and two others for the guns, some final touches, finished.

Example 2: I want Snake with Sheep who follow me around (representing the snake). I add some potioneffects into the join and leave functions of the default Arena class, the logic behind the Sheep following me around (let them move to the last position of the player, while he gets pushed forward automatically) and check for obstacles ahead of the player which make him lose.

Clone this wiki locally