The effect of the suspicious stew from the farmer should be random, but it is always night vision. This was also a bug since 1.13.1, but was said to be fixed in 1.16.0.63 beta. The previous report was MCPE-52517.
Steps to Reproduce:
Spawn a villager
Give it the farmer profession
Purchase a suspicious stew from the villager
Eat the suspicious stew
Repeat these steps multiple times
Observed Results:
The effect of the suspicious stew is always night vision.
Expected Results:
The effect should be randomized.
Linked issues
clones 1
is duplicated by 3
Comments 11
Still affecting 1.20.62 please fix this it's been broken forever. The very first comment about this bug explains exactly what code needs to changed.
Confirmed for 1.17.10. The problematic code is in trading\economy_trades\farmer_trades.json in line 224ish:
"item": "minecraft:suspicious_stew:0",
There is a randomizer underneath, but here you can see the data value is already set to 0, which is the value for night vision. The correct code should be:
"item": "minecraft:suspicious_stew",
"quantity": 1,
"functions": [
{
"function": "random_aux_value",
"values":
{ "min": 0, "max": 5 }
}
]
Where 0 is night vision, 1 is jump boost, 2 is weakness, 3 is blindness, 4 is poison, & 5 is saturation (from dandelion). This seems in parity with Java as the other data values (saturation from blue orchid, fire resistance, regeneration, & wither) don't appear in Java trades.
TLDR: Change the line "item": "minecraft:suspicious_stew:0", to "item": "minecraft:suspicious_stew", in farmer_trades.json.