mojira.dev
MCPE-53135

Items with different cooldown times break the grapical cooldown indicator bar

The chorus fruit cooldown indicator bar appears to have its maximum height set based on the default cooldown time rather than the time for the current cooldown. This can be seen by creating a custom item with the "chorusfruit" cooldown_type but a different cooldown time than the default (20).

Prerequisites:

A custom item with the following behavior entity json definition file:

 

{
    "format_version": "1.12",
    "minecraft:item": {
        "description": {
            "identifier": "flippy:test"
        },
        "components": {
            "minecraft:stacked_by_data": true,
            "minecraft:use_duration": 1,
            "minecraft:food": {
                "cooldown_type": "chorusfruit",
                "cooldown_time": 100,
                "nutrition": 0,
                "can_always_eat": true
            }
        }
    }
}

 

Reproduction steps:

  1. Give yourself multiple custom items and put them on the hotbar

/give @s flippy:test 10
  1. Give yourself multiple chorus fruit and put them on the hotbar

/give @s chorus_fruit 10
  1. Eat the custom item

    1. Custom item cooldown bar fills the hotbar slot as expected

    2. Chorus fruit cooldown bar extends up past the hotbar

      [media]
  2. Eat the chorus fruit

    1. Custom item cooldown bar is small – does not fill the hotbar slot

    2. Chorus fruit cooldown bar fills the hotbar slot as expected

      [media]

Attachments

Comments 3

This also occurs in 1.13.0.18

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

This ticket hasn't been updated for some time - is this still an issue in the latest version? If so, could you please add the latest affected version, or comment if this is no longer an issue.

Also, if there any further steps to reproduce the issue, please include them when possible.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

mrflippy

(Unassigned)

Community Consensus

Windows

Add-on, UI, custom-item, items

1.14.0.2 Beta, 1.13.0.18 Beta, 1.13.0.17 Beta

Retrieved