Jump to content

[1.8] prevent item switch animation upon nbt change


sigurd4

Recommended Posts

You might be aware of the animation that happens when you switch to another item in the hotbar. The item bobs down, then up. Something that I find fairly annoying is that this animation also happens whenever any nbt data of the held itemstack is set. My item changes nbt data very frequently, so it gets somewhat frustrating. Therefore I would prefer if there was a way to prevent this animation. I found this other post (http://www.minecraftforge.net/forum/index.php?topic=28710.0) that asks about the same thing, but is without a proper answer, most likely due to the misunderstanding caused by his unclear language. I really didn't get the information I needed from it, and thus I made this post.

http://www.planetminecraft.com/member/sigurd4

I'm making the bioshock mod!

Link to comment
Share on other sites

http://www.minecraftforge.net/forum/index.php/topic,30937.msg160967.html#msg160967

 

Issue has been tackled countless times (I've personally seen it at least 10 times in past months).

Currently there is no hook to cancel that "action".

 

Most of coders end up doing tricks (see linked thread). There will probably be PR for this very soon as i noticed - "heavy" modders started running into this issue (I personally will be using it in near future).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Hi

@OP Check out this post on the Minecraft Forum. These guys seemed to have found a solution, that is if you don't mind a little reflection (hacky solution warning):

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2350828-unequip-equip-animation-on-item-damage

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

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.