Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Making first 1.15 entity, I would be eternally grateful for any help with errors

Featured Replies

Posted

Have multiple errors including:

 

reason: no instance(s) of type variable(s) T exist so that Class<TutorialEntity> conforms to EntityType<T>

 

Class 'TutorialEntityModel' must either be declared abstract or implement abstract method 'setRotationAngles(T, float, float, float, float, float)' in 'EntityModel'

 

'cubeList' has private access in 'net.minecraft.client.renderer.model.ModelRenderer

 

Cannot resolve symbol 'ModelBox'

 

I have a novice understanding of java while improving I'm still quite in my preliminary stages 

-having problems with importing ModelBox 

-don't know how to make the access on cubelist public 

-I thought I implemented IRenderFactory correctly but apparently I did not 

Forgive me on any negligence on my part this is my first post and aforementioned first entity, again I'm grateful for your consideration for help, thank you  

 

 

 

 

 

code I believe which are error prone link right here for context:

https://pastebin.com/bQmxWvkB

55 minutes ago, Yoseph123 said:

'cubeList' has private access in 'net.minecraft.client.renderer.model.ModelRenderer

Use .addBox method instead.

 

Example code:

this.bipedBody = new ModelRenderer(this, 0, 1);

this.bipedBody.addBox(0F, 0F, 0F, 11, 11, 11);

this.bipedBody.setRotationPoint(-5F, -1F, -6F);

 

If you are using Eclipse you can view vanilla Minecraft entity models implementation

in "Project and External Dependencies/forge_1.15 (...) /net/minecraft/client/renderer/entity/model"
It could be helpful.

Edited by Saturnin_UFOlud

  • Author

thank you for the quick response, I'll see if it works I'm using IntelliJ unfortunately and Ive been scouring for the vanilla code

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.