
octa
Members-
Content Count
8 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout octa
-
Rank
Tree Puncher
-
Oh, I forgot all of the annotations in my blocks class. ¯\_(ツ)_/¯ Thanks for the eye.
-
Hello, I've recently decided to clean up my mod because it was a huge mess, so one thing I did was move all of the registration out of the one "registration" god class and divide the registration tasks into categories of block and item. Somewhere during this process, I must have gone wrong because my mod either fails to load or inevitably crashes when loading a world. I've played around with adding listeners and registering classes to the forge and mod busses, and gotten different errors. One thing I noticed is that they all lead to null pointers to items whose fields should have been injected from registries using the @ObjectHolder tag, so this is where I focused my research. I'm struggling to find anything about object holders, and beyond the idea that I didn't update the resource locations to match my new modid I'm stumped. Latest Log and crash report (which correspond to the version on my repo) are attached. Repo: https://github.com/eddie1101/PortalTest Can someone tell me what I'm doing wrong? latest.log crash-2021-02-01_20.37.37-client.txt
-
Can you tell me how you're viewing the image? When I view it in gimp it looks pretty clean: Edit: Using Gimp's threshold alpha tool worked wonders. Thanks for the help.
-
octa started following Disconnection From Server When Placing Modded Block and Textures not wrapping onto item models
-
You can see the handle and part of the top of the axe are flat. This is happening with all except for two of the tools I've made, and I can't discern any difference between the broken ones and the ones that work correctly. Here is the texture im using in the above example: https://github.com/eddie1101/PortalTest/blob/master/src/main/resources/assets/basicportals/textures/item/item_void_axe.png Here is the model json: { "parent": "item/handheld", "textures": { "layer0": "basicportals:item/item_void_axe" } } Here is the rest of the project: https://github.com/eddie1101/PortalTest Please let me know why this is happening. Thanks.
-
Oh, that makes sense. Do you have a suggested way of initializing that BlockPos? I can't think of anything other than assigning a symbolic value which gets verified before use, but that seems clumsy. Edit: Nvm, I was trying to return some nbt data instead of the tileentity's actual position. Thanks for the help.
-
Woops. Fixed the item names. According to the docs, RegistryEvent.Register is a valid way of registering entries, so I'll stick with that since I know it better. The repo should build now, so back to my original question: Why when placing a Portal Base does the client get disconnected from the server?
-
Repo is fixed. How do I run my client with system properties? It works on the server but when I add it to JVM arguments in the launcher's installation settings the game crashes.
-
I'm playing around with making my own mod. It works fine in Singleplayer but when I test it on a server my client gets disconnected with error message Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException (there is no further stack trace) when I place the Portal Base block. I can reconnect just fine, but will get disconnected again when I place another of those blocks. I haven't found much about this specific issue. Any help would be appreciated. Code: https://github.com/eddie1101/PortalTest/ logs: (Though they're not very helpful, is there some way to make the error more verbose? A stack trace would really help) Server: https://pastebin.com/JN6gnQyx Client: https://pastebin.com/AWVavatz Thanks in advance. Edit: Attached .jar if you want to try to reproduce basicportals-0.1.jar