I have 0 experience in this however what I want is a really small change, the mod "Hold my items" adds unique animations for first person view, however when it interacts with a mod I commissioned "Wild Iron" the gun's unique held posture and position gets scuffed entirely and makes it look like you're checking out your own weapon. how do I fix this? (please ping!)
#How to fix bug in MC addon?
1 messages · Page 1 of 1 (latest)
<@&987246652869971988> please have a look, thanks.
Hey @keen linden, is there any way you could contact the original author of the mod you commissioned to change it for you?
If it's a newer mod, there's a big possibility it's data-driven, or in other words, loads its model (including how it's displayed when held in first person) from a file. This file should be editable in Blockbench 
oh sick! so in that case I just have to turn the gun 90 degrees in block bench and I'm good?
the files and everything are just open in the mod to modify btw
Oh, wow, the model is actually created in the java code, not defined in a json
Any change atp probably requires java knowledge.
If you're comfy with setting up a development environment to modify the code and compile it back into a .jar file, I think you can change the model's rotation in WildIronBEWLR.java:55 in the two first person cases
This should help you with your workspace setup if you'll run into any issues
In this Minecraft Modding Tutorial for Forge in Minecraft 1.20 and Minecraft 1.20.1, we are setting up the Modding Workspace for the first time!
== MODDING COURSES ==
FORGE ▶️ https://url.kaupenjoe.net/CourseForge120X
FABRIC ▶️ https://url.kaupenjoe.net/CourseFabric120X
▶️ NEW NeoForge Modding with Minecraft 1.21.X:
https://url.k...
The underlined values are most likely the ones you need to change to some other number. I'm unsure what numbers, though, so experiment 
If this won't fix your issue, I recommend joining a Discord community more specific to your problem, for example the Forge one, and asking for help there 
Pinging for good measure @keen linden
Thanks for the ping, I'll attempt it
@thick jackal just to be sure, I use intelliJ IDEA to run this right?
It's proobably the most straightforward tool to use, so that's what I'd go with
I couldn't find BEWLR exactly yet but I'll keep searching through
Are you using IDEA to browse the files?
No, winrar
It's under src/main/java/com/bonker/wildiron/client/WildIronBEWLR.java
However, you'll need to import the entire project into IDEA, not just a file
Ah gotcha
This should help https://blog.jetbrains.com/idea/2020/10/clone-a-project-from-github/
In this blog, we're going to look at how to create an IntelliJ IDEA project from existing code in a GitHub repository. https://www.youtube.com/watch?v=aBVOAnygcZw This blog post covers the same materi
I finally found it, now it's tinker time
@thick jackal I'm gonna start by changing a number to 90 assuming it's degrees, how do I inject it into the mod now lol
Have you imported the project from GitHub?
Aaaalrighty, do you have a green play button in the top right corner of your IntelliJ IDEA?
I'm actually unfamiliar wiht Forge's development environment, I only do Fabric, so I hope it's the same 🙈
In general, though, at least in Fabric, you typically have this available to you
(you might have to select the Minecraft Client run option to have it run the game)
Can I please have a screenshot of what you see?
Yeahhh that's not going to be it, do you have any other launch configurations when you click on Current File?
My last suggestion is maybe checking the tasks. You're going to click the little elephant icon on the right, and navigate to a category named forge or something like that
If you won't have that, or if there won't be any task under forge like "runClient", then you're going to have to wait for someone else to help, or join Forge's Discord and ask the experts there
Gotcha gotcha
There's a runclient!
Im running it right now
oh wow this is super cool
I get to test the mod live
Not quite, you're going to have to restart after any change, but yes, it's basically that lol
I think I'll change 90 into 110, it's pretty close to what I want
so it's working?
yes!
gonna put it at 110 and see what happens
@thick jackal ok so how do I go about adding this new code?
just export as a java file?
Hmm, try opening the terminal (third icon from the bottom in the bottom left), and typing .\gradlew build in
Then, you should be able to find your jar file under your project > build > libs (the two blue files)
you definitely do
Interesting error though, dunno why it's trying to reserve that much space
Let's maybe try a different approach. If you go back to your tasks on the right, the little list you've found runClient in, do you have any other tasks there? Try looking for something like genSources or package or build
yeah sure try that, the second task under the build folder icon
successful!
Did it generate the .jar file in project>build>libs?
Where do i check this in files btw
You should be able to just use the file explorer in the IDE
I see it as a file!

can I throw it into the pack then?
You should be able to, yeah
Kickass
I don't recommend publishing it on the Modrinth page, though
I guess that means I can't post it as part of the modpack either then
The potential issue I see is that you rotated the model to fit Hold My Items (or whatever the mod is called)
So now when you're not going to use Hold My Items, it's going to look weird
however part of my realization was is this
hold my items doesn't use your first person
it uses the gui!
hence why it had that awkward holding angle
So you're saying that if you were to only use WildIron without Hold My Items, the model would still look fine?
yea basically
alright great
lol
have fun then 
hold my items just sucks with other mods
actual dictator of a thing, "my way or the high way"
cause the gun itself had a custom flip animation for reloading and pulling out the weapon
I'll just change the woosh sound effect into a "Good bad and the ugly" reference to make it still fun
oh oh heads up, as a file it's not popping up on modrinth
Do you mean the verification process?
as in like physically on the app
usually it shows up on the list of mods in the current pack
I'm unsure if it shows local files
oh, no, that is absolutely not correct lol
By this I meant that you should look for the .jar file here, in this folder
Not that this is the thing you should use
I'm sorry for not being thorough
it's ok lol I didn't use enough of my own brain
is it possible for me to just swap out a file with my altered one?
Yeah definitely, you can just delete the existing wildiron jar in the modpack's mods folder
and paste in your own
kickass!
ok so good news and badnews, good news is it succesfully moved over and I found the java file in question, bad news is it wasn't the gui
is it possible to change angle y for first person?
since doing that for gui worked pretty well
Everything should be possible, so just try experimenting with different values in the code, maybe in different files as well
You're going to have to contact the original developer for further assistance, if you'll be stuck though
this knowlege is still handy though so thanks!