Mojira Archive
MC-270682

modify_contents item modifier can create overstacked items

Summary
modify_contents item modifier can create overstacked items inside a container, like a shulker box. (The overstacked item can then be spawned by burning the dropped shulker box.) Also note that overstacked items no longer crash the game.

Steps to Reproduce

  1. Get a shulker box with one item
    /give @s minecraft:shulker_box[minecraft:container=[{item:{id:stone},slot:0}]]
    
  2. Run the following command
    /item modify entity @s hotbar.0 {function:modify_contents,modifier:{function:set_count,count:99},component:container}
    

Expected Result
Shulker box does not have one stack of 99 stones.

Actual Result
Shulker box has one stack of 99 stones.

Fixed

apple502j

[Mojang] etanaratsastaja

2024-04-12, 02:42 PM

2024-04-29, 04:14 PM

2024-04-29, 04:14 PM

0

1

Confirmed

Normal

Platform

Commands, Items

1.20.5 Pre-Release 1

24w18a