Jump to content

Recommended Posts

Posted

Hello,

I am sorry if the topic discussion/location is misleading in any way, this is my first post here.

To the point:

I am trying to create an entity using Eclipse and forge (Minecraft version 1.7.2). I have created the Entity class correctly, as well as registered it, because on test launching I successfully created a white box that panics like heck. I wanted to give it a model, so I followed a tutorial on creating the Render class, the Model class, and editing the ClientProxy class. That is where I am stumped, completely. Basically, when I try to do the RenderingRegistry.registerEntityRenderingHandler code, it errors saying its not applicable.

This is the ClientProxy class:

 

  Reveal hidden contents

 

 

I also have an error in the EntityRender class. For some reason, the last part of code says "Cannot cast from Entity to Entity Gorebiscus"

This is the code:

 

  Reveal hidden contents

 

 

And heres the Entity class just in case:

 

  Reveal hidden contents

 

 

And the main mod class:

 

  Reveal hidden contents

 

 

If it helps, the Model class:

 

  Reveal hidden contents

 

 

The model was made in Techne.

Thank you in advance, and once again, I apologize for anything wrong I did.

"A fight is going on inside me. It is a terrible fight, and it is between two Wolves. One is evil... He is Anger, Envy, Sorrow, Regret, Greed, Arrogance, Self-Pity, Guilt, Resentment, Lies, False Pride, and Superiority -- and Ego. The other is Good... He is Joy, Peace, Love, Hope, Serenity, Humility, Kindness, Benevolence, Empathy, Generosity, Truth, Compassion -- and Faith. The same fight is going on inside you, and inside every other person, too."

"But Papa, which Wolf will win?"

"The One you feed."

Posted

Hm... I seem to be just one step ahead of you. I used different methods and got no errors, but my Penguin only renders as a textureless white rectangular prism. Feel free to check out mine to see how to fix your errors. (It's the post right below!)

Developer of small, unreleased, basic, and incomplete mods since 2014!

Posted

I looked at your post and I don't see how it was fixed.

"A fight is going on inside me. It is a terrible fight, and it is between two Wolves. One is evil... He is Anger, Envy, Sorrow, Regret, Greed, Arrogance, Self-Pity, Guilt, Resentment, Lies, False Pride, and Superiority -- and Ego. The other is Good... He is Joy, Peace, Love, Hope, Serenity, Humility, Kindness, Benevolence, Empathy, Generosity, Truth, Compassion -- and Faith. The same fight is going on inside you, and inside every other person, too."

"But Papa, which Wolf will win?"

"The One you feed."

Posted

Agreed. My EntityPenguin has the following code:

public class EntityPenguin extends EntityAnimal {

//all of the code here

}

Developer of small, unreleased, basic, and incomplete mods since 2014!

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • https://mclo.gs/yYaROad make a new pack base and just readded each mod. now it gets stuck at loaded config  
    • Hey there! I removed Bobby as Pyralis suggested and found that I still had that and a another closely related bug (or same bug, different presentation) wherein a torch only illuminates its own block and gets smoothed 1 block out, then gone.   After comparing your modlist to mine (I'm on fabric, also 1.20.1) I found we had 2 mods with the same versions. Mine || Yours Bobby-5.0.1.jar ||bobby-1.20.1_v5.0.1.jar ImmediatelyFast-Fabric-1.2.17+1.20.4.jar || ImmediatelyFast-Forge-1.2.17+1.20.4.jar Removing ImmediatelyFast.. immediately (馃槈) seems to have fixed the issue. Since it's client only- no new world needed either! To note, I also removed all mods related to or containing direct requirements for Sodium, Indium and Iris which may have played a role, I did not test with re-adding.
    • For anyone still looking for the equivalent for 1.19.2+, the render type should be set for the model. In datagen, this can be done by using ModelBuilder::renderType, otherwise just add the line directly to the json file. As for the validity of this question, the idiomatic solution is presented nowhere online; ModelBuilder::renderType is never addressed when discussing block render types meaning that the solution I have provided is the first mentioned usage. Furthermore, there are no external references to this function meaning that to discover its existence requires a deep search through Forge's code. Therefore it is not only understandable but expected that most beginner modders would struggle to find this function given the already poor documentation of Forge's API.
    • Same issue without voicechat?
    • Start by following the docs to get a workspace setup: https://docs.minecraftforge.net/en/latest/gettingstarted/ Then poke around some of the tutorials, https://www.mcjty.eu/docs/1.20/ used to be the goto, but not sure if there are any updates for regular forge or not, but if you've brushed up on Java, it will be enough to get you started. Poke around the Minecraft and Forge sources to see how things are done. Read the FAQ for information on how to post code/logs when you run into issues. Share as much info on issues you have as possible. Use github to host projects, chances of someone helping are higher when they can actually see all your code and/or build it themselves. And finally, keep it on the forums, don't direct message people with questions, most people do not provide personal support like that. Also keep in mind forums posts are not always immediately answered, if you're looking for a quicker response, you can always try the Minecraft Forge discord server.
  • Topics

  • Create New...

Important Information

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