Skip to content

Commit

Permalink
Add show_notification field to shaped crafting recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Aug 14, 2024
1 parent 3909958 commit 94b8559
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion java/1.19.4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.19.4",
"version": "0.1.18",
"version": "0.1.19",
"description": "Schemas for Java Edition 1.19.4",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.19.4/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('recipe_result')
result: Reference('recipe_result'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
Expand Down
2 changes: 1 addition & 1 deletion java/1.20.2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.20.2",
"version": "0.0.10",
"version": "0.0.11",
"description": "Schemas for Java Edition 1.20.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.20.2/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('recipe_result')
result: Reference('recipe_result'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
Expand Down
2 changes: 1 addition & 1 deletion java/1.20.3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.20.3",
"version": "0.0.11",
"version": "0.0.12",
"description": "Schemas for Java Edition 1.20.3",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.20.3/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('recipe_result')
result: Reference('recipe_result'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
Expand Down
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.33",
"version": "0.0.34",
"description": "Schemas for Java Edition 1.20.5",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.20.5/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('item_stack')
result: Reference('item_stack'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
Expand Down
2 changes: 1 addition & 1 deletion java/1.20/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.20",
"version": "0.0.21",
"version": "0.0.22",
"description": "Schemas for Java Edition 1.20",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.20/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('recipe_result')
result: Reference('recipe_result'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
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.18",
"version": "0.0.19",
"description": "Schemas for Java Edition 1.21",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion java/1.21/src/schemas/Recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SchemaRegistry,
CollectionRegistry,
Opt,
BooleanNode,
} from '@mcschema/core'

export function initRecipeSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
Expand All @@ -30,7 +31,8 @@ export function initRecipeSchemas(schemas: SchemaRegistry, collections: Collecti
StringNode(), // TODO: add validation
Reference('recipe_ingredient')
),
result: Reference('item_stack')
result: Reference('item_stack'),
show_notification: Opt(BooleanNode()),
},
'minecraft:crafting_shapeless': {
group: Opt(StringNode()),
Expand Down
12 changes: 6 additions & 6 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 94b8559

Please sign in to comment.