Steps to Reproduce:
/give @s netherite_sword[max_stack_size=99] 99 triggers "Item cannot be both damageable and stackable" error,
but /give @s bundle[bundle_contents=[{id:netherite_sword,count:99,components:{max_stack_size:99}}]] executes successfully
Expected Result:
The bundle command /give @s bundle[bundle_contents=[{id:netherite_sword,count:99,components:{max_stack_size:99}}]]
should also throw "Item cannot be both damageable and stackable" error
Actual Result:
The bundle command successfully gives a stack of 99 netherite swords that should only be obtainable through non-error state execution of the standard /give command
Environment
Windows 11 24H2 Preview
Minecraft 1.21.8
Comments 3
The item command works too.
/minecraft:item replace entity @s weapon.mainhand with bundle[bundle_contents=[{id:netherite_sword,components:{max_stack_size:99}}]]
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
This isnβt exclusive to bundles,
/setblock ~ ~ ~ chest{Items:[{id:"minecraft:netherite_sword",count:99,components:{max_stack_size:99}}]}also works. I will confirm and retitle the issue.