After the change, the item of the component will have an error in detecting the item and cause the placeholder to not work.
Example:
use /item modify entity @s weapon.mainhand {function: 'minecraft:set_components', components: {'minecraft:max_stack_size': 8}}
After changing the stack, detecting this item placeholder does not work.
After the change, the item of the component will have an error in detecting the item and cause the placeholder to not work.
Example:
use /item modify entity @s weapon.mainhand {function: 'minecraft:set_components', components: {'minecraft:max_stack_size': 8}}
After changing the stack, detecting this item placeholder does not work.