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

Attribute modifiers on items have a delay before being applied.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21
    • None
    • Unconfirmed
    • (Unassigned)

      Expected Behavior:
      Attribute modifiers on items ('attribute_modifiers' component) take effect immediately when put in the correct slot, and immediately removed when taken out of the correct slot.

      Actual Behavior:
      Attribute modifiers have a 1-2 tick delay before taking effect when put in the correct slot, aswell as having a 1-2 tick delay when being taken out (seemingly inconsistently, but unverified).
      **

      To reproduce:
      Give yourself any item with an 'attribute_modifiers' component and put it in the correct slot, observe that the attribute is not modified for 1-2 ticks.

      This is very easily observed with an place-able item that sets 'player.block_interaction_range' to 0 via attribute modifier on the 'mainhand' slot. This item should not be place-able, however, if you switch to the item and right click in quick enough succession, you still can place the item.

            Unassigned Unassigned
            GlobbyLikesSlime Ryan Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: