Skip to content

Commit

Permalink
🐛 Add teamkill and killedByTeam scoreboard criteria (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored Jul 11, 2024
1 parent 51a6fcb commit 60694bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/java-edition/src/mcfunction/node/argument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ export namespace ObjectiveCriteriaNode {
'totalKillCount',
'trigger',
'xp',
...core.Color.ColorNames.map((n) => `killedByTeam.${n}`),
...core.Color.ColorNames.map((n) => `teamkill.${n}`),
]
export const ComplexCategories = new Map<string, core.RegistryCategory>([
['broken', 'item'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const Suites: Partial<
'minecraft:nbt_tag': [{ content: ['0', '0b', '0l', '0.0', '"foo"', '{foo:bar}'] }],
'minecraft:objective': [{ content: ['foo', '012'] }],
'minecraft:objective_criteria': [{
content: ['dummy', 'used:spyglass', 'minecraft.used:minecraft.spyglass'],
content: ['dummy', 'used:spyglass', 'minecraft.used:minecraft.spyglass', 'teamkill.aqua'],
}],
'minecraft:operation': [{ content: ['=', '>', '<'] }],
'minecraft:particle': [{
Expand Down

0 comments on commit 60694bc

Please sign in to comment.