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
- Give yourself a stick
- 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.
2024-03-27, 02:46 PM
2024-04-24, 08:35 PM
2024-04-08, 07:59 AM
1
2