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

limit_count item modifier can create overstacked items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 1
    • 24w12a, 24w13a
    • None
    • Confirmed
    • Commands
    • Important
    • Platform

      Summary
      limit_count item modifier can create item stacks containing more items than their max_stack_size.

      Steps to Reproduce

      1. Give yourself a stick
      2. Run /item modify entity @s hotbar.0 {function:"limit_count",limit:{min:99}}

      Expected Result
      The command either fails or sets stack count to 64.

      Actual Result
      The game sets the stack count to 99, despite the max_stack_size being 64.

            gegy1000 [Mojang] Gegy
            apple502j apple502j
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: