Jump to content

Recommended Posts

Posted

I'm trying to add in the explosive slave collar as an item in game, however I can't get it to show on the player model properly. Removing it from the ClientProxy makes it invisible, but leaving it in there, it shows as a glowing Steve head with a leather helmet.

 

How it's supposed to look:

  Reveal hidden contents

 

How it actually looks when in the ClientProxy:

  Reveal hidden contents

 

And my code that has any mention of the item and/or model:

 

Honestly, I wish I could've used JSON files for this. It would've been much easier... and knowing me, it's likely a super small piece in the code I've been unable to spot, due to how miniscule it is. But I've looked over the code 20 times at this point, and I'm running thin on ideas. So if anyone has any ideas on how to make it show up as it's supposed to, I'm listening.

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 2:24 PM, Daring Do said:

Honestly, I wish I could've used JSON files for this. It would've been much easier... and knowing me, it's likely a super small piece in the code I've been unable to spot, due to how miniscule it is. But I've looked over the code 20 times at this point, and I'm running thin on ideas. So if anyone has any ideas on how to make it show up as it's supposed to, I'm listening.

Expand  

I'm pretty sure it is the fact that your Collar uses ArmorMaterial.LEATHER. Make a custom one and use that instead.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)
  On 7/16/2017 at 2:41 PM, Animefan8888 said:

I'm pretty sure it is the fact that your Collar uses ArmorMaterial.LEATHER. Make a custom one and use that instead.

Expand  

Nope. It just does this:

2017-07-16_10_55_23.thumb.png.3da6af9876e06649bf988b0b4ea9f6d2.png

 

Nothing =/ 

Edited by Daring Do

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted (edited)
  On 7/16/2017 at 2:58 PM, Kokkie said:

Show your code

Expand  

Only code that had mention to leather armor:

  Reveal hidden contents

 

Changed to have a custom armor type.

Edited by Daring Do

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:03 PM, Daring Do said:

Only code that had mention to leather armor:

  Reveal hidden contents

 

Changed to have a custom armor type.

Expand  

I suggest stepping through your code in the debugger set a breakpoint at the top of getArmorModel.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/16/2017 at 3:08 PM, Animefan8888 said:

I suggest stepping through your code in the debugger set a breakpoint at the top of getArmorModel.

Expand  

Attempted that, and Ecplise denied it, saying it was a syntax error and to delete it, with not optional fixes.

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:21 PM, Daring Do said:

Attempted that, and Ecplise denied it, saying it was a syntax error and to delete it, with not optional fixes.

Expand  

Could you show me in a picture?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/16/2017 at 3:22 PM, Animefan8888 said:

Could you show me in a picture?

Expand  

I'm betting I did it wrong, but eh. And also, I noticed I forgot to register the render for the armor in the ModArmor class, but no, that wasn't it either, if you were thinking it might have been.

 

B6JE6Dd.png

 

(I'm still rather new to coding in general, so yeah... mostly been following tutorials and frankensteining most of the code I get, building my understanding that way, which works well enough for me, until I hit a roadblock like this :/)

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:27 PM, Daring Do said:

I'm betting I did it wrong, but eh. And also, I noticed I forgot to register the render for the armor in the ModArmor class, but no, that wasn't it either, if you were thinking it might have been.

Expand  

A breakpoint and a break are two different things. Look up how to set a breakpoint in eclipse.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)
  On 7/16/2017 at 3:29 PM, Animefan8888 said:

A breakpoint and a break are two different things. Look up how to set a breakpoint in eclipse.

Expand  

Ah, okay. Set one up, then. I assumed it was probably somewhat similar to HTML, but I suppose not. Though I might just be thinking of a line break... anyways, running in debug with the breakpoint set at that line.

 

And pressing f5 crashes the game. And completely alters my workspace, apparently.

Edited by Daring Do

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:34 PM, Daring Do said:

And pressing f5 crashes the game.

Expand  

It shouldn't crash the game, it will basically pause it and eclipse should prompt you. Say yes and you should get a debug ui that you can view things with. That looks something like this, though the color shouldn't change.

eclipse debug.png

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/16/2017 at 3:41 PM, Animefan8888 said:

It shouldn't crash the game, it will basically pause it and eclipse should prompt you. Say yes and you should get a debug ui that you can view things with. That looks something like this, though the color shouldn't change.

eclipse debug.png

Expand  

Oh. Well, I did get that. But the game still crashed.

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted (edited)
  On 7/16/2017 at 3:47 PM, Animefan8888 said:

Post the crash report.

Expand  

Wait, there isn't one... the heck?

 

Maybe it's not a full crash. It just stops responding. I've got that back up, though.

Edited by Daring Do

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:54 PM, Daring Do said:
  Reveal hidden contents

 

Expand  

Something is wrong with your Proxy setup. Post your main mod class and make sure that your proxies have zero argument constructors.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/16/2017 at 3:57 PM, Animefan8888 said:

Something is wrong with your Proxy setup. Post your main mod class and make sure that your proxies have zero argument constructors.

Expand  

I posted one from a while back, not realizing that that was from over half an hour ago. It just stops responding, which I assumed meant a crash was imminent. I usually would execute the process to save time. But it's back up, not responding, that same setup back on Eclipse.

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 3:58 PM, Daring Do said:

It just stops responding, which I assumed meant a crash was imminent.

Expand  

As you have realized that is not what it means. When you set a breakpoint you essentially says pause here and let me take a look.

  On 7/16/2017 at 3:58 PM, Daring Do said:

that same setup back on Eclipse.

Expand  

The one I posted or the normal one?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)
  On 7/16/2017 at 4:01 PM, Animefan8888 said:

As you have realized that is not what it means. When you set a breakpoint you essentially says pause here and let me take a look.

The one I posted or the normal one?

Expand  

Eeyup. The one you posted

Edited by Daring Do

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 4:02 PM, Daring Do said:

Eeyup. The one you posted

Expand  

Good. Now what you can do is click on the buttons on the top left of eclipse "step into", "step over", and "step return" which come after the "resume", "suspend", and "terminate" buttons. And in doing so you can see how your code is executing.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/16/2017 at 4:04 PM, Animefan8888 said:

Good. Now what you can do is click on the buttons on the top left of eclipse "step into", "step over", and "step return" which come after the "resume", "suspend", and "terminate" buttons. And in doing so you can see how your code is executing.

Expand  

Erm, they're muted into the background. I can't use any of those. That entire section of buttons is unclickable.

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Posted
  On 7/16/2017 at 4:07 PM, Daring Do said:

Erm, they're muted into the background. I can't use any of those. That entire section of buttons is unclickable.

Expand  

Did you run the game in debug mode?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.