Jump to content

Recommended Posts

Posted

Hello, I'm making an Entity that extends AbstractArrow, but when I was making the Renderer and the Model. I realized that the "setupAnim(...)" method was running on entities that it shouldn't run on. In the case,  an entity's "animation" was running on another entity animation.

I think the problem is in the renderer, here's the code.  

  Reveal hidden contents

Here's the Model class too:

  Reveal hidden contents

 

Posted (edited)

Show your registration code.

While you are at it show all the code, so we don't have to play a guessing game on what you might be doing wrong.

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted
  Reveal hidden contents

All the other entities model work fine.

Posted (edited)

No the registration of entity renders. That's why I said post all the code.

Otherwise, this will be another time sink of a thread trying to track down a simple typo in code we can't see.

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted

Oh, I see. Sorry, here's the repository https://github.com/luccaPossamai/M.O.Hard-FORGE

I will send the renderers registration anyway.

  Reveal hidden contents

 

Posted

I don't see an obvious typo or incorrect use of static methods/fields.

So I tried to run your mod, but I get this error.

  Quote

Caused by: java.io.FileNotFoundException: mohard:particles/vilio.json
        at net.minecraft.server.packs.resources.ResourceProvider.lambda$getResourceOrThrow$0(ResourceProvider.java:20) ~[forge-1.19.2-43.1.52_mapped_official_1.19.2.jar%23183!/:?] {re:classloading}
 

Expand  

Can you make sure the repo is up-to-date with what you are testing.

Also can you give instructions on how I can reproduce the issue.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted

Oh I'm sorry, now It's fixed in the repository.

To see the problem you must right click an item called "Wand"(Artifacts tab). This way you'll launch an amethyst boulder, when it stops bouncing, if you press right click again you'll launch another boulder, but, the one that is in the ground will rotate too.

Posted (edited)

Ok, I understand the problem now.

When you said 

  Quote

I realized that the "setupAnim(...)" method was running on entities that it shouldn't run on. In the case,  an entity's "animation" was running on another entity animation.

Expand  

I thought you meant it was drawing the model for a completely different entity type. I was looking for where you had a miss typed a resource location.

 

Your problem is the model is shared by all entities. So if you rotate one entity, you need to reset the model when doing the next entity.

You only changing it conditionally so the entity will have the rotation from the previous entity if your condition check fails.

For some reason you are double checking the condition as well?

https://github.com/luccaPossamai/M.O.Hard-FORGE/blob/deabf4f1850ea3ea30f8220ed067a1709229cee6/src/main/java/net/lucca/mohard/entities/amethystBoulder/AmethystBoulderRenderer.java#L34

https://github.com/luccaPossamai/M.O.Hard-FORGE/blob/deabf4f1850ea3ea30f8220ed067a1709229cee6/src/main/java/net/lucca/mohard/entities/amethystBoulder/AmethystBoulderModel.java#L40

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.