-
Posts
15 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Splurpy_'s Achievements

Tree Puncher (2/8)
0
Reputation
-
EntityData seemingly not syncing between server and client
Splurpy_ replied to Splurpy_'s topic in Modder Support
Thanks! Everything's working now. -
EntityData seemingly not syncing between server and client
Splurpy_ posted a topic in Modder Support
I'm working on a placeholder entity so that I can work on the logic and AI before actually modeling, texturing, and animating one. I'm trying to ensure the mob can climb, like spiders. That much I have gotten, and my entity is functioning exactly as intended. The only issue comes when I try to get this entity data from the client when I'm overriding the Renderer's render call. Regardless of what I do, this entitydata is seemingly always false (even when the server reports it as being true) when I try to retrieve it using my isClimbing() method, despite it returning true when using debug prints on the Server. I'm guessing its an issue with how I implemented entitydata, so I'm curious if anyone can look at what I've got and point me in the right direction. My implementations of the Entity and Renderer class are below: Entity Class Entity Renderer In this version of EntityRenderer I'm accessing SYNC_DATA directly, but previously, I was attempting to access it via the isClimbing() method. Neither seem to work from within the Renderer. Thanks -
It’s most likely to do with your SDK/JDK or an issue with your gradle. You’re going to need to rebuild your gradle, and then try again. It’s pretty simple, you should be able to easily find resources online for how to rebuild gradle.
-
Entirely optional, but it’s nice to have for version control. If you don’t know Java, I don’t think you’re going to be able to mod. Modding generally requires intermediate Java knowledge. That said, if you want a good place to start with modding, and also Java as a whole, check out Kaupenjoe on YouTube. Excellent source for getting started with modding. Once again, you’re really not going to be able to do much without any sort of Java knowledge. It may not be as bad if you know another object-oriented language, but if not, it’s gonna be rough.
-
It would seem it was something as simple as just rebuilding gradle . That fixed it, and its working well, now. Worth noting for anyone who has a similar issue, just try rebuilding gradle. I'm not sure why I didn't think of that sooner.
-
I've been developing a mod for 1.19.2 for a little while (months) now, and everything has been going well. The only issue I've suddenly encountered is that I can no longer run the client. I haven't touched anything within gradle, maven, or intellij, and all of my system path/environment variables are fine. I can confirm that it is building with the correct java version (Adoptium 17.06.). It was working about 10 minutes ago, and now whenever I try to run the client, the build fails almost immediately, citing: "Execution failed for task ':compileJava'. > error: release version 17 not supported" Full pastebin of what is given: PasteBin I'm not super familiar with gradle as a whole, so I'm hoping this is just something simple that I don't quite understand due to lack of experience. I've checked project sdk, module sdk, gradle sdk, etc., and everything seems fine. It's strange to me that this occurred so suddenly, and without making any actual changes. Once again, everything has been working completely fine up until right now. Any help would be wonderful!
-
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
Okay thanks. Is this as easy as simply extending CatEntity, and then modifying the new class? -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
I've redefined the field inside the item that's supposed to change them, but when I call setCatType(), it randomly selects a new integer if its anything larger than the predefined method's bound. I'm a little new to Forge, so any tips on how to go about dealing with this? -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
Nevermind, it would seem I just needed to reload the project 5 more times. I didn't change anything in-between. Can't complain, though. -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
I did this, but nothing seems to have updated. I've typed: accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') And even after refreshing the gradle, nothing changes. -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
One new issue I'm finding is how to actually use the transformer in the accesstransformer.cfg file within META-INF. I understand that I need the MojMap (I think) in order to do this, but I don't know where to get/how to format the map for this specific field. Is it as simple as: public-f net.minecraft.entity.passive.CatEntity TEXTURE_BY_TYPE Because I tried this, and it didn't actually seem to affect the "public static final" aspect within CatEntity.java, even after refreshing the build.gradle. Any help is greatly appreciated! EDIT: I was actually able to use my IDE to get the AT value, so now I have: public-f net.minecraft.entity.passive.CatEntity field_213425_bD # TEXTURE_BY_TYPE This, however, still doesn't change anything in the source code. I'm not sure if it's supposed to or not. It's kind of difficult to find a lot on ATs. Should I be able to redefine the field from another class, or am I missing the point? -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
Could you maybe explain a little bit more? I'm not sure what you mean by "get rid of the final modifier". From what I can see, it allows using "smaller-scope" methods out of their localized scopes? Or am I misunderstanding? EDIT: NEVERMIND, just realized you meant the literal "final" modifier of public static final. Thanks! -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
To my understanding, there's no way to change an immutable object (public static final Map), so it seems like my main options are going to be: Completely override the old EntityCat from the game, by extending a custom entity class that is the exact same but with more texture mappings (I really hope I DON'T have to do this). Create a class which overrides getResourceLocation to look for textures from a different Map (I'm not sure how to implement this, but it seems like the best way to go, and it seems MUCH easier, but I don't know where to start). On that note, is it possible to override/modify methods for pre-existing/Vanilla classes? -
[1.16.5] Adding more possible CatTypes to CatEntity
Splurpy_ replied to Splurpy_'s topic in Modder Support
Okay so, thought I'd leave a reply as to not make the initial post any longer. Not sure how much help I'll really get because this seems so niche, so I'll just document my progress for now. I somehow completely missed this the first time around. I found the map that connects the textures to CatType in EntityCat.java, but now I just need to figure out how I can override/add my own mappings with textures to this list, especially since it's static. A link to the code I'm referring to is below. CatType Texture Map -
Splurpy_ changed their profile photo
-
Splurpy_ joined the community
-
So, I’ve been dabbling a bit with forge, and I’m trying to make a mod for 1.16.5 that adds various new cat textures, in addition to some other features. However, the issue I’m running into is how exactly to create these variations. I would like to have various items, when interacted with a tamed cat to change the CatType tag (I’ve done this much on my own, and it works). This being said, I want to add my new cat textures as new CatTypes, so that the texture data is properly stored in each entity instance. I, however, even after examining the cat and wolf files, can’t seem to figure out how I could add more variants via these NBT tags. Is this the way I should be doing this, or is there a much easier approach I should be taking? Thanks in advance. EDIT: I seem to have found the spot within CatEntity.java that contains the code for randomly choosing a CatType when a CatEntity is spawned. Line 348 at finalizespawn contains helped me understand how textures are randomly chosen. However, I assume that somewhere there is a json mapping (or something similar) that maps each number CatType to a filepath for the texture, similar to how you would use a lang file to properly format localizations of items or tab labels for your mod. I don't really care about being able to randomly generate the new cat textures (CatTypes) in the world, I just want to have the additional CatType Mapping. (EX: CatType 12, 13, 14, etc.) "mapped" correctly to the location of the textures included in the assets folder of my mod. I'm not sure where/what to do in order to add these additional types, as I assume I'd need to override some sort of vanilla mapping or file, but I'm really not sure. I have an idea of WHAT I need to do, but I'd really appreciate any help on locating WHERE / HOW to do it, as this is my first real attempt at modding Minecraft.