diff --git a/packages/java-edition/src/mcfunction/common/index.ts b/packages/java-edition/src/mcfunction/common/index.ts index a63852daf..c349a0658 100644 --- a/packages/java-edition/src/mcfunction/common/index.ts +++ b/packages/java-edition/src/mcfunction/common/index.ts @@ -17,14 +17,17 @@ export const ItemSlotArgumentValues = [ ...[...Array(15).keys()].map((n) => `horse.${n}`), ...[...Array(9).keys()].map((n) => `hotbar.${n}`), ...[...Array(27).keys()].map((n) => `inventory.${n}`), + ...[...Array(4).keys()].map((n) => `player.crafting.${n}`), ...[...Array(8).keys()].map((n) => `villager.${n}`), 'armor.chest', 'armor.feet', 'armor.head', 'armor.legs', - 'horse.armor', + 'armor.body', + 'contents', 'horse.chest', 'horse.saddle', + 'player.cursor', 'weapon', 'weapon.mainhand', 'weapon.offhand', diff --git a/packages/java-edition/test/mcfunction/parser/argument.spec.ts b/packages/java-edition/test/mcfunction/parser/argument.spec.ts index ccd79ae85..a8baee6f6 100644 --- a/packages/java-edition/test/mcfunction/parser/argument.spec.ts +++ b/packages/java-edition/test/mcfunction/parser/argument.spec.ts @@ -152,7 +152,7 @@ const Suites: Partial< content: ['stick', 'minecraft:stick', '#stick', '#stick{foo:bar}'], }, ], - 'minecraft:item_slot': [{ content: ['container.5', 'weapon'] }], + 'minecraft:item_slot': [{ content: ['container.5', 'weapon', 'armor.body'] }], 'minecraft:item_stack': [ { content: ['stick', 'minecraft:stick', 'stick{foo:bar}'],