Potion Effects
Potion Effects in Milkmaid
Applying potion effects to a player when drinking milk was added in Milkmaid 1.2 (Organic). You can choose to disable the standard cure poison that milk offers, enable only cure poison, or have a random effect chosen from a list that you define.
Example Usage
In the default configuration file, there are two lines:
MilkActsLikePotion: true
MilkPotionEffects: 0
If you change MilkActsLikePotion to false, then potion effects including cure poison are disabled. If you keep MilkActsLikePotion as true and keep MilkPotionEffects as 0, then drinking milk will cure poison as normal.
You can specify a single potion effect or you can write a list using commas to separate effect numbers, from which one effect will be applied to the player. For example:
MilkActsLikePotion: true
MilkPotionEffects: 1,2,10
1,2,10 would apply at random; blindness, confusion, or invisibility to the player drinking the milk, for a short period of time.
To make milk act like alcohol, you could use:
MilkPotionEffects: 0,0,0,0,2
Perhaps you want to make milk most commonly cure poison, but once in a while someone drinks sour milk and gets poisoned; use:
MilkPotionEffects: 0,0,0,0,13
Effects Table
| Potion Effect | Description | Duration |
| 0 | Cure Poison | Instant |
| 1 | Blindness | 30 seconds |
| 2 | Confusion | 30 seconds |
| 3 | Increased Damage Resistance | 60 seconds |
| 4 | Increased Digging Speed | 60 seconds |
| 5 | Fire Resistance | 60 seconds |
| 6 | Harm (Instant Damage) | Instant |
| 7 | Heal (Instant Health) | Instant |
| 8 | Hunger (Starvation) | 30 seconds |
| 9 | Increased Damage Dealt | 60 seconds |
| 10 | Invisibility | 30 seconds |
| 11 | Increased Jump Height | 60 seconds |
| 12 | Night Vision | 60 seconds |
| 13 | Poison | 30 seconds |
| 14 | Regeneration | 15 seconds |
| 15 | Slowness | 30 seconds |
| 16 | Decreased Digging Speed | 30 seconds |
| 17 | Increased Speed | 30 seconds |
| 18 | Water Breathing | 60 seconds |
| 19 | Decreased Damage Dealt | 30 seconds |