Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6121

LootContext is missing required parameters: [<parameter minecraft:origin>]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Paper version git-Paper-161 (MC: 1.16.2) (Implementing API version 1.16.2-R0.1-SNAPSHOT)
    • My own plugin, not publicly posted anywhere.
    • Yes

      The version I'm using is Paper, however it is a Spigot problem and likely will just be reported as "will wait for Spigot to fix", so I'd rather report it here.

      In fact, there was a thread posted about this a long while ago.
      https://www.spigotmc.org/threads/loot-context-is-impossible-to-be-accepted-by-minecraft.396757/

      LootTable#fillInventory and LootTable#populateLoot cannot work because they require LootContext, and LootContext cannot work because it requires a parameter that isn't being passed to NMS properly.

      This is reproduced using LootTable#fillInventory normally.

      Caused by: java.lang.IllegalArgumentException: Missing required parameters: [<parameter minecraft:origin>] at net.minecraft.server.v1_16_R2.LootTableInfo$Builder.build(SourceFile:208) ~[patched_1.16.2.jar:git-Paper-161] at org.bukkit.craftbukkit.v1_16_R2.CraftLootTable.convertContext(CraftLootTable.java:114) ~[patched_1.16.2.jar:git-Paper-161] at org.bukkit.craftbukkit.v1_16_R2.CraftLootTable.populateLoot(CraftLootTable.java:44) ~[patched_1.16.2.jar:git-Paper-161]

            Unassigned Unassigned
            Aelteria Aelteria
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: