-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
I suggested entity throwable because it has a good collision method that you can override, I didn’t know that you were making a magic missile (it’s been a long time since I played terraria) type entity. For the collision you need to do appropriate stuff in the onImpact method. How are you implementing the magic missile functionality?
-
java.lang.OutOfMemoryError: Java heap space in Forge 1.12.2
Cadiboo replied to iamdjgames's topic in Support & Bug Reports
In your launcher under launch options. Google it to find instructions in Portuguese -
All of that and this among other things You should use the overload that takes a namespace and path. You also haven’t provided any logs, so we can’t tell you exactly what is causing your issue (I assume it’s a FileNotFound error though)
-
[1.12.2] Creative flight in survival not resetting fall distance
Cadiboo replied to Merthew's topic in Modder Support
Don’t Stringly type your code. How do you know the fall distance isn’t reset to 0? Have you tried stepping through your code with the debugger and seeing what happens? -
Use your IDE to look at all the classes that extend Event
-
You can find a lot of examples of TESRs in vanilla code. https://mcforge.readthedocs.io/en/latest/tileentities/tesr/#fasttesr
-
https://mcforge.readthedocs.io/en/latest/events/intro/
-
In your event subscriber add a @SubscribeEvent to the RenderPlayer.Pre event, cancel it and do your rendering
-
java.lang.OutOfMemoryError: Java heap space in Forge 1.12.2
Cadiboo replied to iamdjgames's topic in Support & Bug Reports
For vanilla. 2g+ is recommended for modded -
Sorry we don't support 1.7.10 on this forum anymore due to its age (4+ years old). We simply don't know how to help you anymore. You can go to the Minecraft Forum where I think that they still still support older versions, or update to a modern version of Minecraft (the latest version or the one before it) to receive support on this forum.
-
Draco18s has a very good point. Why do you need to edit the EntityRenderer class? Are you sure you can’t use forge’s event system?
-
Im not sure when it was added. It allows mods to override other mods items and puts in place base functionality to allow forge (in the future) to dynamically load and unload mods ingame. You can see examples of it here https://github.com/Cadiboo/Example-Mod/blob/master/src/main/java/cadiboo/examplemod/init/ModBlocks.java (References) and here https://github.com/Cadiboo/Example-Mod/blob/6a1ba1042d63b80fb6e6676a0d04018e0bc1f3ae/src/main/java/cadiboo/examplemod/EventSubscriber.java#L28-L43 (initialisation and registry)
-
Not if done very well, but that requires even more extensive knowledge, time and effort. It depends what exactly you are trying to achieve and if other mods modify the same class/method. This is the more accepted (and much, much, MUCH easier) way of doing it. Coremods require learning an entirely new language (Java Bytecode) and learning how to use the ASM library, which is almost as hard as learning another new language. Java Bytecode is a low-level language and doesn’t have any of the structures your used to from other languages (as bytes it resembles Machine Code and as instructions it resembles Assembly) Coremods also break completely with the slightest change to the original code you’re modifying (if another variable is added anywhere in the method for example)
-
Where do you attach it to the player? There are no methods that do it in your EventSubscriber
-
There is already a BlockBase class, it’s called Block. You should extract this functionality to utility methods so that you can extend other Minecraft blocks (a lot Minecraft code uses instanceof checks to specially handle stuff - you will be saving yourself a lot of headache down the track) I’ve got an example of this here that you might want to look at. You should at least read the README of the repository as it explains some vital stuff
-
This may not be related, but I’ve noticed your not calling super in a lot of methods, your not implementing has/getCapability and your manually implementing the saving functionality of ItemStackHander (it has a public method to write its contents to NBT). You should also be using @ObjectHolder for your items and blocks (what if another mod overrides one of your items? currently your references will still point to an item that doesn’t exist anymore and will crash the game if used)
-
What’s your resistance to uploading your code? We’re not going to steal it...
-
I was thinking that for compatibility a system like dependency loading system would be great, though it would have a lot of overhead. My mod has an event subscriber that I don’t really care when it’s called, as long as it’s called right before BetterFolliage (High), so I’m using a priority of Highest. Currently there is no way for another mod to run their subscriber before mine. Its more of a theoretical issue than an actual one
-
Make sure your graphics drivers are up to date
-
Why are you trying to do this? I believe that the deobfuscated jars are in your gradle cache. You can try and use MCP to get the SRG named jar, but we don’t support that or encourage that here. If you just need to find the names of methods/fields/parameters (for AccessTransformers etc.) you can use MCPBot (espernet) or ForgeBot (discord) All mapping to SRG names in a non dev environment is done at runtime by Forge, and I’m pretty sure that in 1.13+ they won’t be doing runtime debfuscation anymore (it hasn’t really been needed for a while)
-
Error on join: Can't serialize unregistered packet
Cadiboo replied to SillyPutty125's topic in Support & Bug Reports
You should probably do a little bit more digging first. Do you have any other networking related stuff going on on your network/computer? Are you port forwarding your sever? Most importantly, does it work on another machine or account? -
In future please post your log in a spoiler or using a service like GitHub Gist or PasteBin. This is a bit of a guess, but make sure your OpenGL drivers are up to date and OpenGL is not corrupt. I’m saying this because it seems to me that OpenGL rendering is the cause of your error (something is going very wrong when trying to draw the progress bar)