mojira.dev
MC-311273

The `type` field in the `set_loot_table` item modifier type conflicts with the `type` field that specifies the item modifier type

Dispatch key for item modifier has been changed from function to type in 26.3-snapshot-4, and this is conflicting with type field of SetContainerContents. Because of this, game always fail to parse set_loot_table modifier since it is impossible to satisfy both of those format.

This field is a legacy from before the pre-component item format and is currently completely unused, so it seems safe to remove.

Comments 2

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Can confirm.

Working example in 26.2:
/item modify entity @s weapon.mainhand {function: set_loot_table, type: chest, name: "chests/ancient_city"}

Migrating past 26.3 snapshot 4:

  • function → type: conflicts with the existing type.

  • name → tag

(Not working) command after migration: /item modify entity @s weapon.mainhand {type: set_loot_table, type: chest, tag: "chests/ancient_city"}

Mueller857

boq

Community Consensus

Platform HC

Important

Data Packs

26.3 Snapshot 9

26.3 Snapshot 10

Retrieved