mojira.dev
MC-301473

Spawn eggs with use_cooldown component do not properly trigger cooldown

  • Steps to reproduce the issue

  1. Give yourself the following spawn eggs:

/give @a pig_spawn_egg[use_cooldown={seconds:1}]
/give @a pig_spawn_egg[use_cooldown={seconds:3},minecraft:can_place_on={blocks:"minecraft:stone"}]
  1. In Creative mode and Survival mode, use the first spawn egg:

    • The pig is successfully spawned, but no cooldown is triggered (no cooldown animation, the item can be reused immediately).

  2. In Adventure mode, hold the first spawn egg and right-click a block:

    • The spawn egg cannot spawn entities in Adventure mode, but a cooldown and cooldown animation are incorrectly triggered.

  3. In Adventure mode, use the second spawn egg (with both use_cooldown and can_place_on):

    • On the specified block (stone), the spawn egg successfully spawns a pig, but still no cooldown is triggered.

  • Expected result

    • Spawn eggs with a use_cooldown component should trigger a cooldown and display the inventory cooldown animation whenever they successfully spawn entities (Creative or Survival).

    • In Adventure mode, if spawn eggs cannot be used, no cooldown should be triggered.

    • In Adventure mode, when combined with can_place_on and successfully used on the specified block, the cooldown should also apply.

  • Actual result

    • Creative mode and Survival mode: spawn egg works, but cooldown is not applied.

    • Adventure mode (no can_place_on): spawn egg cannot be used, but cooldown is incorrectly triggered.

    • Adventure mode (with can_place_on): spawn egg works on specified blocks, but cooldown is still not applied.

  • Additional Information

    • A reproduction video shows a side-by-side comparison of Creative and Adventure mode.

    • So far this issue has only been observed with spawn eggs, I have not confirmed whether other items with the use_cooldown component are affected, but food items with use_cooldown component work as expected.

    • This issue is still present in the latest snapshot 25w34b.

Linked issues

Attachments

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at MC-275796, so I will resolve and link this ticket as a Duplicate

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

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

Shrans

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 25w34b

Retrieved