mcbe-leveldb 1.12.0-jsonly → 1.13.0-jsonly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nbtSchemas.js CHANGED
@@ -1,5 +1,7 @@
1
+ import { dimensions } from "./LevelUtils.js";
1
2
  import * as NBT from "prismarine-nbt";
2
3
  import { toLongParts } from "./SNBTUtils.js";
4
+ import __biome_data__ from "./__biome_data__.js";
3
5
  /**
4
6
  * Types, constants, and functions related to NBT schemas.
5
7
  */
@@ -803,6 +805,30 @@ export var NBTSchemas;
803
805
  },
804
806
  },
805
807
  // NOTE: Verified.
808
+ DimensionNameIdTable: {
809
+ id: "DimensionNameIdTable",
810
+ title: "The DimensionNameIdTable schema.",
811
+ markdownDescription: "Dimension numeric ID mappings for custom dimensions.",
812
+ type: "compound",
813
+ required: ["list"],
814
+ properties: {
815
+ entries: {
816
+ title: "Entries",
817
+ markdownDescription: "A mapping of custom dimension namespaced IDs to numeric IDs, starting at 1,000.",
818
+ type: "compound",
819
+ patternProperties: {
820
+ "^[\\u0001-\\u0008\\u000b-\\u000c\\u000e-\\u001f\\u0021-\\u0039\\u003b-\\uffff]+:[\\u0001-\\u0008\\u000b-\\u000c\\u000e-\\u001f\\u0021-\\u0039\\u003b-\\uffff]+$": {
821
+ title: "Custom Dimension",
822
+ markdownDescription: "The numerical [dimension ID](https://minecraft.wiki/w/Dimension) for this custom dimension. Starts at 1,000.",
823
+ type: "int",
824
+ minimum: 1_000,
825
+ },
826
+ },
827
+ },
828
+ },
829
+ $fragment: false,
830
+ },
831
+ // NOTE: Verified.
806
832
  Overworld: {
807
833
  id: "Overworld",
808
834
  title: "The Overworld schema.",
@@ -981,6 +1007,15 @@ export var NBTSchemas;
981
1007
  additionalProperties: false,
982
1008
  },
983
1009
  // NOTE: Verified.
1010
+ CustomDimension: {
1011
+ id: "CustomDimension",
1012
+ title: "The CustomDimension schema.",
1013
+ markdownDescription: "The data of a custom dimension, seems to currently just include the LimboEntities data.",
1014
+ type: "compound",
1015
+ properties: {},
1016
+ $ref: "LimboEntities",
1017
+ },
1018
+ // NOTE: Verified.
984
1019
  DynamicProperties: {
985
1020
  id: "DynamicProperties",
986
1021
  title: "The DynamicProperties schema.",
@@ -1266,6 +1301,10 @@ export var NBTSchemas;
1266
1301
  BiomeOverride: {
1267
1302
  type: "string",
1268
1303
  markdownDescription: "Makes the world into a [single biome](https://minecraft.wiki/w/single_biome) world and the biome set here is the biome of this single biome world.",
1304
+ examples: Object.keys(__biome_data__.int_map).map((biome) => ({
1305
+ type: "string",
1306
+ value: biome,
1307
+ })),
1269
1308
  },
1270
1309
  bonusChestEnabled: {
1271
1310
  type: "byte",
@@ -5055,11 +5094,41 @@ however when the corresponding block in the block layer is broken, this block ge
5055
5094
  title: "The WorldClocks schema.",
5056
5095
  markdownDescription: "UNDOCUMENTED.",
5057
5096
  type: "compound",
5097
+ required: ["clocks"],
5058
5098
  properties: {
5059
5099
  clocks: {
5060
- markdownDescription: "UNKNOWN.",
5100
+ title: "Clocks",
5101
+ markdownDescription: "UNDOCMENTED.",
5061
5102
  type: "list",
5062
- // TODO: Figure out what the structure of this data is.
5103
+ items: {
5104
+ title: "Clock",
5105
+ markdownDescription: "UNDOCUMENTED.",
5106
+ type: "compound",
5107
+ required: ["IsPaused", "Name", "Time"],
5108
+ properties: {
5109
+ IsPaused: {
5110
+ title: "Is Paused",
5111
+ markdownDescription: "UNDOCUMENTED.",
5112
+ type: "byte",
5113
+ markdownEnumDescriptions: ["false", "true"],
5114
+ enum: [
5115
+ { type: "byte", value: 0 },
5116
+ { type: "byte", value: 1 },
5117
+ ],
5118
+ },
5119
+ Name: {
5120
+ title: "Name",
5121
+ markdownDescription: "UNDOCUMENTED.",
5122
+ type: "string",
5123
+ examples: dimensions.map((v) => ({ type: "string", value: `minecraft:${v}` })),
5124
+ },
5125
+ Time: {
5126
+ title: "Time",
5127
+ markdownDescription: "UNDOCUMENTED.",
5128
+ type: "int",
5129
+ },
5130
+ },
5131
+ },
5063
5132
  },
5064
5133
  },
5065
5134
  },
@@ -5100,22 +5169,47 @@ however when the corresponding block in the block layer is broken, this block ge
5100
5169
  attackmobs: {
5101
5170
  markdownDescription: "1 or 0 (true/false) - true if the player can attack mobs.",
5102
5171
  type: "byte",
5172
+ markdownEnumDescriptions: ["false", "true"],
5173
+ enum: [
5174
+ { type: "byte", value: 0 },
5175
+ { type: "byte", value: 1 },
5176
+ ],
5103
5177
  },
5104
5178
  attackplayers: {
5105
5179
  markdownDescription: "1 or 0 (true/false) - true if the player can attack other players.",
5106
5180
  type: "byte",
5181
+ markdownEnumDescriptions: ["false", "true"],
5182
+ enum: [
5183
+ { type: "byte", value: 0 },
5184
+ { type: "byte", value: 1 },
5185
+ ],
5107
5186
  },
5108
5187
  build: {
5109
5188
  markdownDescription: "1 or 0 (true/false) - true if the player can place blocks.",
5110
5189
  type: "byte",
5190
+ markdownEnumDescriptions: ["false", "true"],
5191
+ enum: [
5192
+ { type: "byte", value: 0 },
5193
+ { type: "byte", value: 1 },
5194
+ ],
5111
5195
  },
5112
5196
  doorsandswitches: {
5113
5197
  markdownDescription: "1 or 0 (true/false) - true if the player is able to interact with redstone components.",
5114
5198
  type: "byte",
5199
+ markdownEnumDescriptions: ["false", "true"],
5200
+ enum: [
5201
+ { type: "byte", value: 0 },
5202
+ { type: "byte", value: 1 },
5203
+ ],
5115
5204
  },
5116
5205
  flying: {
5117
5206
  markdownDescription: "1 or 0 (true/false) - true if the player is currently flying.",
5118
5207
  type: "byte",
5208
+ markdownEnumDescriptions: ["false", "true"],
5209
+ enum: [
5210
+ { type: "byte", value: 0 },
5211
+ { type: "byte", value: 1 },
5212
+ ],
5119
5213
  },
5120
5214
  flySpeed: {
5121
5215
  markdownDescription: "The flying speed, always 0.05.",
@@ -5124,38 +5218,83 @@ however when the corresponding block in the block layer is broken, this block ge
5124
5218
  instabuild: {
5125
5219
  markdownDescription: "1 or 0 (true/false) - true if the player can instantly destroy blocks.",
5126
5220
  type: "byte",
5221
+ markdownEnumDescriptions: ["false", "true"],
5222
+ enum: [
5223
+ { type: "byte", value: 0 },
5224
+ { type: "byte", value: 1 },
5225
+ ],
5127
5226
  },
5128
5227
  invulnerable: {
5129
5228
  markdownDescription: "1 or 0 (true/false) - true if the player is immune to all damage and harmful effects.",
5130
5229
  type: "byte",
5230
+ markdownEnumDescriptions: ["false", "true"],
5231
+ enum: [
5232
+ { type: "byte", value: 0 },
5233
+ { type: "byte", value: 1 },
5234
+ ],
5131
5235
  },
5132
5236
  lightning: {
5133
5237
  markdownDescription: "1 or 0 (true/false) - true if the player was struck by lightning.",
5134
5238
  type: "byte",
5239
+ markdownEnumDescriptions: ["false", "true"],
5240
+ enum: [
5241
+ { type: "byte", value: 0 },
5242
+ { type: "byte", value: 1 },
5243
+ ],
5135
5244
  },
5136
5245
  mayfly: {
5137
5246
  markdownDescription: "1 or 0 (true/false) - true if the player can fly.",
5138
5247
  type: "byte",
5248
+ markdownEnumDescriptions: ["false", "true"],
5249
+ enum: [
5250
+ { type: "byte", value: 0 },
5251
+ { type: "byte", value: 1 },
5252
+ ],
5139
5253
  },
5140
5254
  mine: {
5141
5255
  markdownDescription: "1 or 0 (true/false) - true if the player can destroy blocks.",
5142
5256
  type: "byte",
5257
+ markdownEnumDescriptions: ["false", "true"],
5258
+ enum: [
5259
+ { type: "byte", value: 0 },
5260
+ { type: "byte", value: 1 },
5261
+ ],
5143
5262
  },
5144
5263
  mute: {
5145
5264
  markdownDescription: "1 or 0 (true/false) - true if the player messages cannot be seen by other players.",
5146
5265
  type: "byte",
5266
+ markdownEnumDescriptions: ["false", "true"],
5267
+ enum: [
5268
+ { type: "byte", value: 0 },
5269
+ { type: "byte", value: 1 },
5270
+ ],
5147
5271
  },
5148
5272
  noclip: {
5149
5273
  markdownDescription: "1 or 0 (true/false) - true if the player can phase through blocks.",
5150
5274
  type: "byte",
5275
+ markdownEnumDescriptions: ["false", "true"],
5276
+ enum: [
5277
+ { type: "byte", value: 0 },
5278
+ { type: "byte", value: 1 },
5279
+ ],
5151
5280
  },
5152
5281
  op: {
5153
5282
  markdownDescription: "1 or 0 (true/false) - true if the player has operator commands.",
5154
5283
  type: "byte",
5284
+ markdownEnumDescriptions: ["false", "true"],
5285
+ enum: [
5286
+ { type: "byte", value: 0 },
5287
+ { type: "byte", value: 1 },
5288
+ ],
5155
5289
  },
5156
5290
  opencontainers: {
5157
5291
  markdownDescription: "1 or 0 (true/false) - true if the player is able to open containers.",
5158
5292
  type: "byte",
5293
+ markdownEnumDescriptions: ["false", "true"],
5294
+ enum: [
5295
+ { type: "byte", value: 0 },
5296
+ { type: "byte", value: 1 },
5297
+ ],
5159
5298
  },
5160
5299
  permissionsLevel: {
5161
5300
  markdownDescription: "What permissions a player will default to, when joining a world.",
@@ -5168,6 +5307,11 @@ however when the corresponding block in the block layer is broken, this block ge
5168
5307
  teleport: {
5169
5308
  markdownDescription: "1 or 0 (true/false) - true if the player is allowed to teleport.",
5170
5309
  type: "byte",
5310
+ markdownEnumDescriptions: ["false", "true"],
5311
+ enum: [
5312
+ { type: "byte", value: 0 },
5313
+ { type: "byte", value: 1 },
5314
+ ],
5171
5315
  },
5172
5316
  walkSpeed: {
5173
5317
  markdownDescription: "The walking speed, always 0.1.",
@@ -5176,6 +5320,11 @@ however when the corresponding block in the block layer is broken, this block ge
5176
5320
  worldbuilder: {
5177
5321
  markdownDescription: "1 or 0 (true/false) - true if the player is a world builder.",
5178
5322
  type: "byte",
5323
+ markdownEnumDescriptions: ["false", "true"],
5324
+ enum: [
5325
+ { type: "byte", value: 0 },
5326
+ { type: "byte", value: 1 },
5327
+ ],
5179
5328
  },
5180
5329
  },
5181
5330
  },