#How to fix bug in MC addon?

1 messages · Page 1 of 1 (latest)

keen linden
#

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!)

copper flameBOT
#

<@&987246652869971988> please have a look, thanks.

thick jackal
#

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 peepo_happy

keen linden
#

the files and everything are just open in the mod to modify btw

copper flameBOT
#

How to fix bug in MC addon?

#

Changed the title to How to fix bug in MC addon?.

keen linden
#

ran into this however

#

the mod is on Modrinth and cursed forge

thick jackal
#

Oh, wow, the model is actually created in the java code, not defined in a json peepo_cry 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...

▶ Play video
#

The underlined values are most likely the ones you need to change to some other number. I'm unsure what numbers, though, so experiment peepo_happy

#

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 peepo_heart

#

Pinging for good measure @keen linden

keen linden
#

Thanks for the ping, I'll attempt it

keen linden
#

@thick jackal just to be sure, I use intelliJ IDEA to run this right?

thick jackal
#

It's proobably the most straightforward tool to use, so that's what I'd go with

keen linden
#

I couldn't find BEWLR exactly yet but I'll keep searching through

thick jackal
#

Are you using IDEA to browse the files?

keen linden
#

No, winrar

thick jackal
#

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

keen linden
#

Ah gotcha

thick jackal
keen linden
#

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

thick jackal
#

Have you imported the project from GitHub?

keen linden
#

yes!

#

installed git as well

thick jackal
#

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)

keen linden
#

Well in settings I see "run anything"

#

If you want me to run it

thick jackal
#

Can I please have a screenshot of what you see?

keen linden
thick jackal
#

Yeahhh that's not going to be it, do you have any other launch configurations when you click on Current File?

keen linden
#

Just edit config

thick jackal
#

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

keen linden
#

Gotcha gotcha

#

There's a runclient!

#

Im running it right now

#

oh wow this is super cool

#

I get to test the mod live

thick jackal
#

Not quite, you're going to have to restart after any change, but yes, it's basically that lol

keen linden
#

I think I'll change 90 into 110, it's pretty close to what I want

thick jackal
#

so it's working?

keen linden
#

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?

thick jackal
#

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)

keen linden
#

slight issue

#

do I add the dot or not to it?

thick jackal
#

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

keen linden
#

found build

thick jackal
#

yeah sure try that, the second task under the build folder icon

keen linden
#

successful!

thick jackal
#

Did it generate the .jar file in project>build>libs?

keen linden
#

Where do i check this in files btw

thick jackal
#

You should be able to just use the file explorer in the IDE

keen linden
#

I see it as a file!

thick jackal
keen linden
#

can I throw it into the pack then?

thick jackal
#

You should be able to, yeah

keen linden
#

Kickass

thick jackal
#

I don't recommend publishing it on the Modrinth page, though

keen linden
#

I guess that means I can't post it as part of the modpack either then

thick jackal
#

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

keen linden
#

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

thick jackal
#

So you're saying that if you were to only use WildIron without Hold My Items, the model would still look fine?

keen linden
#

yea basically

thick jackal
#

alright great

keen linden
#

lol

thick jackal
#

have fun then peepo_heart

keen linden
#

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

thick jackal
#

oh I can imagine that breaking quickly

#

yeahh

keen linden
#

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

thick jackal
#

Do you mean the verification process?

keen linden
#

as in like physically on the app

#

usually it shows up on the list of mods in the current pack

thick jackal
#

I'm unsure if it shows local files

keen linden
#

as in how this is how it looks compared to the rest

thick jackal
#

oh, no, that is absolutely not correct lol

keen linden
#

pff

#

I think I overlooked an important step

thick jackal
#

Not that this is the thing you should use

#

I'm sorry for not being thorough

keen linden
#

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?

thick jackal
#

Yeah definitely, you can just delete the existing wildiron jar in the modpack's mods folder

#

and paste in your own

keen linden
#

kickass!

keen linden
#

is it possible to change angle y for first person?

#

since doing that for gui worked pretty well

thick jackal
#

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

keen linden
#

this knowlege is still handy though so thanks!

keen linden
#

alternatively I wonder if I can blacklist Wildiron from Hold my items

#

so it can keep its animation

keen linden
#

also I guess we can say this question is solved because the solution is just talking to the "Hold my items" mod owner

#

which I'm getting to rn