ModsJava
GameEngine [Minigames & General API]
Java mod listed for Minecraft 1.7–1.12. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
GameEngine
GameEngine is a developer's API coded in java for use in minigames and global plugins. Currently, it features an API for maps, languages, and GUI creations.
Using the API
The use of GameEngine is quite easy, the first step is to import the .jar into your build path on any IDE you wish to use, then add this tag in your plugin.yml:
Code (Text):
depend: [GameEngine]
Code (Text):
MapConfiguration mC = new MapConfiguration(this); // <- Using this if it's in your main class.
LangConfiguration lC = new LangConfiguration(this);
Using this will generate two files (lang.yml and maps.yml) in your plugin's folder. After so, you could start passing the mC and lC fields into other classes, using .getConfig(). (lC has a method to get directly colored messages, lC.getTranslatedMessage("lang.eng.anymessage");
You can clearly see that there's a MapSelector and MapBuilder class. After you've generated your MapConfiguration class, you could initiate the MapSelector class which gets all the map names and randomizes them, then after so you could use MapBuilder.voteMap(player, "map1", "&aSuccesfully voted for map", "&cYou have already voted for the map!"); and then after some countdown use MapBuilder.chooseMap() to choose a map (string is in MapBuilder.chosenMap after initiating the method). An example of a config format and other stuff are found below (make sure that the configuration is valid or it'll return an error!):
Using it onEnable or later:
Code (Text):
MapSelector mS = new MapSelector(this, "Cores.maps");
MapBuilder mB = new MapBuilder(this);
mB.init();
MapBuilder mB = new MapBuilder(this);
mB.init();
Code (Text):
Cores:
lobby:
location:
world: lobby
x: 1.9538460087614933
y: 7.0
z: 8.001690871078623
yaw: 180.15005
pitch: -3.2999997
maps:
Oasis:
authors: Xelfi_
blue:
spawn:
world: icecore
x: 3.4918956547248716
y: 18.0
z: -46.376332341813864
yaw: 359.96948
pitch: -1.0500122
beacon1:
world: icecore
x: 26.0
y: 17.0
z: -34.0
beacon2:
world: icecore
x: -20.0
y: 17.0
z: -34.0
red:
spawn:
world: icecore
x: 3.5650042255258074
y: 18.0
z: 43.394932884295905
yaw: 179.96936
pitch: -2.7000039
beacon1:
world: icecore
x: -20.0
y: 17.0
z: 30.0
beacon2:
world: icecore
x: 26.0
y: 17.0
z: 30.0
Poseidon:
authors: ElieTGM
red:
spawn:
world: Water
x: -111.94999998807903
y: 73.0
z: -34.46535550892774
yaw: -90.59964
pitch: -3.0000274
beacon1:
world: Water
x: -113.0
y: 74.0
z: -83.0
beacon2:
world: Water
x: -113.0
y: 74.0
z: 13.0
blue:
spawn:
world: Water
x: 127.94896648777643
y: 73.0
z: -34.37977720931307
yaw: -269.5495
pitch: -8.1000395
beacon1:
world: Water
x: 128.0
y: 74.0
z: 13.0
beacon2:
world: Water
x: 128.0
y: 74.0
z: -83.0
End:
authors: Xelfi_
blue:
spawn:
world: endcore
x: 393.5
y: 13.0
z: -517.5
yaw: -0.021059584
pitch: -0.39975262
beacon1:
world: endcore
x: 445.0
y: 12.0
z: -490.0
beacon2:
world: endcore
x: 341.0
y: 12.0
z: -490.0
red:
spawn:
world: endcore
x: 393.5
y: 13.0
z: -343.5
yaw: -180.16158
pitch: 0.12739526
beacon1:
world: endcore
x: 341.0
y: 12.0
z: -372.0
beacon2:
world: endcore
x: 445.0
y: 12.0
z: -372.0
lobby:
location:
world: lobby
x: 1.9538460087614933
y: 7.0
z: 8.001690871078623
yaw: 180.15005
pitch: -3.2999997
maps:
Oasis:
authors: Xelfi_
blue:
spawn:
world: icecore
x: 3.4918956547248716
y: 18.0
z: -46.376332341813864
yaw: 359.96948
pitch: -1.0500122
beacon1:
world: icecore
x: 26.0
y: 17.0
z: -34.0
beacon2:
world: icecore
x: -20.0
y: 17.0
z: -34.0
red:
spawn:
world: icecore
x: 3.5650042255258074
y: 18.0
z: 43.394932884295905
yaw: 179.96936
pitch: -2.7000039
beacon1:
world: icecore
x: -20.0
y: 17.0
z: 30.0
beacon2:
world: icecore
x: 26.0
y: 17.0
z: 30.0
Poseidon:
authors: ElieTGM
red:
spawn:
world: Water
x: -111.94999998807903
y: 73.0
z: -34.46535550892774
yaw: -90.59964
pitch: -3.0000274
beacon1:
world: Water
x: -113.0
y: 74.0
z: -83.0
beacon2:
world: Water
x: -113.0
y: 74.0
z: 13.0
blue:
spawn:
world: Water
x: 127.94896648777643
y: 73.0
z: -34.37977720931307
yaw: -269.5495
pitch: -8.1000395
beacon1:
world: Water
x: 128.0
y: 74.0
z: 13.0
beacon2:
world: Water
x: 128.0
y: 74.0
z: -83.0
End:
authors: Xelfi_
blue:
spawn:
world: endcore
x: 393.5
y: 13.0
z: -517.5
yaw: -0.021059584
pitch: -0.39975262
beacon1:
world: endcore
x: 445.0
y: 12.0
z: -490.0
beacon2:
world: endcore
x: 341.0
y: 12.0
z: -490.0
red:
spawn:
world: endcore
x: 393.5
y: 13.0
z: -343.5
yaw: -180.16158
pitch: 0.12739526
beacon1:
world: endcore
x: 341.0
y: 12.0
z: -372.0
beacon2:
world: endcore
x: 445.0
y: 12.0
z: -372.0
If you have any further questions please PM me, or post in the Discussion Section / check out the javadoc for further details
. Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
GameEngine [Minigames & General API] is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 349 times (via Spigot). Download it and open it directly in the game.