Custom Bedrock items that use usable-item behavior can incorrectly play an eating-style animation, even when the item is not configured as food and does not explicitly use the eat animation.
The issue occurs even when the item does not include the minecraft:food component and does not set:
"minecraft:use_animation": "eat"Setting:
"minecraft:use_animation": "none"also does not prevent the eating animation. The same issue appears to happen when the item becomes usable through components such as minecraft:use_modifiers.
Steps to Reproduce
Create a custom item using the modern Bedrock item format.
Do not add the
minecraft:foodcomponent.Do not set
minecraft:use_animationto"eat".Add usable-item behavior, for example by using
minecraft:use_modifiers.Load the behavior pack into a world.
Hold right-click / hold the use button while holding the custom item.
Observe the have an player eating motion and not just an use.
Expected Result
The custom item should not play the eating animation unless it is explicitly configured as food or explicitly sets:
"minecraft:use_animation": "eat"If no eating animation is specified, the item should either use no special animation or use the correct animation assigned by minecraft:use_animation.
Actual Result
The custom item plays an eating-style animation while being used, even though it does not include minecraft:food and does not use "minecraft:use_animation": "eat".
Setting "minecraft:use_animation": "none" does not stop the issue.
Additional Notes
Videos and item JSON snippets are attached. The issue appears to be related to custom usable items, especially items using minecraft:use_modifiers / use_duration. The issue still happens when using the newest supported format_version, so format_version does not appear to be the cause.
{ "format_version": "1.21.130", "minecraft:item": { "description": { "identifier": "trg:drawing_brush", "menu_category": { "category": "equipment" } }, "components": { "minecraft:icon": "trg_brush", "minecraft:allow_off_hand": false, "minecraft:max_stack_size": 64, "minecraft:use_animation": "none", // or any other will do the same and mix in "third person". "minecraft:stacked_by_data": true, "minecraft:use_modifiers": { "movement_modifier": 1.0, "use_duration": 1.0 } // tags are not the cause. } } }
Attachments
Comments 3
This happens to vanilla items like the “goat horn” to!
player.animation_controllers.json{
"use_item_progress": "( (variable.use_item_interval_progress + variable.use_item_startup_progress) > 0.0 ) && !variable.is_brandishing_spear && !variable.is_holding_spyglass && !variable.is_tooting_goat_horn && !variable.is_using_brush &&
// the fix:
!query.is_item_name_any('slot.weapon.mainhand', 'minecraft:bow', 'minecraft:goat_horn', 'minecraft:spyglass', 'minecraft:brush', 'minecraft:trident')"
}
Thank you for helping us improve Minecraft! We saved your files: