Minecraft Cookie Clicker V 0.4 Whats new: Implemented upgrade system Added tier 1 upgrades This version may be buggy
Description Here is a small program coded in Java that I made in a few hours because I was bored. It's pretty much just Cookie Clicker, but Minecraft version. There isn't much in it right now, but I will continue to add more to it over time. Here is the original game.
"An advanced game with incredibly strategic strategies." - IGN
"14/10" - Riot Games
"Where has this been all my life?" - Steve
How To Play: Click the big cookie to earn cookies. You can use these cookies to buy buildings to increase your CPS (Cookies Per Second). More CPS = More Cookies = More Buildings Yeah, that's pretty much it.
Buildings: (Prices go up by 15% every purchase)
Piston Clicker Auto-clicks your cookies. Base Price: 15 CPS: 0.3
Baker Villager A nice villager to bake you more cookies! Base Price: 50 CPS: 1.2
Farm A farm to grow more cookies. Base Price: 200 CPS: 4.1
Redstone Factory A factory powered by redstone that turns wheat into cookies. Base Price: 500 CPS: 9.4
Mine Mines redstone to power your factories. Base Price: 1500 CPS: 19.2
Minecart Shipment A minecart shipment that grabs cookies from faraway lands. Base Price: 5000 CPS: 40.6
Alchemy Lab Creates splash potions of cookieness. Base Price: 12000 CPS: 100
Nether Portal A portal that gives access to cookies in the Nether. Base Price: 25000 CPS: 500
Upgrades You can upgrade your buildings in the upgrade section. Building upgrades are unlocked by haing more buildings. Cookie upgrades are unlocked by clicking the cookie
Reset Button: Be careful with this button.
Things to add: More buildings Ability to sell buildings Upgrades More stuff
If anyone sees this and wonders why it hasn't been updated in a while it's because I sort of cleaned up the code and broke it at the same time and that means I really just broke it. Perhaps I will come back to this project sometime in the future
It seems that many people are having problems opening the file. If you can't open it, try doing this: 1. Open command prompt / terminal 2. Type java -jar (insert directory of jar file)/MinecraftClicker.jar 3. PM me what the console output says
C:\Users\****>java -jar C:\Users\Joey\Desktop\MinecraftClicker.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupp orted major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa der.java:56)
Next update: Next level of upgrades, 2 more buildings, put menu as a tab on the right, format numbers to have commas, minimize option, and maybe some other stuff.
While you are at it, maybe increase the size of the textboxes.... Once you own a few portals the owned get pushed to a new line, making it look a bit less pretty: http://prntscr.com/56ycxz
Nice to see some core Java applet development, checked the source code, slightly messy and all in one class file but I think I can deal with it ;) anyways, keep going, I'd like to see how this goes:)
I kept adding stuff to the same file, so it's getting larger than I had expected and it's staring to get annoying finding a piece of code that I need to edit. I've already started spacing the code out and cleaning a few things :P
Hmm... Double-clicked the .jar and nothing happened... I then made a .bat to run it through a console so I could see what was going wrong and got this:
[code]Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupp orted major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa der.java:56) [/code] Which leads me to believe that my version of java (7 u71) is too high (or maybe even too low) for the program... I might experiment around with this.
u52 I assume. Yeah, that's definetely the reason. I probably won't update to 8 any time soon due to the fact that Java 8 is still pretty buggy. I will ,however, recommend this to my friend running 8. Nice work!
We're a community of block friendly creatives sharing everything Minecraft! Even if you don't post your own creations, we appreciate feedback on ours. Join us!
ill try it XD
(jk i actually kinda like this idea)
when you have an upgrade that you did not buy, and you reset, the upgrade will still be there.
If you can't open it, try doing this:
1. Open command prompt / terminal
2. Type java -jar (insert directory of jar file)/MinecraftClicker.jar
3. PM me what the console output says
Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupp
orted major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:56)
Can you say this exactlier???
There is a java file and if i click on it nothing happens.
So what should I do??
Did I win?
www.oracle.com/technetwork/java/javase/8u-relnotes-2225394.html
Update after that: Probably upgrades
(I would also love to see some source for this, I feel like I could learn some stuff.)
[code]Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupp
orted major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:56)
[/code]
Which leads me to believe that my version of java (7 u71) is too high (or maybe even too low) for the program... I might experiment around with this.