Mojira Archive
MC-269933

limit_count item modifier can create overstacked items

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.

Fixed

apple502j

[Mojang] Gegy

2024-03-27, 02:46 PM

2024-04-24, 08:35 PM

2024-04-08, 07:59 AM

1

2

Confirmed

Important

Platform

Commands

24w12a, 24w13a

1.20.5 Pre-Release 1