Skip to content

Commit

Permalink
Add sequence loot function
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Aug 14, 2024
1 parent 94b8559 commit 525f0e6
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 8 deletions.
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.11",
"version": "0.0.12",
"description": "Schemas for Java Edition 1.20.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions java/1.20.2/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:reference': {
name: StringNode({ validator: 'resource', params: { pool: '$item_modifier' } })
},
'minecraft:sequence': {
functions: ListNode(
Reference('item_modifier')
),
},
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
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.12",
"version": "0.0.13",
"description": "Schemas for Java Edition 1.20.3",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions java/1.20.3/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:reference': {
name: StringNode({ validator: 'resource', params: { pool: '$item_modifier' } })
},
'minecraft:sequence': {
functions: ListNode(
Reference('item_modifier')
),
},
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
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.34",
"version": "0.0.35",
"description": "Schemas for Java Edition 1.20.5",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions java/1.20.5/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:reference': {
name: StringNode({ validator: 'resource', params: { pool: '$item_modifier' } })
},
'minecraft:sequence': {
functions: ListNode(
Reference('item_modifier')
),
},
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
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.19",
"version": "0.0.20",
"description": "Schemas for Java Edition 1.21",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions java/1.21/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,11 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
'minecraft:reference': {
name: StringNode({ validator: 'resource', params: { pool: '$item_modifier' } })
},
'minecraft:sequence': {
functions: ListNode(
Reference('item_modifier')
),
},
'minecraft:set_attributes': {
modifiers: ListNode(
Reference('attribute_modifier')
Expand Down
8 changes: 4 additions & 4 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 525f0e6

Please sign in to comment.