Skip to content

Commit

Permalink
24w20a
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed May 15, 2024
1 parent 29ab572 commit 03a1aa7
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 8 deletions.
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.11",
"version": "0.0.12",
"description": "Schemas for Java Edition 1.21",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions java/1.21/src/schemas/Enchantment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export function initEnchantmentSchemas(schemas: SchemaRegistry, collections: Col
exclusive_set: Opt(Tag({ resource: 'enchantment' })),
supported_items: Tag({ resource: 'item' }),
primary_items: Opt(Tag({ resource: 'item' })),
weight: NumberNode({ integer: true, min: 1 }),
max_level: NumberNode({ integer: true, min: 1 }),
weight: NumberNode({ integer: true, min: 1, max: 1024 }),
max_level: NumberNode({ integer: true, min: 1, max: 255 }),
min_cost: Reference('enchantment_cost'),
max_cost: Reference('enchantment_cost'),
anvil_cost: NumberNode({ integer: true, min: 0 }),
Expand Down
2 changes: 1 addition & 1 deletion java/1.21/src/schemas/PackMcmeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@mcschema/core'
import { InclusiveRange } from './Common'

const CURRENT_PACK_FORMAT = 43
const CURRENT_PACK_FORMAT = 44

export function initPackMcmetaSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) {
const Reference = RawReference.bind(undefined, schemas)
Expand Down
1 change: 1 addition & 0 deletions java/1.21/src/schemas/Predicates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export function initPredicatesSchemas(schemas: SchemaRegistry, collections: Coll
team: Opt(StringNode({ validator: 'team' })),
location: Opt(Reference('location_predicate')),
movement: Opt(Reference('movement_predicate')),
movement_affected_by: Opt(Reference('location_predicate')),
stepping_on: Opt(Reference('location_predicate')),
distance: Opt(Reference('distance_predicate')),
slots: Opt(MapNode(
Expand Down
7 changes: 6 additions & 1 deletion java/1.21/src/schemas/worldgen/Structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function initStructureSchemas(schemas: SchemaRegistry, collections: Colle
project_start_to_heightmap: Opt(StringNode({ enum: 'heightmap_type' })),
max_distance_from_center: Mod(NumberNode({ integer: true, min: 1, max: 128 }), { default: () => 80 }),
use_expansion_hack: BooleanNode(),
dimension_padding: Opt(NumberNode({ integer: true, min: 0 })),
dimension_padding: Opt(Reference('dimension_padding')),
pool_aliases: Opt(ListNode(Reference('pool_alias_binding')))
},
'minecraft:mineshaft': {
Expand Down Expand Up @@ -84,6 +84,11 @@ export function initStructureSchemas(schemas: SchemaRegistry, collections: Colle
})
}))

schemas.register('dimension_padding', ObjectNode({
bottom: Opt(NumberNode({ integer: true, min: 0 })),
top: Opt(NumberNode({ integer: true, min: 0 })),
}, { context: 'dimension_padding' }))

schemas.register('pool_alias_binding', Mod(ObjectNode({
type: StringNode({ validator: 'resource', params: { pool: 'worldgen/pool_alias_binding' } }),
[Switch]: [{ push: 'type' }],
Expand Down
2 changes: 1 addition & 1 deletion locales/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/locales",
"version": "0.1.99",
"version": "0.1.100",
"description": "Locales for Minecraft schemas",
"keywords": [],
"author": "Misode",
Expand Down
7 changes: 7 additions & 0 deletions locales/src/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"dimension.type": "Dimension type",
"dimension.type.object": "Inline",
"dimension.type.string": "Reference",
"dimension_padding.bottom": "Bottom",
"dimension_padding.top": "Top",
"dimension_type.ambient_light": "Ambient light",
"dimension_type.ambient_light.help": "How much ambient light there is. Should be a value between 0.0 and 1.0.",
"dimension_type.bed_works": "Bed works",
Expand Down Expand Up @@ -856,6 +858,7 @@
"entity.lightning_bolt.entity_struck": "Entity struck",
"entity.location": "Location",
"entity.movement": "Movement",
"entity.movement_affected_by": "Movement affected by",
"entity.nbt": "NBT",
"entity.passenger": "Passenger",
"entity.periodic_tick": "Periodic tic",
Expand Down Expand Up @@ -1469,9 +1472,13 @@
"function.set_writable_book_pages.pages": "Pages",
"function.set_writable_book_pages.pages.entry": "Page",
"function.set_writable_book_pages.mode": "Mode",
"function.set_writable_book_pages.offset": "Offset",
"function.set_writable_book_pages.size": "Size",
"function.set_written_book_pages.pages": "Pages",
"function.set_written_book_pages.pages.entry": "Page",
"function.set_written_book_pages.mode": "Mode",
"function.set_written_book_pages.offset": "Offset",
"function.set_written_book_pages.size": "Size",
"function.toggle_tooltips.toggles": "Toggles",
"functions": "Functions",
"functions.entry": "Function",
Expand Down
4 changes: 2 additions & 2 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 03a1aa7

Please sign in to comment.