Hey everyone! I came here today to help you guys with your troubles in 1.8, and the dreaded .json file making. I made this program to allow us modders to make these files easier. You can make items and blocks with ease for your mods!
v1.1.2
* Fixes block state file generation. Adds Mod id into it so it actually works out-of-the-box.
v1.1.1
+ Adds in third block file generation, because I forgot blocks need three.
+ Includes comments in each file for instructions on where to install.
* Cleans up code, a lot.
v1.1.0
+ Adds block generating support (including auto generating models)
* Fixes a few things.
The Meaning of Life, the Universe, and Everything.
Join Date:
3/23/2012
Posts:
338
Location:
Web of Interconnectivity
Minecraft:
MarkSill
Xbox:
Telanom
Member Details
Version 1.2 (haven't tested others) crashes on Ubuntu 14.04, even when just running the jar.
Exception in thread "main" java.lang.UnsupportedClassVersionError: sheenrox82/json/src/base/JSONFileGenerator : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
The Jar is compiled with Java 1.8 sdk. Considering that there is no openJDK for 1.8 yet, it would be better if it was compiled against 1.7. On the other side of the coin you can always install Oracles 1.8 jre. It's not really that hard, assuming you are running linux, if not just update your jre.
Forgive my stupidity but I have absolutely no idea where to put the JSON file. I put it under src/main/java/assets/model/ITEMNAME, and the png in src/mina/java/assets/MODID/textures/items. I got a 'Unable to load item model 'MODID:item/ITEMNAME' for item 'MODID:ITEMNAME'.
any ideas why?
EDIT: Haha... ok so I misspelled "models", my bad. So I've gotten the exception to disappear, but now it still won't load the texture, I just get the default pink/black block. Any ideas why?
EDIT: Oh man, I'm sorry for all these edits. Again, just a typo. Anyone know how I set the actual names for items? Isn't there a function for that? Or how I get blocks to generate in the world like ores? Add new biomes?
Forgive my stupidity but I have absolutely no idea where to put the JSON file. I put it under src/main/java/assets/model/ITEMNAME, and the png in src/mina/java/assets/MODID/textures/items. I got a 'Unable to load item model 'MODID:item/ITEMNAME' for item 'MODID:ITEMNAME'.
any ideas why?
EDIT: Haha... ok so I misspelled "models", my bad. So I've gotten the exception to disappear, but now it still won't load the texture, I just get the default pink/black block. Any ideas why?
EDIT: Oh man, I'm sorry for all these edits. Again, just a typo. Anyone know how I set the actual names for items? Isn't there a function for that? Or how I get blocks to generate in the world like ores? Add new biomes?
To set the item names, you need to make a .lang file. Look it up. It's been like this for a loooong time now. Please do not go off topic.
I am relatively new to modding MC, can you (or anybody) reference me to a place where I could learn how to add my own custom models to MC 1.8? Thanks for making this program! Will it run on Mac?
The Meaning of Life, the Universe, and Everything.
Location:
127.0.0.1
Join Date:
8/22/2012
Posts:
217
Location:
127.0.0.1
Minecraft:
Barteks2x
Xbox:
null
PSN:
null
Member Details
This is very useful tool, but it still would take too much time to use it manually. So I tried to automate it. Since I'm setting block, item and texture names always in the same way I wrote something that created a file that contains exactly what I should type in colsole.
Then on linux I tried:
./RUN.sh < in.txt
Buut I'm getting NoSuchElementException (why?).
So I tried different way: wrote java program that reads this file, creaetes ByteArrayInputStream, replaces System.in with this, and runs your main method in a loop. But I'm still getting the same exception. Is there ANY way to automate it?
Learning JSON alone literally took me 5 minutes, and programmers are likely to have np++ which can be used to edit the files manually. I could easily create another version of this script using something like C, looping, without even having to look at the src of the file. This may be useful for some modders unfamiliar with web design (JSON is similar and often compared to XML), but is fairly simple.
It would be interesting to collaborate with sheenrox32 to improve this program. This seems like an interesting project.
Oops, it's a java program. Not a script (scripts are associated with python/lua). My bad.
Im sorry, but how do you install this? i made a folder and droped the files in it, but when i opened the RUN.bat it just started a CMD that constently says, "Exception in thread "main" java.lang.UnsupportedClassVersionError: sheenrox82/json/scr/base/JSONFileGenerator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1<Native Method> at java.lang.ClassLoader.defineClass<Unknown Source> at java.secureity.SecureClassLoader.defineClass<Unknown Source> etc". i dont understand what is wrong and why its not working. please help.
Download: Here
Changelog
v1.1.2
* Fixes block state file generation. Adds Mod id into it so it actually works out-of-the-box.
v1.1.1
+ Adds in third block file generation, because I forgot blocks need three.
+ Includes comments in each file for instructions on where to install.
* Cleans up code, a lot.
v1.1.0
+ Adds block generating support (including auto generating models)
* Fixes a few things.
v1.0.0
Initial release.
Enjoy!
Cleans up code a lot too.
Not that hard to do manually, considering it tells you where to put them.
Mod author. Too lazy to list mods, go here instead.
Help out the Official FTB Wiki reach a billion pages! (I keep having to update this, so let's just make it a billion)
Yeah, true, but a Linux user would know it works though.
Exception in thread "main" java.lang.UnsupportedClassVersionError: sheenrox82/json/src/base/JSONFileGenerator : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Are you a potato?
Check out Realistic Survival: https://l.marksill.com/rs
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1~0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Pretty sure this is Java 7, with JDK 1.7.
Are you a potato?
Check out Realistic Survival: https://l.marksill.com/rs
any ideas why?
EDIT: Haha... ok so I misspelled "models", my bad. So I've gotten the exception to disappear, but now it still won't load the texture, I just get the default pink/black block. Any ideas why?
EDIT: Oh man, I'm sorry for all these edits. Again, just a typo. Anyone know how I set the actual names for items? Isn't there a function for that? Or how I get blocks to generate in the world like ores? Add new biomes?
To set the item names, you need to make a .lang file. Look it up. It's been like this for a loooong time now. Please do not go off topic.
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
YouTube | Twitter | Patreon
Then on linux I tried:
./RUN.sh < in.txt
Buut I'm getting NoSuchElementException (why?).
So I tried different way: wrote java program that reads this file, creaetes ByteArrayInputStream, replaces System.in with this, and runs your main method in a loop. But I'm still getting the same exception. Is there ANY way to automate it?
Cubic chunks discord server
It would be interesting to collaborate with sheenrox32 to improve this program. This seems like an interesting project.
Oops, it's a java program. Not a script (scripts are associated with python/lua). My bad.
Im sorry, but how do you install this? i made a folder and droped the files in it, but when i opened the RUN.bat it just started a CMD that constently says, "Exception in thread "main" java.lang.UnsupportedClassVersionError: sheenrox82/json/scr/base/JSONFileGenerator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1<Native Method> at java.lang.ClassLoader.defineClass<Unknown Source> at java.secureity.SecureClassLoader.defineClass<Unknown Source> etc". i dont understand what is wrong and why its not working. please help.
ok cool but I have the same problem as /\ and need help just figuring out how to mod. any good books or tutorials?