Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-275797

The use_cooldown component only works for certain item interactions with entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w34a
    • Confirmed
    • Commands
    • Important
    • 1285616
    • Expansion B

      The use_cooldown component does work for some item interactions on entities, however; some other items do not work like shearing a sheep, naming an entity, putting an item in an item frame, or leading an entity.

      Steps to Reproduce:

      1. Spawn two pigs
      2. Get the following item stacks:
        /give @p minecraft:name_tag[minecraft:use_cooldown={seconds:3},minecraft:custom_name="pig"] 64
        /give @p carrot[minecraft:use_cooldown={seconds:3}] 64
        
      3. Use both items on the pigs

      Expected Result:

      Both items would go on cooldown once used, because they are both item usages on an entity.

      Observed Behavior:

      Only the carrot will go on cooldown, and the lead will not.

      Screenshots/Videos:

      2024-08-21_13-05-16.mp4

      Notes:

      The carrot working is likely because the item also has an eating usage as well.
      Related to MC-275796

            kingbdogz [Mojang] Brandon Pearce
            Jingy [Helper] Jiingy
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: