Paper icon indicating copy to clipboard operation
Paper copied to clipboard

LootTable#populateLoot Missing required parameters

Open KillerCreeper112 opened this issue 1 year ago • 6 comments

Expected behavior

When using the steps to reproduce code, the loot should populate without error.

Observed/Actual behavior

When using the steps to reproduce code, an error occurs at LootTable#populateLoot(): java.lang.IllegalArgumentException: Missing required parameters: [<parameter minecraft:direct_killer_entity>, <parameter minecraft:this_entity>, <parameter minecraft:block_state>, <parameter minecraft:block_entity>, <parameter minecraft:explosion_radius>]

Steps/models to reproduce

LootContext.Builder context = new LootContext.Builder(block.getLocation()); LootTable table = Bukkit.getLootTable(key); table.populateLoot(null, context.build());

Plugin and Datapack List

CustomPlugin, CustomDataPack(for loot table)

Paper version

This server is running Paper version git-Paper-169 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: b4e3b3d) You are running the latest version Previous version: git-Paper-167 (MC: 1.20.1)

Other

This is the loot table I am using from the data pack:

{ "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:paper", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "tag": "minecraft:pickaxes" } } ] } ] } ] }

KillerCreeper112 avatar Sep 03 '23 15:09 KillerCreeper112