Skip to content

Commit

Permalink
Add optional replace field to set_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Sep 5, 2024
1 parent 689c3d7 commit c4e9cbc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion java/1.20.5/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.20.5",
"version": "0.0.38",
"version": "0.0.39",
"description": "Schemas for Java Edition 1.20.5",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion java/1.20.5/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
)
),
replace: Opt(BooleanNode()),
},
'minecraft:set_banner_pattern': {
patterns: ListNode(
Expand Down
2 changes: 1 addition & 1 deletion java/1.21.2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.21.2",
"version": "0.0.5",
"version": "0.0.6",
"description": "Schemas for Java Edition 1.21.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion java/1.21.2/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,8 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
)
),
replace: Opt(BooleanNode()),
},
'minecraft:set_banner_pattern': {
patterns: ListNode(
Expand Down
2 changes: 1 addition & 1 deletion java/1.21/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.21",
"version": "0.0.23",
"version": "0.0.24",
"description": "Schemas for Java Edition 1.21",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion java/1.21/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,8 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
)
),
replace: Opt(BooleanNode()),
},
'minecraft:set_banner_pattern': {
patterns: ListNode(
Expand Down
1 change: 1 addition & 0 deletions locales/src/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@
"function.sequence.functions": "Functions",
"function.set_attributes.modifiers": "Modifiers",
"function.set_attributes.modifiers.entry": "Modifier",
"function.set_attributes.replace": "Replace",
"function.set_banner_pattern.append": "Append",
"function.set_banner_pattern.patterns": "Patterns",
"function.set_book_cover.title": "Title",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

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

0 comments on commit c4e9cbc

Please sign in to comment.