mojira.dev
MC-275796

The use_cooldown component does not work for item usage interactions on blocks

The new use_cooldown component does not work for items which are used on blocks. This would be instances like; books into a chiseled bookshelf, dye/(glow) ink sacs onto signs, putting items into campfires, attaching a compass to a lodestone, and more.

Steps to Reproduce:

  1. Place a lodestone

  2. Get 2 (or more) compass items with a cooldown

    /give @p compass[minecraft:use_cooldown={seconds:3}] 64
  3. Use it on the lodestone

Expected Result:

The compass would be put on a cooldown, because it has been used on the block.

Observed Behavior:

The compass is not put on a cooldown, and can be used again on the block.

Screenshots/Videos:

[media]

Linked issues

Attachments

Comments 2

Confirmed for 1.21.3

The issue also happens for the following items with use_cooldown:

  • Spawneggs: Using spawneggs.

  • Boats: Placing boats.

  • Paintings: Placing paintings.

  • Armorstands: Placing armorstands.

  • Itemframes: Placing itemframes.

  • Blocks: Placing any block.

Interestingly enough:

Placing minecarts with use_cooldown on rails does work as expected and triggers the use_cooldown.

[Mod] Jingy

kingbdogz

1285606

Confirmed

Expansion B

Normal

Commands, Items

component, use_cooldown

24w34a, 1.21.2, 1.21.3, 1.21.8, 25w34b

Retrieved