Jump to content

[1.7.2] Change item angles/position/scale


yorri

Recommended Posts

You can create a renderer that implements IItemRenderer. It has three methods: handleRenderType, shouldUseRenderHelper, and renderItem.

 

Additionally, you'll need to register your ItemRenderer in your ClientProxy:

 

 MinecraftForgeClient.registerItemRenderer(YourMod.yourItem, new YourItemRenderer()); 

 

Please read the following for more info:

http://www.minecraftforge.net/wiki/Custom_2D_Inventory_Item_Renderer

 

Even though the example is for inventory rendering, I believe it can be applied to first and third person viewing. Hope this helps!

Link to comment
Share on other sites

You can create a renderer that implements IItemRenderer. It has three methods: handleRenderType, shouldUseRenderHelper, and renderItem.

 

Additionally, you'll need to register your ItemRenderer in your ClientProxy:

 

 MinecraftForgeClient.registerItemRenderer(YourMod.yourItem, new YourItemRenderer()); 

 

Please read the following for more info:

http://www.minecraftforge.net/wiki/Custom_2D_Inventory_Item_Renderer

 

Even though the example is for inventory rendering, I believe it can be applied to first and third person viewing. Hope this helps!

 

Thanks! It Help me! I make this in 3D.

[sOLVED]

Link to comment
Share on other sites

You can create a renderer that implements IItemRenderer. It has three methods: handleRenderType, shouldUseRenderHelper, and renderItem.

 

Additionally, you'll need to register your ItemRenderer in your ClientProxy:

 

 MinecraftForgeClient.registerItemRenderer(YourMod.yourItem, new YourItemRenderer()); 

 

Please read the following for more info:

http://www.minecraftforge.net/wiki/Custom_2D_Inventory_Item_Renderer

 

Even though the example is for inventory rendering, I believe it can be applied to first and third person viewing. Hope this helps!

Very thanks!

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



×
×
  • Create New...

Important Information

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