mojira.dev

StudioCode

Assigned

No issues.

Reported

Comments

Can confirm in 25w36b
In first person view, the item is offset to the top of the screen for some reason. This can be seen better when also using the crossbow item model:

/give @p diamond[consumable={consume_seconds:2,animation:"crossbow",sound:"intentionally_empty",has_consume_particles:false,on_consume_effects:[{type:"minecraft:play_sound",sound:"intentionally_empty"}]},item_model="crossbow"] 1
/give @p diamond[consumable={consume_seconds:2,animation:"crossbow",sound:"intentionally_empty",has_consume_particles:false,on_consume_effects:[{type:"minecraft:play_sound",sound:"intentionally_empty"}]},item_model="crossbow"] 1

[media: crossbow_animation_broken.mp4]

As a comparison, other animation types, like bow, work fine:

/give @p diamond[consumable={consume_seconds:2,animation:"bow",sound:"intentionally_empty",has_consume_particles:false,on_consume_effects:[{type:"minecraft:play_sound",sound:"intentionally_empty"}]},item_model="bow"] 1
/give @p diamond[consumable={consume_seconds:2,animation:"bow",sound:"intentionally_empty",has_consume_particles:false,on_consume_effects:[{type:"minecraft:play_sound",sound:"intentionally_empty"}]},item_model="bow"] 1
[media: bow_animation_works_fine.mp4]

Do you have the 1.20 datapack enabled?