Everything posted by Animefan8888
-
Build failed with an exception. JAVA_HOME environment variable causing me issues
This may seem really obvious and stupid, but did you try turning it off and back on again? (Note you usually need to restart after editing environment variables).
-
Build failed with an exception. JAVA_HOME environment variable causing me issues
Im pretty sure it needs to point to the bin folder aswell.
-
[SOLVED!] how to use addSubstitutionAlias ?
Yes you need to register the ItemBlock.
-
How do I get my render model to rotate in a circle? (the infos in here)
I assume you are using a model and that model should have a setRotation method. Just have your Entity or renderer have a rotation.
-
List of all Events available?
In your IDE you can look for classes that extend the Event class from forge.
-
[1.10.2] Do i need to copy the whole forge when creating new workspace?
If by project do you mean the forge one? If so you also need to setup it's build path to export everything. Under build path, then order and export.
-
Making a mob with attack patterns
You could also make another entity that is rendered as a proper laser. And damage the player when it comes into contact with it.
-
How do I get my render model to rotate in a circle? (the infos in here)
Spin as in around the center? Or as in orbit?
-
[1.10.2] Do i need to copy the whole forge when creating new workspace?
If you did it the way I did you need to download and install gradle. Copy over the build gradle file make a few edits so it can find your code. Then in the folder with the build file open command prompt/terminal and run the file with gradle. More information http://www.minecraftforge.net/forum/index.php?topic=15232.0
-
[1.10.2] Do i need to copy the whole forge when creating new workspace?
I do that which allows me to have multiple workspaces so I can group my mods by "categories" you can still have multiple "mods" in one forge workspace. And a forge workspace is using the setup workspace forge provides after gradlew eclipse/intelij
-
[1.10.2] Do i need to copy the whole forge when creating new workspace?
Yes as the forge source should never change unless updated.
-
Containers of different sizes via subclassing or variables
That's actually the first thing I tried. I assumed I could add a new field to my tile entity and pass the parameter into the constructor when returning a new tile entity in createNewTileEntity (in my container's block class). Why can't the constructor have any parameters? If I used a setter, when and where would I invoke it? It can have a constructor with parameters, but it must have one with none because when the game is loaded it must instantiate them from world data.
-
Containers of different sizes via subclassing or variables
Well obviously that is a yes but your constructor can't have any parameters, so a setter would work.
-
[1.10.2] func_174903_ a gone
That is a few versions old I hope jablear can get time to update his tutorials as they are are big help, but IUpdatePlayerListBox does't exist anymore and that method doesn't either. IUpdatePlayerListBox might be known as ITickable now, and is used to add the update method to a TE.
-
[1.10.2] On oredict registered [Solved]
By post update I mean postinit You could do it in preInit if you wanted to. I don't think all oredict entries would be registered by preinit You could do that just for vanilla and use the event for the rest.
-
[1.10.2] func_174903_ a gone
What did func_174903_ do where was it located what where the parameters?
-
[1.10.2] On oredict registered [Solved]
By post update I mean postinit You could do it in preInit if you wanted to.
-
[1.10.2] On oredict registered [Solved]
Depends on what you mean post update?
-
[1.10.2] On oredict registered [Solved]
Tried in both OreRegisterEventhandler and in the main mod file. @Mod.EventBusSubscriber public class OreRegisterEventhandler { @SubscribeEvent public static void OreRegisterEvent(OreDictionary.OreRegisterEvent e) { String name = e.getName(); System.out.println("This doesn't get printed ever "+name); @Mod(modid = modname.MODID, version = modname.VERSION) @Mod.EventBusSubscriber public class modname { // init functions and stuff... @SubscribeEvent public static void OreRegisterEvent(OreDictionary.OreRegisterEvent e) { String name = e.getName(); System.out.println("This also doesn't get printed "+name); The problem now that I am looking at this class is that the method that registers vanilla is called as soon as a static{} gets called.
-
[1.10.2] On oredict registered [Solved]
I meant this part Automatically Registering Static Event Handlers
-
[1.10.2] On oredict registered [Solved]
Then instead of registering the event in preInit use the static way of registering it was in the link Dracos provided.
-
[1.10.2] On oredict registered [Solved]
Sorry, pasted the code wrong. The subscribe event is over the method Did you re paste the code or just fix that one error? And also are you registering something into the ore dictionary after registering the event? I went back to my post to edit it and add the class part, but accidentally put the subscribe event before the class. My actual code never had that. I am trying to register something into the oredict when the event is called (it won't loop infinitely, I have it set up right), but the event doesn't get called yet The event is fired when something is registered to the OreDictionary it is not used to register something to the OreDictionary specifically.
-
[1.10.2] On oredict registered [Solved]
Sorry, pasted the code wrong. The subscribe event is over the method Did you re paste the code or just fix that one error? And also are you registering something into the ore dictionary after registering the event?
-
[1.10.2] On oredict registered [Solved]
The @SubscribeEvent goes over the method not the class.
-
[1.10.2] On oredict registered [Solved]
I dont think this is possible because items must be registered in there event which is called prior to preInit. Or it is done during preInit...And typically ore dictionary is done in init or postInit from my experience with it.
IPS spam blocked by CleanTalk.