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
  • ----------------
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
chimera27

----------------

By chimera27, November 10, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

chimera27    5

chimera27

chimera27    5

  • Creeper Killer
  • chimera27
  • Members
  • 5
  • 158 posts
Posted November 10, 2014 (edited)

----------------

Edited August 18, 2018 by chimera27
  • Quote

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Share this post


Link to post
Share on other sites

memcallen    8

memcallen

memcallen    8

  • Diamond Finder
  • memcallen
  • Members
  • 8
  • 343 posts
Posted November 10, 2014

Why are you doing setFull3D twice? Once in item class and in main class. Also does the resource location in the ItemRenderer work like that? I thought you had to do modid:texturepath.

  • Quote

The proud(ish) developer of Ancients

Share this post


Link to post
Share on other sites

TheGreyGhost    819

TheGreyGhost

TheGreyGhost    819

  • Reality Controller
  • TheGreyGhost
  • Members
  • 819
  • 3280 posts
Posted November 10, 2014

Hi

 

For each of the four views(Inventory, first person, third person, entity):

- does it render correctly in 3D?

- if not, what does it look like?  2D, or invisible?

 

This link might help, see the Item Rendering sections

http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html

and especially

http://greyminecraftcoder.blogspot.com.au/2013/09/custom-item-rendering-using.html

 

I notice that renderItem doesn't handle INVENTORY?

 

-TGG

  • Quote

Share this post


Link to post
Share on other sites

chimera27    5

chimera27

chimera27    5

  • Creeper Killer
  • chimera27
  • Members
  • 5
  • 158 posts
Posted November 10, 2014 (edited)

----------------

Edited August 18, 2018 by chimera27
  • Quote

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Share this post


Link to post
Share on other sites

JoJoModding    0

JoJoModding

JoJoModding    0

  • Tree Puncher
  • JoJoModding
  • Members
  • 0
  • 20 posts
Posted November 10, 2014

I think you should use the RenderHelper, means that shouldUseRenderHelper should return true.

  • 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 10, 2014

Hi

 

Do these lines print something to console or not?

System.out.println("Setting Render Types");

System.out.println("Rendering1");

I notice you aren't using the ClientProxy and CommonProxy properly.

See here

http://greyminecraftcoder.blogspot.com.au/2013/11/how-forge-starts-up-your-code.html

 

-TGG

 

 

 

  • Quote

Share this post


Link to post
Share on other sites

chimera27    5

chimera27

chimera27    5

  • Creeper Killer
  • chimera27
  • Members
  • 5
  • 158 posts
Posted November 10, 2014 (edited)

----------------

Edited August 18, 2018 by chimera27
  • Quote

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Share this post


Link to post
Share on other sites

TheGreyGhost    819

TheGreyGhost

TheGreyGhost    819

  • Reality Controller
  • TheGreyGhost
  • Members
  • 819
  • 3280 posts
Posted November 11, 2014

Hi

 

I think, if you fix your proxy, it will fix your renderer registration problem.  Currently the clientproxy method never gets called.

 

-TGG

  • Quote

Share this post


Link to post
Share on other sites

DeMoMan159    0

DeMoMan159

DeMoMan159    0

  • Tree Puncher
  • DeMoMan159
  • Members
  • 0
  • 7 posts
Posted November 11, 2014

Hello I'm obsesed with 3D item rendering.

 

I've found some differences between my mod and yours in the ClientProxy

try to register the renderer like so (taken from my mod):

MinecraftForgeClient.registerItemRenderer(MagicItems.WoodenWand, new RenderWoodenWandItem());

also I usually do in my Item class both this.isFull3D(); and  this.setFull3D(); in the constructor instead of the bFull3D = true.

 

  • Quote

Share this post


Link to post
Share on other sites

DeMoMan159    0

DeMoMan159

DeMoMan159    0

  • Tree Puncher
  • DeMoMan159
  • Members
  • 0
  • 7 posts
Posted November 11, 2014

and also in your main mod class don't register the clientProxy.registerRenders but register it on common proxy (I'm doing it like this and it works for me)

  • 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 12, 2014

and also in your main mod class don't register the clientProxy.registerRenders but register it on common proxy (I'm doing it like this and it works for me)

whoa dude, danger zone there

It will work fine until you try and run your mod on a dedicated server.  Then it will fall in a heap.  Client-side-only stuff like renderers should be in client proxy.

 

-TGG

  • 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

    • Eksity
      Another freaking "error in currently selected datapacks prevented world from loading"

      By Eksity · Posted 16 minutes ago

      for some reason my forge won't run without optifine... resource packs maybe? anyway, here's the mod list (beware it's pretty long) https://gist.github.com/Eksity/e58ed8c0e2abf028d34780e5938bcea5
    • BeardlessBrady
      [1.16.4] Generating a resource pack on startup

      By BeardlessBrady · Posted 1 hour ago

      Im looking to generate a resource pack on startup if it hasen't been generated before. There must be a way to generate files in the running environment as thats what the config files are. I assume its fileIO stuff but I am not sure if there is anything special to do it through forge and to get the resourcePack folder location.
    • Ricardo Libero
      Missing texturo on placed Block

      By Ricardo Libero · Posted 2 hours ago

      oh thanks i didnt see that, i was paying more attention to the codes hehe 
    • NorthWestWind
      [1.16.5] Make item render like bow in thirdperson

      By NorthWestWind · Posted 2 hours ago

      Yes, I'm looking for such behaviour. However, I want my item to have such behaviour even without right-click.
    • Beethoven92
      [1.16.5] Make item render like bow in thirdperson

      By Beethoven92 · Posted 2 hours ago

      Hmmm the bow always aim at where the player is looking at, doesn't matter if it is first or third person view...do you want your item to have a similar behaviour to the bow when right clicked? You can override getUseAction in your item class and return UseAction.BOW
  • Topics

    • Eksity
      2
      Another freaking "error in currently selected datapacks prevented world from loading"

      By Eksity
      Started 5 hours ago

    • BeardlessBrady
      0
      [1.16.4] Generating a resource pack on startup

      By BeardlessBrady
      Started 1 hour ago

    • Ricardo Libero
      2
      Missing texturo on placed Block

      By Ricardo Libero
      Started 4 hours ago

    • NorthWestWind
      2
      [1.16.5] Make item render like bow in thirdperson

      By NorthWestWind
      Started 12 hours ago

    • FlippenFrosted
      1
      NPC mod help

      By FlippenFrosted
      Started February 20

  • Who's Online (See full list)

    • Eksity
    • sebazthebasss
    • pitbox46
    • Zeher_Monkey
    • brok4d
    • RiZe_Wolfz
    • Choonster
    • BWBeans
    • LK1905
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ----------------
  • Theme

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