Modern namespaced IDs are recommended. This numerical form is only for old Java releases.
/give @p 335 1
Give command syntax by version
Java 1.13+
/give @p minecraft:milk_bucket 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 335 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:milk_bucket 1
Same namespaced ID (namespace optional)
Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.
How to Get Milk Bucket
Finding Milk Bucket
Milk Bucket cannot be crafted at a crafting table. It must be obtained through normal gameplay.
Milk Bucket in Minecraft: The Universal Status Cleanser
Quick answer: Use minecraft:milk_bucket in Java Edition commands. Use an empty bucket on a cow, mooshroom, or goat to get milk; drinking it instantly removes every status effect, good and bad, which makes it essential for ocean monuments and bad omen control.
Getting and using milk
Right-click a cow, mooshroom, or goat with an empty bucket and it fills with milk, infinitely and instantly. A single cow near your base is a permanent supply, and buckets stack to sixteen empty but milk itself does not stack.
Drinking milk clears all status effects at once. That includes poison, weakness, and mining fatigue, but also your own strength and regeneration buffs, so time the sip carefully.
Source: bucket any cow, mooshroom, or goat.
Drinking removes every active status effect.
Milk is also a cake crafting ingredient.
When milk saves the run
The classic use is elder guardian mining fatigue: carry milk into an ocean monument, drink when the curse lands, and keep mining. It also wipes Bad Omen if you want to avoid triggering a raid, or clears Trial Omen between chambers.
In PvP and hardcore, a milk bucket counters splash poison and weakness traps. Just remember it removes beneficial effects too, so chug milk first and then re-apply your own potions.
Milk Bucket Command Examples
Give 1 to nearest player: /give @p minecraft:milk_bucket 1
Give 1 to yourself: /give @s minecraft:milk_bucket 1
Give to a specific player: /give PlayerName minecraft:milk_bucket 1
Clear from inventory: /clear @p minecraft:milk_bucket
Milk Bucket FAQ
What is the item ID for Milk Bucket?
The item ID for Milk Bucket is minecraft:milk_bucket. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.
What is the numerical ID for Milk Bucket?
Milk Bucket has the historical numerical ID 335, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:milk_bucket instead.
How do I give myself Milk Bucket in Minecraft?
Open the chat window and run /give @p minecraft:milk_bucket 1 to give the nearest player one Milk Bucket. Replace @p with a player name to target someone else.
How many Milk Bucket can stack in one slot?
Milk Bucket stacks up to 1 per inventory slot.
How do you get milk in Minecraft?
Use an empty bucket on a cow, mooshroom, or goat. The bucket fills instantly and the animal can be milked again immediately, giving you an unlimited supply from a single animal.
Does milk remove all effects in Minecraft?
Yes, drinking milk removes every status effect currently on you, including beneficial ones like strength, regeneration, and fire resistance. Use it to clear harmful effects, then re-apply any buffs you still want.
Can milk remove Bad Omen?
Yes. Drinking milk clears Bad Omen, which prevents the raid from starting when you enter a village. It also removes Trial Omen, so carry milk in trial chambers if you want to control when ominous events happen.
Sources and Data Review
Item facts were reviewed for Java Edition 1.21.11 on .