mojira.dev
MCPE-232783

The getLootTableManager method cannot process the "conditions" field to generate loot correctly

Description: While using the world.getLootTableManager().generateLootFromEntity method to retrieve loot tables and generate items, I found that Blaze cannot accurately generate loot tables.

I will provide two logs, which show the loot table generation for Spider and Blaze respectively.

Possible reason: I think the issue may be caused by the

"conditions": [

{

"condition": "killed_by_player_or_pets"

}

]

field. It might not be a bug but rather a design flaw, so this method should add an option to inform the API about who killed the entity.

Attachments

Comments 0

No comments.

Rimuru

(Unassigned)

Unconfirmed

Windows

win10

1.21.124 Hotfix

Retrieved