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
  • Why can't I apply the model to the entity when it's code?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
방세준

Why can't I apply the model to the entity when it's code?

By 방세준, November 8, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020

https://github.com/bangsejun/1.15.2-
Why can't I apply the model to the entity when it's code?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7618

diesieben07

diesieben07    7618

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7618
  • 55235 posts
Posted November 8, 2020

You did not register your renderer. Check RenderingRegistry.registerEntityRenderingHandler and it's documentation.

  • Quote

Share this post


Link to post
Share on other sites

TheGreyGhost    819

TheGreyGhost

TheGreyGhost    819

  • Reality Controller
  • TheGreyGhost
  • Members
  • 819
  • 3280 posts
Posted November 8, 2020

https://github.com/TheGreyGhost/MinecraftByExample/tree/1-15-2-final/src/main/java/minecraftbyexample/mbe81_entity_projectile

  • Quote

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
2 hours ago, diesieben07 said:

렌더러를 등록하지 않았습니다. RenderingRegistry.registerEntityRenderingHandler 및 문서를 확인하십시오.

 

Is there a problem with the RabbitRender file? I'd appreciate it if you could tell me in detail and easily.
  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7618

diesieben07

diesieben07    7618

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7618
  • 55235 posts
Posted November 8, 2020

None that I can see - you just don't register it.

  • Quote

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
42 minutes ago, diesieben07 said:

None that I can see - you just don't register it.

Where should I register?

  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    69

Beethoven92

Beethoven92    69

  • Dragon Slayer
  • Beethoven92
  • Members
  • 69
  • 562 posts
Posted November 8, 2020 (edited)

They should be register during the FMLClientSetupEvent...In you client proxy class you even added a method for that:

public void registerRenderers(Item item, int meta, String id) {
}

 

Edited November 8, 2020 by Beethoven92
  • Quote

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
2 minutes ago, Beethoven92 said:

In you client proxy, you even added a method for that:


public void registerRenderers(Item item, int meta, String id) {
}

 

1144430883_(209).png.358f288aa8a95b63493b81a0d36b5331.png

 

It's gray. What should I do?

  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    69

Beethoven92

Beethoven92    69

  • Dragon Slayer
  • Beethoven92
  • Members
  • 69
  • 562 posts
Posted November 8, 2020
1 minute ago, 방세준 said:

It's gray.

So? Also, have you even read what Diesieben07 and TheGreyGhost suggested you? They basically gave you the solution..take some time to read the documentation and GreyGhost's example code please

  • Quote

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
2 minutes ago, Beethoven92 said:

So? Also, have you even read what Diesieben07 and TheGreyGhost suggested you? They basically gave you the solution..take some time to read the documentation and GreyGhost's example code please

I read it several times, but I couldn't understand it well because the translator was weird.

  • Quote

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
43 minutes ago, Beethoven92 said:

그래서? 또한 Diesieben07과 TheGreyGhost가 제안한 내용을 읽어 보셨습니까? 그들은 기본적으로 솔루션을 제공했습니다. 문서와 GreyGhost의 예제 코드를 읽으십시오.

No matter how much I read and think about it, I don't know.

  • Quote

Share this post


Link to post
Share on other sites

loordgek    174

loordgek

loordgek    174

  • World Shaper
  • loordgek
  • Members
  • 174
  • 1800 posts
Posted November 8, 2020

can you stop using a big font

  • Quote

Share this post


Link to post
Share on other sites

방세준    1

방세준

방세준    1

  • Tree Puncher
  • 방세준
  • Members
  • 1
  • 17 posts
Posted November 8, 2020
15 minutes ago, loordgek said:

can you stop using a big font

yes

  • Like 1
  • Quote

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 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • IchBinEinToast
      Task :runClient FAILED | FAILURE: Build failed with an exception.

      By IchBinEinToast · Posted 10 minutes ago

      Oh I solved it  Thank you @diesieben07
    • domi0908
      fix hitbox red baby mobs version forge

      By domi0908 · Posted 11 minutes ago

      fix bug 
    • Tavi007
      Need help with modifying some vanilla rendering [1.16.4]

      By Tavi007 · Posted 14 minutes ago

      Hello! I'm modifying the damage calculation by subscribing to LivingHurtEvent and scaling the damage value. This works fine, but now I also want to change the rendering a bit. My current LivingHurtEvent looks like this (I removed some unnecessary stuff) @SubscribeEvent public static void elementifyLivingHurtEvent(LivingHurtEvent event) { // compute new damage value .... // heals the target, if damage is lower than 0. This can happen with my modification if(damageAmount <= 0) { target.heal(-damageAmount); event.setCanceled(true); //does this even do something? damageAmount = 0; } event.setAmount(damageAmount); }   1. I want to change the red texture (an OverlayTexture?) to a green one, if the targets is healed. But I don't really know, where I should start with this task. I couldn't even find the code, that applies the red texture. So which Event do I need to hook in, so I can change this texture? Is it RenderLivingEvent? I also would like to read the vanilla code. I'm assuming, that the red overlayTexture is applied as long as hurttime>0, and that I might need to work around this with capabilities. 2. I also would like to reduce the screen shake (or at least disable it, when no damage has been dealt). Here I got the same question as 1. As you can see, I'm not really experienced with all the render stuff. It's my first time working with it.   3. Not really a question about rendering, but I didn't want to create a new thread for a single problem. I would also like to prevent the hurt-sound from firing, if no damage has been dealt and instead play another sound. Again I have no idea, where I would have to start looking in the vanilla code or which event I should use.   So yeah, I'm quite clueless and I hope you can help me out. Here is my repository, if you need more informations: https://github.com/Tavi007/ElementalCombat
    • Ottercorn
      Unable to install forge 1.16.5

      By Ottercorn · Posted 36 minutes ago

      I have problems too. I'm not the brightes crayon in the box when it comes to technical things, so please be patient and nice ;) I downoaded installer from website and extarced it. It looks like that:   https://ibb.co/pZw4QJb   Inside it looks like that:   https://ibb.co/p3CHw1J   Installer folder look like this, but none of it works, i dont have installed on my computer anything that could open it   https://ibb.co/SffK0HR   Pretty Please! Help! I want nice things in minecraft, especially OTTERS :)   Thank You!
    • IchBinEinToast
      Task :runClient FAILED | FAILURE: Build failed with an exception.

      By IchBinEinToast · Posted 36 minutes ago

      Oh my god! It works, but when I start it comes directly from minecraft an error "Missing License Information in file Mod File"
  • Topics

    • IchBinEinToast
      5
      Task :runClient FAILED | FAILURE: Build failed with an exception.

      By IchBinEinToast
      Started 1 hour ago

    • domi0908
      1
      fix hitbox red baby mobs version forge

      By domi0908
      Started 21 hours ago

    • Tavi007
      0
      Need help with modifying some vanilla rendering [1.16.4]

      By Tavi007
      Started 14 minutes ago

    • Tyrone117
      2
      Unable to install forge 1.16.5

      By Tyrone117
      Started 8 hours ago

    • Luis_ST
      7
      [1.16.5] Enchantments can Apply to all Tools

      By Luis_ST
      Started 5 hours ago

  • Who's Online (See full list)

    • vemerion
    • diesieben07
    • loordgek
    • MegaTigerpaw
    • JoB76205
    • Tavi007
    • Ottercorn
    • Leronus
    • kaiser_
    • domi0908
    • IchBinEinToast
    • alexguimbretiere86
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Why can't I apply the model to the entity when it's code?
  • Theme

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