Jump to content

[1.8]Updating cape rendering code from 1.7.10 to 1.8


The_Fireplace

Recommended Posts

This code (supposedly)worked in 1.7.10, but I can't find any way to update it to 1.8. Anyone have any ideas?

@SubscribeEvent
public void renderCape(RenderPlayerEvent event){
	if(event.entityPlayer instanceof AbstractClientPlayer){
		((AbstractClientPlayer) event.entityPlayer).func_152121_a(Type.CAPE, new ResourceLocation("modid:textures/player/cape/cape.png"));
	}
}

func_152121_a does not exist in 1.8, and I can't find anything with the same parameters, or any other way to do it.

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

Link to comment
Share on other sites

Because of the new Mojang EULA, only Mojangsters can have capes. You have to find something else for your mod.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

  • 3 weeks later...

Because of the new Mojang EULA, only Mojangsters can have capes. You have to find something else for your mod.

Find me where it says that, I read the entire thing and didn't see where it says I am not allowed to render a cape on a player. Here is the link for convenience: https://account.mojang.com/documents/minecraft_eula

 

Also, note to whoever designs the website, an Un-Thank button would be nice.

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

Link to comment
Share on other sites

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Okay, that isn't quite the EULA but it is still a pretty clear statement of what they feel they want to own exclusively so I guess would be considered an extension of the EULA.

 

Note they're not saying you can't render things on a player, and theoretically you could make your own cape-like stuff to render, but obviously they've chosen to block out interacting with the official cape system. Interesting...

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

You can still render other things on the player, but not capes.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

In theory you could render a thing that looks exactly like a cape, as long as you didn't call it a cape.

 

But really at that point, you may as well "add another decorative item instead of capes."

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.