ModsJava
CookieClicker [API, Custom Events, MySQL, Holograms]
Java mod listed for Minecraft 1.8–1.13. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
COOKIECLICKER
[Contains API and Custom Events]
Source Code: https://github.com/michitillmanns/CookieClicker
Plugin Usage:
Description:
CookieClicker is a plugin to create Cookie Blocks on your Minecraft Server with an included API.
Commands:
- /cookieclicker - Shows you a list of commands
- /cc place - Creates a cookie at your foot location
- /cc remove - Removes the cookie you are standing on
- /cc setskullowner - Change the cookie player head ingame
- /cc reload - Reloads the configuration and updates all skull textures
- cookieclicker.* - Permission for complete usage of the plugin
- cookieclicker.command.* - Permission for complete command usage
- cookieclicker.command - Permission for /cc and /cc help
- cookieclicker.command.place - Permission for /cc place
- cookieclicker.command.remove - Permission for /cc remove
- cookieclicker.command.reload - Permission for /cc reload
- cookieclicker.command.setskullowner - Permission for /cc setskullowner
- CookieHeadPlayerName - Change the Minecraft Head Skin of a cookie by player name
- InteractAction - Choose if a player should left- or rightclick a Cookie
- ClickParticle - Change the Particle which appears after clicking a cookie (List of particles: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Particle.html )
- MessageType - Specify where the cookie message should appear ( ActionBar, Title, Subtitle, Chat)
- Message - Change the cookie click message (Color codes with '&' supported)
- ClickSound - Change the sound which plays after clicking a cookie (List of sounds: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html )
- SoundPitch - Change the pitch of the sound
- UseMySQL - Enable/disable MySQL usage
- MySQL - Edit the MySQL settings
API Usage:
Get the CookieManager:
Code (Text):
CookieManager cookieManager = CookieClicker.getCookieManager();
Code (Text):
// Add a Cookie
cookieManager.addCookie(Location arg0);
// Remove a Cookie
cookieManager.removeCookie(Cookie arg0);
cookieManager.addCookie(Location arg0);
// Remove a Cookie
cookieManager.removeCookie(Cookie arg0);
Getting a Cookie from Location:
Code (Text):
Cookie cookie = cookieManager.getCookieFromLocation(Location arg0);
Code (Text):
boolean existsCookie = cookieManager.getCookieFromLocation(Location arg0) != null;
Code (Text):
// Add one Click to a Players count
cookieManager.addClick(Player arg0);
// Get the amount of clicks of a Player
int clicks = cookieManager.getClicks(Player arg0);
cookieManager.addClick(Player arg0);
// Get the amount of clicks of a Player
int clicks = cookieManager.getClicks(Player arg0);
Custom EVENT Usage:
BEFORE Clicking (Cancelable):
Code (Text):
@EventHandler
public void onCookieClick(CookieClickEvent event) {
// Get the Player who is clicking the Cookie
Player player = event.getPlayer();
// Get the Cookie which is being clicked
Cookie cookie = event.getCookie();
// Get the Players Click Count BEFORE adding one more
int clicks = event.getClicks();
// Cancel the Event
event.setCancelled(true);
}
public void onCookieClick(CookieClickEvent event) {
// Get the Player who is clicking the Cookie
Player player = event.getPlayer();
// Get the Cookie which is being clicked
Cookie cookie = event.getCookie();
// Get the Players Click Count BEFORE adding one more
int clicks = event.getClicks();
// Cancel the Event
event.setCancelled(true);
}
Code (Text):
@EventHandler
public void onCookieClicked(CookieClickedEvent event) {
// Get the Player who clicked the Cookie
Player player = event.getPlayer();
// Get the Cookie which was clicked
Cookie cookie = event.getCookie();
// Get the Players Click Count AFTER adding one more
int clicks = event.getClicks();
}
public void onCookieClicked(CookieClickedEvent event) {
// Get the Player who clicked the Cookie
Player player = event.getPlayer();
// Get the Cookie which was clicked
Cookie cookie = event.getCookie();
// Get the Players Click Count AFTER adding one more
int clicks = event.getClicks();
}
Videos:
Feel free to create a Tutorial
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- 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.
CookieClicker [API, Custom Events, MySQL, Holograms] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 422 times (via Spigot). Download it and open it directly in the game.