The bug
You get raw fish from roasting a guardian with lava or fire instead of the expected cooked fish. Also flame or fire aspect give raw fish.
Code analysis / fix
Fix by @unknown can be found in this comment.
Note
Not completely fixed in snapshot 16w38a; fish dropped by minecraft:gameplay/fishing/fish
is still uncooked (used by guardians as player kill loot).
Linked issues
Comments 13
Considering that every other mob that drops a raw meat food item will drop the cooked version when killed with fire, there's good reason to consider this a bug rather than a feature request. If they had forgotten to have rabbits drop cooked rabbit meat when killed with fire, would you also consider that a feature request rather than a bug?
This could be WAI if the fish drop is supposed to be the contents of the Guardian's lunchbox rather than actual Guardian meat or something like that, but absent that clarification this seems a valid bug report.
Present in 1.8.1-pre4
Ya know, bugs CAN be logical errors; they're not always syntactical errors. This is clearly bad logic considering every other mob drops cooked food except Guardians.
Besides, it's Mojang's decision whether this is WAI or not, not mods.
Confirmed for
16w04a
To fix this the function furnace_smelt
needs to be added to the loot table.
{code:title=Function {{furnace_smelt}}}
{
"function": "furnace_smelt",
"conditions": [
{
"condition": "entity_properties",
"entity": "this",
"properties": {
"on_fire": true
}
}
]
}
{code:title=Modified loot table \{\{\guardian.json\}\}}
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:prismarine_shard",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": {
"min": 0,
"max": 2
}
},
{
"function": "looting_enchant",
"count": {
"min": 0,
"max": 1
}
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:fish",
"weight": 2,
"functions": [
{
"function": "looting_enchant",
"count": {
"min": 0,
"max": 1
}
},
{
"function": "furnace_smelt",
"conditions": [
{
"condition": "entity_properties",
"entity": "this",
"properties": {
"on_fire": true
}
}
]
}
]
},
{
"type": "item",
"name": "minecraft:prismarine_crystals",
"weight": 2,
"functions": [
{
"function": "looting_enchant",
"count": {
"min": 0,
"max": 1
}
}
]
},
{
"type": "empty",
"weight": 1
}
]
},
{
"conditions": [
{
"condition": "killed_by_player"
},
{
"condition": "random_chance_with_looting",
"chance": 0.025,
"looting_multiplier": 0.01
}
],
"rolls": 1,
"entries": [
{
"type": "loot_table",
"name": "minecraft:gameplay/fishing/fish",
"weight": 1,
"functions": [
{
"function": "furnace_smelt",
"conditions": [
{
"condition": "entity_properties",
"entity": "this",
"properties": {
"on_fire": true
}
}
]
}
]
}
]
}
]
}
Based on MC-96467 the loot table for the Elder Guardian would need to be changed as well
Not completely fixed in 16w38a, fish dropped by minecraft:gameplay/fishing/fish
is still uncooked (also for elder_guardian
)
This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.