mojira.dev
MC-194564

Animated items are frozen when enchanted

I'm working on a resource pack that incorporates the CustomModelData tag with certain items, and below a threshold of durability, the items flash red, using the Interpolate tag to fade in and out. I found that when these items are enchanted, the animation freezes on the frame it received that enchantment, making the items appear a constant shade of red and no longer flashing.

This is the specific animation used to create the flashing.

{
 "animation":{
 "interpolate":true,
 "frames":[
 {
 "index":0,
 "time":1
 },
 {
 "index":1,
 "time":30
 },
 {
 "index":0,
 "time":20
 }
 ]
 }
}

Attachments

Comments 4

I'm having this same bug.
My custom animated swords are freezing on one frame once I enchant them.

Mine seem to only freeze the animation if it is a sword summoned by the /give command.

/give @p diamond_sword{CustomModelData: 2}

Enchant that sword and the animation freezes.
Duplicate the sword and enchant the duplicate version and the animation continues playing once enchanted!

Upon further testing, when chests are created with the items as enchanted loot, sometimes they animate, other times they don't!

A little video showing what is happening:
https://www.youtube.com/watch?v=Io7iyW2r3mY

Please attach the full resource pack for testing this

I have attached the resource pack I was using, if that helps at all.

Can this still be reproduced in 21w11a or later?

Jaden Willock

(Unassigned)

Unconfirmed

Rendering, Resource Packs

1.16.1

Retrieved