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

    • Rakaldo
      Forge not showing in the lanucher

      By Rakaldo · Posted 1 minute ago

      I have downloaded forge but it still wont show up in the launcher https://prnt.sc/10c4blb (btw its 1.16.4)
    • GhostGamesFSM
      1.16 Ore generation.

      By GhostGamesFSM · Posted 15 minutes ago

      sorry for the txt, but thanks for the comment. I don't have a BiomeLoadingEvent, but I just have to see how I do that. When I have that I send you a message if that works.
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 16 minutes ago

      just ran it again to get more updated logs  debug-1.log.gz
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 20 minutes ago

      when loading into my world it says its loading, and then changes to a dirt background with no text; i've looked at multiple threads, forums and videos but i can't find any issue similar to mine (at least on a similar version)  debug-1.log.gz
    • Beethoven92
      [1.16.5] Beacon Overwrite (Screen Error)

      By Beethoven92 · Posted 27 minutes ago

      I apologize...i misread the part where you say that your custom beacon inventory actually opens fine! Yeah, the proximity check is doing its job, the problem seems to be that when pressing the confirm button you are sending a vanilla CUpdateBeaconPacket, then handled by the server, which will check if your open container is a BeaconContainer. It would be helpful to see the complete code you have, please post a link to your repository
  • Topics

    • Rakaldo
      0
      Forge not showing in the lanucher

      By Rakaldo
      Started 1 minute ago

    • GhostGamesFSM
      2
      1.16 Ore generation.

      By GhostGamesFSM
      Started 17 hours ago

    • HOTSAUCEMAN
      1
      help with loading my world

      By HOTSAUCEMAN
      Started 20 minutes ago

    • Nyko
      3
      [1.16.5] Beacon Overwrite (Screen Error)

      By Nyko
      Started Yesterday at 07:22 AM

    • samjviana
      5
      [1.16.5] How to make EnchantedBook go to Custom ItemGroup

      By samjviana
      Started Sunday at 10:00 PM

  • Who's Online (See full list)

    • Rakaldo
    • EdekaKuchen
    • alexro871
    • GhostGamesFSM
    • Beethoven92
    • IntentScarab
    • CookieLukas
    • Tavi007
    • HOTSAUCEMAN
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ----------------
  • Theme

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