The Bug
Buckets are able to be duplicated in crafting recipe datapacks that have inputs of Water, Lava or Milk Buckets and outputs of any type of bucket item (Milk, Water, Fish Buckets etc.)
Reproduce
Download the attached datapack
Load it onto a world
Put a Milk Bucket in a Crafting Table (Should get a Lava Bucket)
Get the output item
Notice how you have a remainder of a bucket
Place the output item (Should be a lava bucket)
You now get a 2nd bucket
Explanation
This is because Milk, Water & Lava Buckets all have a crafting remainder of a Bucket. So once an item with a Milk, Water or Lava Bucket is crafted a bucket is left behind.
Why Is It A Problem
The problem is albeit very small with very little consequence to vanilla. The real problem comes with datapacks/mods. Thereβs no way for a recipe to prevent a crafting remainder causing duplication issues like the Bucket. This can cause various issues on servers/mods where they use one of the three items as a crafting recipe into lets say a Sulfur Cube Bucket. Once the new Bucket of XYZ is placed now they have two buckets, hence the duplication.
Potential Solutions
Add a way to prevent crafting remainders in recipe json files
Add a check to see if the input & output have the same crafting remainder and prevent the input from creating a remainder item
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki