Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Do i need an entity-class for my own player-model?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 3
Drachenbauer

Do i need an entity-class for my own player-model?

By Drachenbauer, February 16, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Drachenbauer    5

Drachenbauer

Drachenbauer    5

  • Dragon Slayer
  • Drachenbauer
  • Members
  • 5
  • 724 posts
Posted February 16, 2020

Hello

 

As i tried to create my own player-entity-class for my player-model, i copyed the content of the vanilla PlayerEntity-class (from the actual version of the code) into an own class and renamed it for my own player-charecter.

But i get alot of syntax-errors, wich say, that some methods cannot use my customized class as input, or don´t exist here...

 

Now i only found stuff on the web, that tells about the model-class and the renderer of a custom entity, but it tells nothing about a custom Entity-Class for a player.

Does that mean, i nead no entity-classes for my custom Player-models?

  • Quote

Share this post


Link to post
Share on other sites

Busti    72

Busti

Busti    72

  • Dragon Slayer
  • Busti
  • Forge Modder
  • 72
  • 624 posts
Posted February 16, 2020

DO NOT COPY CODE FROM THE GAME, especially entire files.  

Are you trying to create an Entity that looks like a player,

or are you trying to create a custom model for the player?


In the first case you should probably create a custom entity and renderer for that entity. In case it is a Monster, MonsterEntity is probably a good starting point.  

In case you are trying to render a custom player model, you should have a look at net.minecraftforge.client.event.RenderPlayerEvent. It get's fired whenever a player is being rendered and you can even disable player rendering alltogether and replace it with your own renderer.

  • Quote

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Share this post


Link to post
Share on other sites

Drachenbauer    5

Drachenbauer

Drachenbauer    5

  • Dragon Slayer
  • Drachenbauer
  • Members
  • 5
  • 724 posts
Posted February 19, 2020

i want to change the model of the player.

That means, i need no entity-class for it, i think.

  • Quote

Share this post


Link to post
Share on other sites

DragonITA    12

DragonITA

DragonITA    12

  • Dragon Slayer
  • DragonITA
  • Members
  • 12
  • 552 posts
Posted February 19, 2020
On 2/17/2020 at 12:07 AM, Busti said:

DO NOT COPY CODE FROM THE GAME, especially entire files.  

Why?

  • Quote

New in Modding? == Still learning!

Share this post


Link to post
Share on other sites

DragonITA    12

DragonITA

DragonITA    12

  • Dragon Slayer
  • DragonITA
  • Members
  • 12
  • 552 posts
Posted February 19, 2020
47 minutes ago, Drachenbauer said:

i want to change the model of the player.

That means, i need no entity-class for it, i think.

You simply can extend the Playermodelclass.

  • Quote

New in Modding? == Still learning!

Share this post


Link to post
Share on other sites

Drachenbauer    5

Drachenbauer

Drachenbauer    5

  • Dragon Slayer
  • Drachenbauer
  • Members
  • 5
  • 724 posts
Posted February 19, 2020 (edited)

that´s what i dit now.

 

For one variant:

How do i keep the body-, arms, and legs-parts of the armour invisible while wearing them?

Itßs a small and compact character, that is fully covered in the helmet.

 

and how can i change the collision-box-size to fit to this model (should be able to enter one block high horizontal tunnels)

Edited February 19, 2020 by Drachenbauer
  • Quote

Share this post


Link to post
Share on other sites

DragonITA    12

DragonITA

DragonITA    12

  • Dragon Slayer
  • DragonITA
  • Members
  • 12
  • 552 posts
Posted February 19, 2020

Then i cant help you, i am new to entities models. Sorry!

  • Quote

New in Modding? == Still learning!

Share this post


Link to post
Share on other sites

Busti    72

Busti

Busti    72

  • Dragon Slayer
  • Busti
  • Forge Modder
  • 72
  • 624 posts
Posted February 19, 2020

@DragonITA because that will bring you into a problematic situation regarding the copyright of the game. 

 

  • Quote

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Share this post


Link to post
Share on other sites

DragonITA    12

DragonITA

DragonITA    12

  • Dragon Slayer
  • DragonITA
  • Members
  • 12
  • 552 posts
Posted February 19, 2020

@Busti I am under 16 years old, a few examples of what would happen?

  • Quote

New in Modding? == Still learning!

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted February 19, 2020

Probably nothing would happen if you copy paste a single class. That being said, you don’t want to go around illegally sharing someone else’s intellectual property.

You also don’t want to copy vanilla’s code because it changes often (and the changes may break your copied code) and usually uses legacy code that hasn’t been updated in 10 years. Forge usually provides better systems and better ways of doing stuff.

  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 3
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • JayNeedsHelp
      How can I fix this encoding issue?

      By JayNeedsHelp · Posted 1 hour ago

      Hey so I'm creating a forge mod and I'm trying to use the "§" character but I'm getting an illegal character error in the compiler. I've tried using the -encoding option in the compiler, I've also tried converting the file to UTF-8 without BOM, but it wasn't UTF-8 BOM in the first place. I was making a jar mod with mcp in eclipse and everything was working just fine with these characters, which I'm now moving to a forge mod. I'm using IntelliJ Community IDEA currently.   Here's a link to part of the error list: https://jay-hosts-a.dark-web.store/6AXsbJqG. Obviously the other errors were due to the illegal character error but I thought I might as well show it. I'm making a forge mod for 1.12.2, forgegradle is version 2.3-SNAPSHOT and I'm using mixingradle-0.6-SNAPSHOT.   I'm not sure how to fix this and any help would be greatly appreciated.
    • mchase
      Forge crashing

      By mchase · Posted 1 hour ago

      I downloaded and installed forge for 1.16.4 and it shows up in my installations and will start to open but then crashes and gives me "exit code 255". I am on MacOS if that makes a difference. it says The game crashed whilst initializing game Error: java.lang.IllegalStateException: GLFW error before init: [0x10008]Cocoa: Failed to find service port for display Exit Code: 255 does forge just not work on Mac? am I missing something? please help
    • MiToKonndria
      cant download pixelmon

      By MiToKonndria · Posted 1 hour ago

      when i click install on the Pixelmon modpack it gets to 42% and mod 3 out of 7 and then gives me the error message: Timeout attempting to download: "https://edge.forgecdn.net/files/3072/298/pixelmon-1.12.2-8.1.2-universal.jar"
    • lupicus
      can someone help with server crashing

      By lupicus · Posted 1 hour ago

      Looks like Wonderful Enchantments has problems, try and remove it.
    • Draco18s
      can someone help with server crashing

      By Draco18s · Posted 1 hour ago

      Surprise, accessing the client thread from the server thread isn't possible. Bitch at the author of wonderfulenchantments.
  • Topics

    • JayNeedsHelp
      0
      How can I fix this encoding issue?

      By JayNeedsHelp
      Started 1 hour ago

    • mchase
      0
      Forge crashing

      By mchase
      Started 1 hour ago

    • MiToKonndria
      0
      cant download pixelmon

      By MiToKonndria
      Started 1 hour ago

    • IRONDALEK
      3
      can someone help with server crashing

      By IRONDALEK
      Started 6 hours ago

    • Twu
      0
      Need help with Potion Brewing recipes

      By Twu
      Started 1 hour ago

  • Who's Online (See full list)

    • mcnuggies
    • NullDev
    • pitbox46
    • sebazthebasss
    • Befell
    • ChubzRequiem
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Do i need an entity-class for my own player-model?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community