Jump to content

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


Drachenbauer

Recommended Posts

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?

Link to comment
Share on other sites

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.

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

Link to comment
Share on other sites

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 by Drachenbauer
Link to comment
Share on other sites

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.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Link to comment
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.
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

    • 东南亚Go-Stop游戏厅♨BCGAME55·COM @ 东南亚Go-Stop网站Book Makedonia东南亚Go-Stop转播Win Casino Go-Stop网站Ryberia Go-Stop方法[本社的Tele @JBOX7] 东南亚Go-Stop Bar西亚东南亚Go-Poon 格伦纳丁GO-Stop扑克大赛刚果民主Goostop Coopon[总经销的Kakao Talk JBOX7] 东南亚 Gomino Saition网站] 制作方法[东南亚 G 赌场 [赌场总公司] 东南亚Go Stop 转播 帕劳 东南亚Go Stop总经销 苏里南Go Stop 视频 罗马尼亚Go Stop战略 尼泊尔东南亚Go Stop方法西非Go Stop赌场尼日利亚Go Stop Tour[TOTO总公司咨询]东南亚Go Stop连接冈比亚东南亚 GOSTOP SITE Estonia GOSTOP MALLET MALLATION GOSTOP招募[TOTOTOTO总经销购买]东南亚 GOSTOP比赛 NIGOSTOP TANGE GOSTOP TALLIGOTION GOSTOP总经销 Holdumba厄瓜多尔Go Stop赌场酒吧新西兰Go Stop总经销[Bakara总经销]东南亚Go Stop转播巴登巴登东南亚Go Stop游戏场台湾Go Stop社区塞内加尔Go Stop招募[赛马总经销]东南亚Go Stop视频葡萄牙东南亚Go Stop方法 Falls View赌场Kosogos游戏场Cipross Gosing地址[BCGME BC Game总经销咨询]设置通知推荐订阅点赞
    • 全球LAPT推荐™BCGAME55·COM℡ 全球LAPT YouTube 意大利全球LAPT总经销匈牙利LAPT赌场酒吧 新加坡LAPT Holdom Pub[本文的Tele @JBOX7] 全球LAPT淘汰赛塞尔维亚全球LAPT推荐赞比亚LAPT扑克大赛 西非的LAPT游戏厅[总经销的Kakao Talk JBOX7] 缅甸的环球网游 马里网游 加拿大网 制作地址:非洲网吧 制作。 LAPT战略也门LAPT Bakara Pub [赌场总公司] 全世界LAPT招募不丹LAPT Holdomba阿富汗LAPT游戏场 Tubalu LAPT战略 [体育总公司] 全世界LAPT比赛 Ibiza Gran Cagino 全世界 LAPT Bakara Pub Armenia LAFT 旅行[TOTOTO总公司咨询] 全世界 LAPT KUPONG叙利亚 LAST 连接 TUKET 土耳其 土耳其 TUKET社区旅行 [TOMET] 社区埃及LAPT地址[YAMATO总公司]全球LAPT方法利比亚全球LAPT总经销厄立特里亚LAPT连接列支敦士登LAPT战略[巴卡拉总经销]全球LAPT联赛黑塞哥维那全球LAPT赛亚特兰蒂斯卡吉诺LAPT视频刚果(刚果)(赛马总经销)]全球LAPT赌城冈比亚全球LAPT比赛尼加拉瓜LAPT战略多哥LAPCA游戏总经销点赞设定]
    • 世界杯搏击网站♥BCGAME55·COM‡世界杯搏击企业欧洲世界杯搏击YouTube度假村世界赌场搏击Holdom Pub Falls View赌场搏击地址[本社文义通 @JBOX7]世界杯搏击YouTube北非世界杯搏击总经销卢森堡搏击巴卡拉波普 刚果(Kakao Talk JBOX7] 推荐世界杯Holdom Barwago世界杯台湾格斗高尔夫球场异种格斗视频制作方法] 巴登巴登世界杯搏击赛场吉尔吉斯斯坦搏击赛场Suncity搏击赛场[赌场总部]世界杯搏击赛场梵蒂冈时局世界杯搏击赛场库彭博茨瓦纳搏击赛场黎巴嫩搏击赛场][体育总部]世界杯搏击扑克大赛圣马力诺世界杯终极格斗视频巴登巴登巴登终极格斗赛场立陶宛终极格斗联赛[兔本社咨询]世界杯终极格斗联赛 NATHUDUDUBBA世界杯UTHUDUDUTUTBBBE 购买世界杯终极格斗大赛 异种格斗赌场酒吧阿富汗世界杯异种格斗Cash游戏Suri Nam异种格斗登录白俄罗斯异种格斗总经销[Yamato总公司]世界杯异种格斗Coopoon加拿大世界杯异种格斗转播卢旺达异种格斗游戏场东南亚异种格斗Coopoon[Bakara总经销] [赛马总经销]世界杯 东南亚搏击战略游戏Coopoon[Bakara总经销]澳大利亚世界杯搏击转播 圣玛丽诺 圣卡拉波普 西非地区搏击 Bakpojokpoon]
    • Major异种格斗Coopoon▲BCGAME55·COM↖Major异种格斗网站特立尼达Major异种格斗网站西非异种格斗比赛凯撒帕里斯卡吉诺异种格斗巡回赛[本社咨询的Tele @JBOX7] Major异种格斗游戏场也门Major异种格斗社区Leoal Sweet赌场异种格斗企业玻利维亚的Kakao Talk JBOX7] Major 制作Major 杂技比赛 土耳其YObaser 奥赛场。 搏击网站西班牙Major搏击网站Coupoon Benesian赌场搏击亚洲战略[赌场总公司] Major搏击联盟以色列Major搏击赌场俱乐部乌拉圭Major搏击战略挪威Major搏击Bakara Pub [体育总公司] Major搏击扑克大赛 Cesaspaliscagino Major招募巴西Honger格斗视频柬埔寨终极格斗团聊天室[TOTOTOTOB咨询] Major中国Mazer终极格斗比赛 终极格斗大赛 凯尔特人棒球赛 认证赛 终极格斗视频认证] [Major] 搏击转播 希腊Major 搏击视频 萨摩亚 搏击赛 比利时Major 搏击总经销商 山多总公司] Major 世界搏击中心 Major World Casino Major Major 的搏击总经销南亚搏击缓存游戏 安提瓜和巴布达搏击网站[Bakara总经销] Mazo Lizer Baghwaghite Baghilvily Mazer Net Warnet Warnets.
    • 手机奥林匹克YouTube♪BCGAME55·COM↔手机奥林匹克Cash游戏Polsview Casino 手机奥林匹克游戏中非奥林匹克淘汰赛尼日利亚奥林匹克游戏[本社的Tele @JBOX7] 手机奥林匹克竞赛 Sun City Mobile 奥运会比赛 伊拉克奥林匹克网站 东亚奥林匹克Holdumba[总经销的Kakao Talk JBOX7] 手机奥运会比赛萨尔瓦多MGM Cash Casino 奥运会网站 MGM Casino[各种官方网站 Office Casicaltournia Mobile Office Officalsulections]推荐] 京畿[赌场总公司] 手机奥林匹克旅行 沙特阿拉伯 手机奥林匹克旅行 韩国奥林匹克总经销 刚果民主奥林匹克竞赛 [体育总公司] 手机奥林匹克游戏场 不丹手机奥林匹克地址 特朗普泰姬陵 赌场奥林匹克影像 Wincasino奥运会影像征集[TOTO总公司咨询]手机奥林匹克游戏 Grena Mobile Olication Communication National Offication National Offication National Communication Love[TOTOTOTOTO总经总经销] Mobile Kongo Mobile Korea Mobal Offoria Mobile Offection. Marina Bay奥运Coopoon非洲奥运转播[巴卡拉总经销] 移动奥运招募 阿塞拜疆移动奥运招募 哈萨克斯坦奥林匹克Holdemba坦桑尼亚奥林匹克赌场[赛马总经销] 移动奥运战略 乌兹别克斯坦移动奥运社区厄立特里亚奥林匹克总部 西亚奥运转播[BCGAME BC GAME 游戏总经销咨询] 设置通知推荐订阅点赞
  • Topics

×
×
  • Create New...

Important Information

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