Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276413

Shearing loot tables cannot have looting or fortune applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 24w36a
    • None
    • Windows 10, Java version 21
    • Unconfirmed
    • (Unassigned)

      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

       

       

            Unassigned Unassigned
            IllogicalSong Eclipse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: