Actively editing the age data of dropped items and using /give will give two items
How to reproduce
Paste the following command in an always active repeating command block:
execute as @e[type=item] run data merge entity @s {Age:0s}
Now use the /give command to give yourself one of anything:
/give @p minecraft:stone 1
Expected behavior is that the player will be given one of that item. What really happens is that the player is given the item as specified in the /give command, but there is also plus one more dropped on the floor than what they asked for. In this case, the player was given two stone and not one.
2018-07-31, 10:59 PM
2024-04-18, 03:04 AM
3
1
Minecraft 1.13 - 1.20.5 Pre-Release 4
Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 20w51a, 1.16.5, 21w06a, 21w08b, 1.20.5 Pre-Release 4
-