Put the summary of the bug you're having here *What I expected to happen was...:* Put items stacked at +65+ into +{color:#172b4d}minecraft:bundle{color}+ *What actually happened was...:* When using +minecraft:bundle+ and using the Change Item Stack Limit command ({color:#FF0000}+*max_stack_size=65*+{color}) to put an item into {+}minecraft:bundle{+}, the +*game crashes*+ *Steps to Reproduce:* 1. Give any item with the /give command and the stack line is between 64 and 100, example: {color:#172b4d}+*_/give @s minecraft:diamond[max_stack_size=65] 65_*+{color} 2. Place the item in +minecraft:bundle+ log: ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem.   Time: 2024-03-28 18:45:01 Description: Container click   java.lang.ArithmeticException: / by zero at net.minecraft.world.item.component.BundleContents$Mutable.int getMaxAmountToAdd(net.minecraft.world.item.ItemStack)(BundleContents.java:133) at net.minecraft.world.item.component.BundleContents$Mutable.int tryInsert(net.minecraft.world.item.ItemStack)(BundleContents.java:144) at net.minecraft.world.item.BundleItem.boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack,net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player,net.minecraft.world.entity.SlotAccess)(BundleItem.java:90) at net.minecraft.world.item.ItemStack.boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player,net.minecraft.world.entity.SlotAccess)(ItemStack.java:464) at net.minecraft.world.inventory.AbstractContainerMenu.net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player,int)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.boolean tryItemClickBehaviourOverride(net.minecraft.world.entity.player.Player,net.minecraft.world.inventory.ClickAction,net.minecraft.world.inventory.Slot,net.minecraft.world.item.ItemStack,net.minecraft.world.item.ItemStack)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.boolean stillValid(net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.void doClick(int,int,net.minecraft.world.inventory.ClickType,net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:408) at net.minecraft.world.inventory.AbstractContainerMenu.net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player,int)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.void clicked(int,int,net.minecraft.world.inventory.ClickType,net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.boolean stillValid(net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.void slotClicked(net.minecraft.world.inventory.Slot,int,int,net.minecraft.world.inventory.ClickType)(CreativeModeInventoryScreen.java:370) at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.boolean mouseReleased(double,double,int)(AbstractContainerScreen.java:521) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.boolean mouseReleased(double,double,int)(CreativeModeInventoryScreen.java:606) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.gui.screens.Screen.void wrapScreenError(java.lang.Runnable,java.lang.String,java.lang.String)(Screen.java:451) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$setup$4(long,int,int,int)(MouseHandler.java:186) at net.minecraft.util.thread.BlockableEventLoop.void execute(java.lang.Runnable)(BlockableEventLoop.java:108) at net.minecraft.client.MouseHandler.void lambda$setup$5(long,int,int,int)(MouseHandler.java:186) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.null callback(null)(GLFWMouseButtonCallbackI.java:43) at org.lwjgl.system.JNI.null invokeV(null)(JNI.java) at org.lwjgl.glfw.GLFW.null glfwPollEvents(null)(GLFW.java:3438) at com.mojang.blaze3d.systems.RenderSystem.void pollEvents()(RenderSystem.java:200) at com.mojang.blaze3d.systems.RenderSystem.void flipFrame(long)(RenderSystem.java:211) at com.mojang.blaze3d.platform.Window.void updateDisplay()(Window.java:287) at net.minecraft.client.Minecraft.void runTick(boolean)(Minecraft.java:1364) at net.minecraft.client.Minecraft.void run()(Minecraft.java:898) at net.minecraft.client.main.Main.void main(java.lang.String[])(Main.java:265) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at oolloo.jlw.Wrapper.null invokeMain(null)(Wrapper.java:71) at oolloo.jlw.Wrapper.null main(null)(Wrapper.java:51)     A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------   -- Head -- Thread: Render thread Stacktrace: at net.minecraft.world.item.component.BundleContents$Mutable.int getMaxAmountToAdd(net.minecraft.world.item.ItemStack)(BundleContents.java:133) at net.minecraft.world.item.component.BundleContents$Mutable.int tryInsert(net.minecraft.world.item.ItemStack)(BundleContents.java:144) at net.minecraft.world.item.BundleItem.boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack,net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player,net.minecraft.world.entity.SlotAccess)(BundleItem.java:90) at net.minecraft.world.item.ItemStack.boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player,net.minecraft.world.entity.SlotAccess)(ItemStack.java:464) at net.minecraft.world.inventory.AbstractContainerMenu.net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player,int)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.boolean tryItemClickBehaviourOverride(net.minecraft.world.entity.player.Player,net.minecraft.world.inventory.ClickAction,net.minecraft.world.inventory.Slot,net.minecraft.world.item.ItemStack,net.minecraft.world.item.ItemStack)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.boolean stillValid(net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:535) at net.minecraft.world.inventory.AbstractContainerMenu.void doClick(int,int,net.minecraft.world.inventory.ClickType,net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:408) at net.minecraft.world.inventory.AbstractContainerMenu.net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player,int)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.void clicked(int,int,net.minecraft.world.inventory.ClickType,net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.boolean stillValid(net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.void slotClicked(net.minecraft.world.inventory.Slot,int,int,net.minecraft.world.inventory.ClickType)(CreativeModeInventoryScreen.java:370) at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.boolean mouseReleased(double,double,int)(AbstractContainerScreen.java:521) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.boolean mouseReleased(double,double,int)(CreativeModeInventoryScreen.java:606) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.gui.screens.Screen.void wrapScreenError(java.lang.Runnable,java.lang.String,java.lang.String)(Screen.java:451) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$setup$4(long,int,int,int)(MouseHandler.java:186) at net.minecraft.util.thread.BlockableEventLoop.void execute(java.lang.Runnable)(BlockableEventLoop.java:108) at net.minecraft.client.MouseHandler.void lambda$setup$5(long,int,int,int)(MouseHandler.java:186) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.null callback(null)(GLFWMouseButtonCallbackI.java:43) at org.lwjgl.system.JNI.null invokeV(null)(JNI.java) at org.lwjgl.glfw.GLFW.null glfwPollEvents(null)(GLFW.java:3438) at com.mojang.blaze3d.systems.RenderSystem.void pollEvents()(RenderSystem.java:200) at com.mojang.blaze3d.systems.RenderSystem.void flipFrame(long)(RenderSystem.java:211)   -- Click info -- Details: Menu Type: Menu Class: fnl.b Slot Count: 54 Slot: 45 Button: 1 Type: PICKUP Stacktrace: at net.minecraft.world.inventory.AbstractContainerMenu.net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player,int)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.void clicked(int,int,net.minecraft.world.inventory.ClickType,net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.world.inventory.AbstractContainerMenu.boolean stillValid(net.minecraft.world.entity.player.Player)(AbstractContainerMenu.java:294) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.void slotClicked(net.minecraft.world.inventory.Slot,int,int,net.minecraft.world.inventory.ClickType)(CreativeModeInventoryScreen.java:370) at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.boolean mouseReleased(double,double,int)(AbstractContainerScreen.java:521) at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.boolean mouseReleased(double,double,int)(CreativeModeInventoryScreen.java:606) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.gui.screens.Screen.void wrapScreenError(java.lang.Runnable,java.lang.String,java.lang.String)(Screen.java:451) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$setup$4(long,int,int,int)(MouseHandler.java:186) at net.minecraft.util.thread.BlockableEventLoop.void execute(java.lang.Runnable)(BlockableEventLoop.java:108) at net.minecraft.client.MouseHandler.void lambda$setup$5(long,int,int,int)(MouseHandler.java:186) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.null callback(null)(GLFWMouseButtonCallbackI.java:43) at org.lwjgl.system.JNI.null invokeV(null)(JNI.java) at org.lwjgl.glfw.GLFW.null glfwPollEvents(null)(GLFW.java:3438) at com.mojang.blaze3d.systems.RenderSystem.void pollEvents()(RenderSystem.java:200) at com.mojang.blaze3d.systems.RenderSystem.void flipFrame(long)(RenderSystem.java:211) at com.mojang.blaze3d.platform.Window.void updateDisplay()(Window.java:287) at net.minecraft.client.Minecraft.void runTick(boolean)(Minecraft.java:1364) at net.minecraft.client.Minecraft.void run()(Minecraft.java:898) at net.minecraft.client.main.Main.void main(java.lang.String[])(Main.java:265) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at oolloo.jlw.Wrapper.null invokeMain(null)(Wrapper.java:71) at oolloo.jlw.Wrapper.null main(null)(Wrapper.java:51)   -- Affected screen -- Details: Screen name: net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen Stacktrace: at net.minecraft.client.gui.screens.Screen.void wrapScreenError(java.lang.Runnable,java.lang.String,java.lang.String)(Screen.java:451) at net.minecraft.client.MouseHandler.void onPress(long,int,int,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$onPress$1(boolean[],net.minecraft.client.gui.screens.Screen,double,double,int)(MouseHandler.java:103) at net.minecraft.client.MouseHandler.void lambda$setup$4(long,int,int,int)(MouseHandler.java:186) at net.minecraft.util.thread.BlockableEventLoop.void execute(java.lang.Runnable)(BlockableEventLoop.java:108) at net.minecraft.client.MouseHandler.void lambda$setup$5(long,int,int,int)(MouseHandler.java:186) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.null callback(null)(GLFWMouseButtonCallbackI.java:43) at org.lwjgl.system.JNI.null invokeV(null)(JNI.java) at org.lwjgl.glfw.GLFW.null glfwPollEvents(null)(GLFW.java:3438) at com.mojang.blaze3d.systems.RenderSystem.void pollEvents()(RenderSystem.java:200) at com.mojang.blaze3d.systems.RenderSystem.void flipFrame(long)(RenderSystem.java:211) at com.mojang.blaze3d.platform.Window.void updateDisplay()(Window.java:287) at net.minecraft.client.Minecraft.void runTick(boolean)(Minecraft.java:1364) at net.minecraft.client.Minecraft.void run()(Minecraft.java:898) at net.minecraft.client.main.Main.void main(java.lang.String[])(Main.java:265) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at oolloo.jlw.Wrapper.null invokeMain(null)(Wrapper.java:71) at oolloo.jlw.Wrapper.null main(null)(Wrapper.java:51)   -- Uptime -- Details: JVM uptime: 1895.743s Wall uptime: 1886.331s High-res time: 1885.983s Client ticks: 37551 ticks / 1877.550s Stacktrace: at net.minecraft.client.Minecraft.net.minecraft.CrashReport fillReport(net.minecraft.CrashReport)(Minecraft.java:2574) at net.minecraft.client.Minecraft.void emergencySaveAndCrash(net.minecraft.CrashReport)(Minecraft.java:1005) at net.minecraft.client.Minecraft.void run()(Minecraft.java:918) at net.minecraft.client.main.Main.void main(java.lang.String[])(Main.java:265) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at oolloo.jlw.Wrapper.null invokeMain(null)(Wrapper.java:71) at oolloo.jlw.Wrapper.null main(null)(Wrapper.java:51)   -- Affected level -- Details: All players: 1 total; [gbm['YOUXIYONGHUMING'/1, l='ClientLevel', x=-6.50, y=-60.00, z=-7.50]] Chunk stats: 1521, 1021 Level dimension: minecraft:overworld Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 2787 game time, 6000 day time Server brand: vanilla Server type: Integrated singleplayer server Tracked entity count: 1   -- Last reload -- Details: Reload number: 2 Reload reason: manual Finished: Yes Packs: vanilla   -- System Details -- Details: Minecraft Version: 24w13a Minecraft Version ID: 24w13a Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.8, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 1948888672 bytes (1858 MiB) / 2818572288 bytes (2688 MiB) up to 17179869184 bytes (16384 MiB) CPUs: 12 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz Identifier: Intel64 Family 6 Model 158 Stepping 10 Microarchitecture: Coffee Lake Frequency (GHz): 3.19 Number of physical packages: 1 Number of physical CPUs: 6 Number of logical CPUs: 12 Graphics card #0 name: Microsoft Basic Display Adapter Graphics card #0 vendor: Microsoft Graphics card #0 VRAM (MB): 0.00 Graphics card #0 deviceId: VideoController1 Graphics card #0 versionInfo: 10.0.19041.3636 Graphics card #1 name: Microsoft Basic Display Adapter Graphics card #1 vendor: Microsoft Graphics card #1 VRAM (MB): 0.00 Graphics card #1 deviceId: VideoController2 Graphics card #1 versionInfo: 10.0.19041.3636 Graphics card #2 name: NVIDIA GeForce RTX 3060 Graphics card #2 vendor: NVIDIA Graphics card #2 VRAM (MB): 12288.00 Graphics card #2 deviceId: VideoController3 Graphics card #2 versionInfo: 31.0.15.5152 Memory slot #0 capacity (MB): 16384.00 Memory slot #0 clockSpeed (GHz): 2.40 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 16384.00 Memory slot #1 clockSpeed (GHz): 2.40 Memory slot #1 type: DDR4 Virtual memory max (MB): 65403.30 Virtual memory used (MB): 16607.64 Swap memory total (MB): 32768.00 Swap memory used (MB): 0.00 JVM Flags: 6 total; -XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmn256m -Xmx16384m Launched Version: 24w13a Launcher name: PCL Backend library: LWJGL version 3.3.2+13 Backend API: NVIDIA GeForce RTX 3060/PCIe/SSE2 GL version 3.2.0 NVIDIA 551.52, NVIDIA Corporation Window size: 3840x2160 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages:  Using VBOs: Yes Is Modded: Probably not. Client jar signature and brand is untouched; Server jar signature and brand is untouched Universe: 400921fb54442d18 Type: Integrated Server (map_client.txt) Graphics mode: fancy Render Distance: 16/16 chunks Resource Packs: vanilla Current Language: en_us Locale: zh_CN CPU: 12x Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz Server Running: true Player Count: 1 / 8; [aqn['YOUXIYONGHUMING'/1, l='ServerLevel[新的世界]', x=-6.50, y=-60.00, z=-7.50]] Data Packs: vanilla, update_1_21, trade_rebalance, bundle Enabled Feature Flags: minecraft:update_1_21, minecraft:bundle, minecraft:vanilla, minecraft:trade_rebalance World Generation: Stable World Seed: 6849010130306801367