Skip to content

Commit

Permalink
Implement 1.20.5+ item slots
Browse files Browse the repository at this point in the history
Fixes #1159
  • Loading branch information
Nico314159 committed May 19, 2024
1 parent b95acbc commit f828e55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/java-edition/src/mcfunction/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}'],
Expand Down

0 comments on commit f828e55

Please sign in to comment.