Mojira Archive
MC-276413

Shearing loot tables cannot have looting or fortune applied

Expected: adding 

"function": "minecraft:enchanted_count_increase"

would allow for looting to be applied to the loot table

What happened instead: There is an error validating the loot table,

Found loot table element validation problem in {minecraft:loot_table/minecraft:shearing/mooshroom}.pools[0].entries[0].entry[1]->{minecraft:shearing/mooshroom/brown}.pools[0].entries[0].functions[1]: Parameters [<parameter minecraft:attacking_entity>] are not provided in this context

Attempts to fix this issue: I have also attempted to use the fortune "apply_bonus", adding:

{
  "function": "minecraft:apply_bonus",
  "enchantment": "minecraft:fortune",
  "formula": "uniform_bonus_count",
  "parameters": {
     "bonusMultiplier": 1
   }
}

And got this error:

Found loot table element validation problem in {minecraft:loot_table/minecraft:shearing/mooshroom}.pools[0].entries[0].entry[1]->{minecraft:shearing/mooshroom/brown}.pools[0].entries[0].functions[1]: Parameters [<parameter minecraft:tool>] are not provided in this context

 

 

Invalid

Eclipse

2024-09-05, 10:12 PM

2024-09-12, 12:28 PM

2024-09-12, 12:28 PM

0

2

Unconfirmed

(Unassigned)

24w36a

-