mcbe-leveldb 1.17.0-jsonly → 1.18.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/Changelog.md +28 -0
- package/LevelUtils.d.ts +1 -1
- package/LevelUtils.js +118 -43
- package/LevelUtils.js.map +1 -1
- package/__biome_data__.d.ts +7 -1
- package/__biome_data__.js +12 -3
- package/__biome_data__.js.map +1 -1
- package/nbtSchemas.d.ts +727 -68
- package/nbtSchemas.js +438 -65
- package/nbtSchemas.js.map +1 -1
- package/package.json +4 -3
package/nbtSchemas.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as NBT from "prismarine-nbt";
|
|
2
2
|
import type { Full } from "./types.js";
|
|
3
3
|
import __biome_data__ from "./__biome_data__.ts";
|
|
4
|
+
import type { ExclusifyUnion } from "type-fest";
|
|
4
5
|
/**
|
|
5
6
|
* Types, constants, and functions related to NBT schemas.
|
|
6
7
|
*/
|
|
@@ -7463,6 +7464,9 @@ export declare namespace NBTSchemas {
|
|
|
7463
7464
|
readonly type: "byte";
|
|
7464
7465
|
};
|
|
7465
7466
|
};
|
|
7467
|
+
readonly allOf: [{
|
|
7468
|
+
readonly $ref: "Item_ItemStack";
|
|
7469
|
+
}];
|
|
7466
7470
|
};
|
|
7467
7471
|
};
|
|
7468
7472
|
readonly fogCommandStack: {
|
|
@@ -7494,6 +7498,9 @@ export declare namespace NBTSchemas {
|
|
|
7494
7498
|
readonly type: "byte";
|
|
7495
7499
|
};
|
|
7496
7500
|
};
|
|
7501
|
+
readonly allOf: [{
|
|
7502
|
+
readonly $ref: "Item_ItemStack";
|
|
7503
|
+
}];
|
|
7497
7504
|
};
|
|
7498
7505
|
};
|
|
7499
7506
|
readonly LeftShoulderRiderID: {
|
|
@@ -8344,6 +8351,9 @@ export declare namespace NBTSchemas {
|
|
|
8344
8351
|
readonly type: "byte";
|
|
8345
8352
|
};
|
|
8346
8353
|
};
|
|
8354
|
+
readonly allOf: [{
|
|
8355
|
+
readonly $ref: "Item_ItemStack";
|
|
8356
|
+
}];
|
|
8347
8357
|
};
|
|
8348
8358
|
};
|
|
8349
8359
|
};
|
|
@@ -9665,8 +9675,8 @@ export declare namespace NBTSchemas {
|
|
|
9665
9675
|
};
|
|
9666
9676
|
readonly $fragment: false;
|
|
9667
9677
|
};
|
|
9668
|
-
readonly
|
|
9669
|
-
readonly id: "
|
|
9678
|
+
readonly Item_ItemStackBase: {
|
|
9679
|
+
readonly id: "Item_ItemStackBase";
|
|
9670
9680
|
readonly markdownDescription: "All items share this base.";
|
|
9671
9681
|
readonly type: "compound";
|
|
9672
9682
|
readonly required: ["Count", "Damage", "Name", "WasPickedUp"];
|
|
@@ -9715,6 +9725,279 @@ export declare namespace NBTSchemas {
|
|
|
9715
9725
|
};
|
|
9716
9726
|
readonly $fragment: true;
|
|
9717
9727
|
};
|
|
9728
|
+
readonly Item_ItemStack: {
|
|
9729
|
+
readonly id: "Item_ItemStack";
|
|
9730
|
+
readonly markdownDescription: "All items share this base.";
|
|
9731
|
+
readonly type: "compound";
|
|
9732
|
+
readonly anyOf: [{
|
|
9733
|
+
readonly $ref: "Item_GeneralTags";
|
|
9734
|
+
}, {
|
|
9735
|
+
readonly $ref: "Item_EnchantmentTags";
|
|
9736
|
+
}];
|
|
9737
|
+
readonly allOf: [{
|
|
9738
|
+
readonly $ref: "Item_ItemStackBase";
|
|
9739
|
+
}];
|
|
9740
|
+
readonly $fragment: true;
|
|
9741
|
+
};
|
|
9742
|
+
readonly Item_GeneralTags: {
|
|
9743
|
+
readonly id: "Item_GeneralTags";
|
|
9744
|
+
readonly type: "compound";
|
|
9745
|
+
readonly properties: {
|
|
9746
|
+
readonly tag: {
|
|
9747
|
+
readonly type: "compound";
|
|
9748
|
+
readonly properties: {
|
|
9749
|
+
readonly Damage: {
|
|
9750
|
+
readonly markdownDescription: "(May not exist) The damage value for this item. Defaults to 0.";
|
|
9751
|
+
readonly type: "int";
|
|
9752
|
+
readonly default: {
|
|
9753
|
+
readonly type: "int";
|
|
9754
|
+
readonly value: 0;
|
|
9755
|
+
};
|
|
9756
|
+
};
|
|
9757
|
+
readonly display: {
|
|
9758
|
+
readonly description: "(May not exist) Display properties.";
|
|
9759
|
+
readonly type: "compound";
|
|
9760
|
+
readonly properties: {
|
|
9761
|
+
readonly Lore: {
|
|
9762
|
+
readonly description: "(May not exist) List of strings to display as lore for the item.";
|
|
9763
|
+
readonly type: "list";
|
|
9764
|
+
readonly items: {
|
|
9765
|
+
readonly markdownDescription: "(May not exist) A line of text for the lore of an item.";
|
|
9766
|
+
readonly type: "string";
|
|
9767
|
+
};
|
|
9768
|
+
};
|
|
9769
|
+
readonly Name: {
|
|
9770
|
+
readonly markdownDescription: "(May not exist) The JSON text component to use to display the item name.";
|
|
9771
|
+
readonly type: "string";
|
|
9772
|
+
};
|
|
9773
|
+
};
|
|
9774
|
+
};
|
|
9775
|
+
readonly "minecraft:item_lock": {
|
|
9776
|
+
readonly markdownDescription: "1 for \"lock in slot\". 2 for \"lock in inventory\".";
|
|
9777
|
+
readonly type: "byte";
|
|
9778
|
+
readonly default: {
|
|
9779
|
+
readonly type: "byte";
|
|
9780
|
+
readonly value: 0;
|
|
9781
|
+
};
|
|
9782
|
+
readonly markdownEnumDescriptions: ["none", "lock in slot", "lock in inventory"];
|
|
9783
|
+
readonly enum: [{
|
|
9784
|
+
readonly type: "byte";
|
|
9785
|
+
readonly value: 0;
|
|
9786
|
+
}, {
|
|
9787
|
+
readonly type: "byte";
|
|
9788
|
+
readonly value: 1;
|
|
9789
|
+
}, {
|
|
9790
|
+
readonly type: "byte";
|
|
9791
|
+
readonly value: 2;
|
|
9792
|
+
}];
|
|
9793
|
+
};
|
|
9794
|
+
readonly "minecraft:keep_on_death": {
|
|
9795
|
+
readonly markdownDescription: "1 if keeping on death.*needs testing*";
|
|
9796
|
+
readonly type: "byte";
|
|
9797
|
+
readonly default: {
|
|
9798
|
+
readonly type: "byte";
|
|
9799
|
+
readonly value: 0;
|
|
9800
|
+
};
|
|
9801
|
+
readonly markdownEnumDescriptions: ["false", "true"];
|
|
9802
|
+
readonly enum: [{
|
|
9803
|
+
readonly type: "byte";
|
|
9804
|
+
readonly value: 0;
|
|
9805
|
+
}, {
|
|
9806
|
+
readonly type: "byte";
|
|
9807
|
+
readonly value: 1;
|
|
9808
|
+
}];
|
|
9809
|
+
};
|
|
9810
|
+
readonly RepairCost: {
|
|
9811
|
+
readonly markdownDescription: "(May not exist) Number of experience levels to add to the base level cost when repairing, combining, or renaming this item with an [Anvil](https://minecraft.wiki/w/Anvil).";
|
|
9812
|
+
readonly type: "int";
|
|
9813
|
+
readonly default: {
|
|
9814
|
+
readonly type: "int";
|
|
9815
|
+
readonly value: 0;
|
|
9816
|
+
};
|
|
9817
|
+
};
|
|
9818
|
+
readonly Unbreakable: {
|
|
9819
|
+
readonly markdownDescription: "1 or 0 (true/false) - (may not exist) if this item's durability is allowed to take damage.";
|
|
9820
|
+
readonly type: "byte";
|
|
9821
|
+
readonly default: {
|
|
9822
|
+
readonly type: "byte";
|
|
9823
|
+
readonly value: 0;
|
|
9824
|
+
};
|
|
9825
|
+
readonly markdownEnumDescriptions: ["false", "true"];
|
|
9826
|
+
readonly enum: [{
|
|
9827
|
+
readonly type: "byte";
|
|
9828
|
+
readonly value: 0;
|
|
9829
|
+
}, {
|
|
9830
|
+
readonly type: "byte";
|
|
9831
|
+
readonly value: 1;
|
|
9832
|
+
}];
|
|
9833
|
+
};
|
|
9834
|
+
};
|
|
9835
|
+
};
|
|
9836
|
+
};
|
|
9837
|
+
readonly $fragment: true;
|
|
9838
|
+
readonly markdownDescription: "Items with durability store their damage value in NBT. Additionally, items can have custom display names and lore. There is also the **RepairCost** tag which tracks anvil usage for items, making them more costly with every use of the anvil.";
|
|
9839
|
+
};
|
|
9840
|
+
readonly Item_EnchantmentTags: {
|
|
9841
|
+
readonly id: "Item_EnchantmentTags";
|
|
9842
|
+
readonly type: "compound";
|
|
9843
|
+
readonly properties: {
|
|
9844
|
+
readonly tag: {
|
|
9845
|
+
readonly type: "compound";
|
|
9846
|
+
readonly required: ["ench"];
|
|
9847
|
+
readonly properties: {
|
|
9848
|
+
readonly ench: {
|
|
9849
|
+
readonly description: "Contains enchantments on this item.";
|
|
9850
|
+
readonly type: "list";
|
|
9851
|
+
readonly items: {
|
|
9852
|
+
readonly description: "A single enchantment.";
|
|
9853
|
+
readonly type: "compound";
|
|
9854
|
+
readonly required: ["id", "lvl"];
|
|
9855
|
+
readonly properties: {
|
|
9856
|
+
readonly id: {
|
|
9857
|
+
readonly markdownDescription: "The ID of the enchantment. See [Bedrock Edition data values#Enchantment IDs](https://minecraft.wiki/w/Bedrock_Edition_data_values#Enchantment_IDs).";
|
|
9858
|
+
readonly type: "short";
|
|
9859
|
+
readonly markdownEnumDescriptions: ["Protection (protection)", "Fire Protection (fire_protection)", "Feather Falling (feather_falling)", "Blast Protection (blast_protection)", "Projectile Protection (projectile_protection)", "Thorns (thorns)", "Respiration (respiration)", "Depth Strider (depth_strider)", "Aqua Affinity (aqua_affinity)", "Sharpness (sharpness)", "Smite (smite)", "Bane of Arthropods (bane_of_arthropods)", "Knockback (knockback)", "Fire Aspect (fire_aspect)", "Looting (looting)", "Efficiency (efficiency)", "Silk Touch (silk_touch)", "Unbreaking (unbreaking)", "Fortune (fortune)", "Power (power)", "Punch (punch)", "Flame (flame)", "Infinity (infinity)", "Luck of the Sea (luck_of_the_sea)", "Lure (lure)", "Frost Walker (frost_walker)", "Mending (mending)", "Curse of Binding (binding)", "Curse of Vanishing (vanishing)", "Impaling (impaling)", "Riptide (riptide)", "Loyalty (loyalty)", "Channeling (channeling)", "Multishot (multishot)", "Piercing (piercing)", "Quick Charge (quick_charge)", "Soul Speed (soul_speed)", "Swift Sneak (swift_sneak)", "Wind Burst (wind_burst)", "Density (density)", "Breach (breach)", "Lunge (lunge)"];
|
|
9860
|
+
readonly enum: [{
|
|
9861
|
+
readonly type: "byte";
|
|
9862
|
+
readonly value: 0;
|
|
9863
|
+
}, {
|
|
9864
|
+
readonly type: "byte";
|
|
9865
|
+
readonly value: 1;
|
|
9866
|
+
}, {
|
|
9867
|
+
readonly type: "byte";
|
|
9868
|
+
readonly value: 2;
|
|
9869
|
+
}, {
|
|
9870
|
+
readonly type: "byte";
|
|
9871
|
+
readonly value: 3;
|
|
9872
|
+
}, {
|
|
9873
|
+
readonly type: "byte";
|
|
9874
|
+
readonly value: 4;
|
|
9875
|
+
}, {
|
|
9876
|
+
readonly type: "byte";
|
|
9877
|
+
readonly value: 5;
|
|
9878
|
+
}, {
|
|
9879
|
+
readonly type: "byte";
|
|
9880
|
+
readonly value: 6;
|
|
9881
|
+
}, {
|
|
9882
|
+
readonly type: "byte";
|
|
9883
|
+
readonly value: 7;
|
|
9884
|
+
}, {
|
|
9885
|
+
readonly type: "byte";
|
|
9886
|
+
readonly value: 8;
|
|
9887
|
+
}, {
|
|
9888
|
+
readonly type: "byte";
|
|
9889
|
+
readonly value: 9;
|
|
9890
|
+
}, {
|
|
9891
|
+
readonly type: "byte";
|
|
9892
|
+
readonly value: 10;
|
|
9893
|
+
}, {
|
|
9894
|
+
readonly type: "byte";
|
|
9895
|
+
readonly value: 11;
|
|
9896
|
+
}, {
|
|
9897
|
+
readonly type: "byte";
|
|
9898
|
+
readonly value: 12;
|
|
9899
|
+
}, {
|
|
9900
|
+
readonly type: "byte";
|
|
9901
|
+
readonly value: 13;
|
|
9902
|
+
}, {
|
|
9903
|
+
readonly type: "byte";
|
|
9904
|
+
readonly value: 14;
|
|
9905
|
+
}, {
|
|
9906
|
+
readonly type: "byte";
|
|
9907
|
+
readonly value: 15;
|
|
9908
|
+
}, {
|
|
9909
|
+
readonly type: "byte";
|
|
9910
|
+
readonly value: 16;
|
|
9911
|
+
}, {
|
|
9912
|
+
readonly type: "byte";
|
|
9913
|
+
readonly value: 17;
|
|
9914
|
+
}, {
|
|
9915
|
+
readonly type: "byte";
|
|
9916
|
+
readonly value: 18;
|
|
9917
|
+
}, {
|
|
9918
|
+
readonly type: "byte";
|
|
9919
|
+
readonly value: 19;
|
|
9920
|
+
}, {
|
|
9921
|
+
readonly type: "byte";
|
|
9922
|
+
readonly value: 20;
|
|
9923
|
+
}, {
|
|
9924
|
+
readonly type: "byte";
|
|
9925
|
+
readonly value: 21;
|
|
9926
|
+
}, {
|
|
9927
|
+
readonly type: "byte";
|
|
9928
|
+
readonly value: 22;
|
|
9929
|
+
}, {
|
|
9930
|
+
readonly type: "byte";
|
|
9931
|
+
readonly value: 23;
|
|
9932
|
+
}, {
|
|
9933
|
+
readonly type: "byte";
|
|
9934
|
+
readonly value: 24;
|
|
9935
|
+
}, {
|
|
9936
|
+
readonly type: "byte";
|
|
9937
|
+
readonly value: 25;
|
|
9938
|
+
}, {
|
|
9939
|
+
readonly type: "byte";
|
|
9940
|
+
readonly value: 26;
|
|
9941
|
+
}, {
|
|
9942
|
+
readonly type: "byte";
|
|
9943
|
+
readonly value: 27;
|
|
9944
|
+
}, {
|
|
9945
|
+
readonly type: "byte";
|
|
9946
|
+
readonly value: 28;
|
|
9947
|
+
}, {
|
|
9948
|
+
readonly type: "byte";
|
|
9949
|
+
readonly value: 29;
|
|
9950
|
+
}, {
|
|
9951
|
+
readonly type: "byte";
|
|
9952
|
+
readonly value: 30;
|
|
9953
|
+
}, {
|
|
9954
|
+
readonly type: "byte";
|
|
9955
|
+
readonly value: 31;
|
|
9956
|
+
}, {
|
|
9957
|
+
readonly type: "byte";
|
|
9958
|
+
readonly value: 32;
|
|
9959
|
+
}, {
|
|
9960
|
+
readonly type: "byte";
|
|
9961
|
+
readonly value: 33;
|
|
9962
|
+
}, {
|
|
9963
|
+
readonly type: "byte";
|
|
9964
|
+
readonly value: 34;
|
|
9965
|
+
}, {
|
|
9966
|
+
readonly type: "byte";
|
|
9967
|
+
readonly value: 35;
|
|
9968
|
+
}, {
|
|
9969
|
+
readonly type: "byte";
|
|
9970
|
+
readonly value: 36;
|
|
9971
|
+
}, {
|
|
9972
|
+
readonly type: "byte";
|
|
9973
|
+
readonly value: 37;
|
|
9974
|
+
}, {
|
|
9975
|
+
readonly type: "byte";
|
|
9976
|
+
readonly value: 38;
|
|
9977
|
+
}, {
|
|
9978
|
+
readonly type: "byte";
|
|
9979
|
+
readonly value: 39;
|
|
9980
|
+
}, {
|
|
9981
|
+
readonly type: "byte";
|
|
9982
|
+
readonly value: 40;
|
|
9983
|
+
}, {
|
|
9984
|
+
readonly type: "byte";
|
|
9985
|
+
readonly value: 41;
|
|
9986
|
+
}];
|
|
9987
|
+
};
|
|
9988
|
+
readonly lvl: {
|
|
9989
|
+
readonly markdownDescription: "The level of the enchantment, where 1 is level 1. Values are clamped between -32768 and 32767 when reading.";
|
|
9990
|
+
readonly type: "short";
|
|
9991
|
+
};
|
|
9992
|
+
};
|
|
9993
|
+
};
|
|
9994
|
+
};
|
|
9995
|
+
};
|
|
9996
|
+
};
|
|
9997
|
+
};
|
|
9998
|
+
readonly $fragment: true;
|
|
9999
|
+
readonly markdownDescription: "In [Bedrock Edition](https://minecraft.wiki/w/Bedrock_Edition), there's only one way to store enchantment NBTs: both enchanted items and [Enchanted Book](https://minecraft.wiki/w/Enchanted_Book) share the ench tag.";
|
|
10000
|
+
};
|
|
9718
10001
|
readonly Item_ArmorTrim: {
|
|
9719
10002
|
readonly id: "Item_ArmorTrim";
|
|
9720
10003
|
readonly markdownDescription: "Additional fields when an [armor](https://minecraft.wiki/w/armor) is [trimmed](https://minecraft.wiki/w/Smithing_Template).";
|
|
@@ -10317,6 +10600,9 @@ export declare namespace NBTSchemas {
|
|
|
10317
10600
|
readonly type: "byte";
|
|
10318
10601
|
};
|
|
10319
10602
|
};
|
|
10603
|
+
readonly allOf: [{
|
|
10604
|
+
readonly $ref: "Item_ItemStack";
|
|
10605
|
+
}];
|
|
10320
10606
|
};
|
|
10321
10607
|
};
|
|
10322
10608
|
readonly InventoryVersion: {
|
|
@@ -11255,41 +11541,101 @@ export declare namespace NBTSchemas {
|
|
|
11255
11541
|
readonly title: "The Data2D schema.";
|
|
11256
11542
|
readonly markdownDescription: "The NBT structure of the parsed data of the Data2D content type.\n\nNote: This NBT structure is specific to the parser and serializer implemented by this module.\nThis is because the actual data is stored in binary format.";
|
|
11257
11543
|
readonly type: "compound";
|
|
11258
|
-
readonly
|
|
11259
|
-
|
|
11260
|
-
readonly
|
|
11261
|
-
|
|
11262
|
-
readonly
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
readonly
|
|
11544
|
+
readonly oneOf: [{
|
|
11545
|
+
readonly type: "compound";
|
|
11546
|
+
readonly required: ["version", "heightMap", "biomeData"];
|
|
11547
|
+
readonly properties: {
|
|
11548
|
+
readonly version: {
|
|
11549
|
+
readonly title: "Format Version";
|
|
11550
|
+
readonly markdownDescription: "The format version of the Data2D data. For versions before v1.18.0, this is format version 1. For modern Minecraft versions this is format version 2 but it is only used for worlds using the Old world type or an older base game version.";
|
|
11551
|
+
readonly type: "byte";
|
|
11552
|
+
readonly enumDescriptions: ["Pre-v1.18.0"];
|
|
11553
|
+
readonly enum: [{
|
|
11554
|
+
readonly type: "byte";
|
|
11555
|
+
readonly value: 1;
|
|
11556
|
+
}];
|
|
11557
|
+
};
|
|
11558
|
+
readonly heightMap: {
|
|
11559
|
+
readonly markdownDescription: "The height map data.\n\nIn it is stored as a 2D matrix with [x][z] height values.";
|
|
11267
11560
|
readonly type: "list";
|
|
11268
11561
|
readonly minItems: 16;
|
|
11269
11562
|
readonly maxItems: 16;
|
|
11270
11563
|
readonly items: {
|
|
11271
|
-
readonly markdownDescription: "A height
|
|
11272
|
-
readonly type: "
|
|
11564
|
+
readonly markdownDescription: "A height map row. Its index corresponds to the offset on the x axis.";
|
|
11565
|
+
readonly type: "list";
|
|
11566
|
+
readonly minItems: 16;
|
|
11567
|
+
readonly maxItems: 16;
|
|
11568
|
+
readonly items: {
|
|
11569
|
+
readonly markdownDescription: "A height value. Its index corresponds to the offset on the z axis.";
|
|
11570
|
+
readonly type: "short";
|
|
11571
|
+
};
|
|
11273
11572
|
};
|
|
11274
11573
|
};
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
readonly markdownDescription: "The biome data.\n\nIn it is stored as a 2D matrix with [x][z] biome numeric ID values.";
|
|
11278
|
-
readonly type: "list";
|
|
11279
|
-
readonly minItems: 16;
|
|
11280
|
-
readonly maxItems: 16;
|
|
11281
|
-
readonly items: {
|
|
11282
|
-
readonly markdownDescription: "A biome data row. Its index corresponds to the offset on the x axis.";
|
|
11574
|
+
readonly biomeData: {
|
|
11575
|
+
readonly markdownDescription: "The biome data.\n\nIn it is stored as a 2D matrix with [x][z] biome numeric ID values.";
|
|
11283
11576
|
readonly type: "list";
|
|
11284
11577
|
readonly minItems: 16;
|
|
11285
11578
|
readonly maxItems: 16;
|
|
11286
11579
|
readonly items: {
|
|
11287
|
-
readonly markdownDescription: "A biome
|
|
11580
|
+
readonly markdownDescription: "A biome data row. Its index corresponds to the offset on the x axis.";
|
|
11581
|
+
readonly type: "list";
|
|
11582
|
+
readonly minItems: 16;
|
|
11583
|
+
readonly maxItems: 16;
|
|
11584
|
+
readonly items: {
|
|
11585
|
+
readonly markdownDescription: "A biome numeric ID value. Its index corresponds to the offset on the z axis.";
|
|
11586
|
+
readonly type: "byte";
|
|
11587
|
+
};
|
|
11588
|
+
};
|
|
11589
|
+
};
|
|
11590
|
+
};
|
|
11591
|
+
}, {
|
|
11592
|
+
readonly type: "compound";
|
|
11593
|
+
readonly required: ["version", "heightMap", "biomeData"];
|
|
11594
|
+
readonly properties: {
|
|
11595
|
+
readonly version: {
|
|
11596
|
+
readonly title: "Format Version";
|
|
11597
|
+
readonly markdownDescription: "The format version of the Data2D data. For versions before v1.18.0, this is format version 1. For modern Minecraft versions this is format version 2 but it is only used for worlds using the Old world type or an older base game version.";
|
|
11598
|
+
readonly type: "byte";
|
|
11599
|
+
readonly enumDescriptions: ["Post-v1.18.0"];
|
|
11600
|
+
readonly enum: [{
|
|
11288
11601
|
readonly type: "byte";
|
|
11602
|
+
readonly value: 2;
|
|
11603
|
+
}];
|
|
11604
|
+
};
|
|
11605
|
+
readonly heightMap: {
|
|
11606
|
+
readonly markdownDescription: "The height map data.\n\nIn it is stored as a 2D matrix with [x][z] height values.";
|
|
11607
|
+
readonly type: "list";
|
|
11608
|
+
readonly minItems: 16;
|
|
11609
|
+
readonly maxItems: 16;
|
|
11610
|
+
readonly items: {
|
|
11611
|
+
readonly markdownDescription: "A height map row. Its index corresponds to the offset on the x axis.";
|
|
11612
|
+
readonly type: "list";
|
|
11613
|
+
readonly minItems: 16;
|
|
11614
|
+
readonly maxItems: 16;
|
|
11615
|
+
readonly items: {
|
|
11616
|
+
readonly markdownDescription: "A height value. Its index corresponds to the offset on the z axis.";
|
|
11617
|
+
readonly type: "short";
|
|
11618
|
+
};
|
|
11619
|
+
};
|
|
11620
|
+
};
|
|
11621
|
+
readonly biomeData: {
|
|
11622
|
+
readonly markdownDescription: "The biome data.\n\nIn it is stored as a 2D matrix with [x][z] biome numeric ID values.";
|
|
11623
|
+
readonly type: "list";
|
|
11624
|
+
readonly minItems: 16;
|
|
11625
|
+
readonly maxItems: 16;
|
|
11626
|
+
readonly items: {
|
|
11627
|
+
readonly markdownDescription: "A biome data row. Its index corresponds to the offset on the x axis.";
|
|
11628
|
+
readonly type: "list";
|
|
11629
|
+
readonly minItems: 16;
|
|
11630
|
+
readonly maxItems: 16;
|
|
11631
|
+
readonly items: {
|
|
11632
|
+
readonly markdownDescription: "A biome numeric ID value. Its index corresponds to the offset on the z axis.";
|
|
11633
|
+
readonly type: "short";
|
|
11634
|
+
};
|
|
11289
11635
|
};
|
|
11290
11636
|
};
|
|
11291
11637
|
};
|
|
11292
|
-
};
|
|
11638
|
+
}];
|
|
11293
11639
|
};
|
|
11294
11640
|
readonly Data3D: {
|
|
11295
11641
|
readonly id: "Data3D";
|
|
@@ -11663,15 +12009,15 @@ export declare namespace NBTSchemas {
|
|
|
11663
12009
|
}];
|
|
11664
12010
|
};
|
|
11665
12011
|
};
|
|
11666
|
-
readonly
|
|
11667
|
-
readonly title: "
|
|
11668
|
-
readonly markdownDescription: "256 bytes representing a 16x16 grid of
|
|
12012
|
+
readonly height_map: {
|
|
12013
|
+
readonly title: "Height Map";
|
|
12014
|
+
readonly markdownDescription: "256 bytes representing a 16x16 grid of height map data.";
|
|
11669
12015
|
readonly type: "list";
|
|
11670
12016
|
readonly minItems: 256;
|
|
11671
12017
|
readonly maxItems: 256;
|
|
11672
12018
|
readonly items: {
|
|
11673
|
-
readonly title: "
|
|
11674
|
-
readonly markdownDescription: "A byte representing
|
|
12019
|
+
readonly title: "Height";
|
|
12020
|
+
readonly markdownDescription: "A byte representing the height value.";
|
|
11675
12021
|
readonly type: "byte";
|
|
11676
12022
|
};
|
|
11677
12023
|
};
|
|
@@ -11683,7 +12029,7 @@ export declare namespace NBTSchemas {
|
|
|
11683
12029
|
readonly maxItems: 1024;
|
|
11684
12030
|
readonly items: {
|
|
11685
12031
|
readonly title: "Grass Color Component";
|
|
11686
|
-
readonly markdownDescription: "A byte representing one of four
|
|
12032
|
+
readonly markdownDescription: "A byte representing one of four components for a column. The components are: BiomeID,R,G,B";
|
|
11687
12033
|
readonly type: "byte";
|
|
11688
12034
|
};
|
|
11689
12035
|
};
|
|
@@ -12251,6 +12597,9 @@ export declare namespace NBTSchemas {
|
|
|
12251
12597
|
readonly type: "byte";
|
|
12252
12598
|
};
|
|
12253
12599
|
};
|
|
12600
|
+
readonly allOf: [{
|
|
12601
|
+
readonly $ref: "Item_ItemStack";
|
|
12602
|
+
}];
|
|
12254
12603
|
};
|
|
12255
12604
|
};
|
|
12256
12605
|
readonly fogCommandStack: {
|
|
@@ -12282,6 +12631,9 @@ export declare namespace NBTSchemas {
|
|
|
12282
12631
|
readonly type: "byte";
|
|
12283
12632
|
};
|
|
12284
12633
|
};
|
|
12634
|
+
readonly allOf: [{
|
|
12635
|
+
readonly $ref: "Item_ItemStack";
|
|
12636
|
+
}];
|
|
12285
12637
|
};
|
|
12286
12638
|
};
|
|
12287
12639
|
readonly LeftShoulderRiderID: {
|
|
@@ -13115,8 +13467,37 @@ export declare namespace NBTSchemas {
|
|
|
13115
13467
|
* @default false
|
|
13116
13468
|
*/
|
|
13117
13469
|
makeValueSchema?: boolean | undefined;
|
|
13470
|
+
/**
|
|
13471
|
+
* A callback function to determine whether a ref should be inlined or not.
|
|
13472
|
+
*
|
|
13473
|
+
* If {@link refNameResolver} is provided, then this will only be called if {@link refNameResolver} returns a string, this will be called
|
|
13474
|
+
* with the new name returned by {@link refNameResolver}.
|
|
13475
|
+
*
|
|
13476
|
+
* @param ref The name of the ref.
|
|
13477
|
+
* @param schema The current schema.
|
|
13478
|
+
* @param allSchemas The NBT schemas to use for resolving `$ref`s. Defaults to {@link nbtSchemas}.
|
|
13479
|
+
* @returns Whether the ref should be inlined.
|
|
13480
|
+
*
|
|
13481
|
+
* @todo Not implemented yet.
|
|
13482
|
+
*/
|
|
13483
|
+
shouldInlineRef?(ref: string, schema: NBTSchema | NBTSchemaFragment, allSchemas: Record<string, NBTSchema | NBTSchemaFragment>): boolean;
|
|
13484
|
+
/**
|
|
13485
|
+
* A callback function that allows you to rename refs, so if you have the ref registered under a different name, that name will be used
|
|
13486
|
+
* instead, or if you want to replace a referenced schema with a different one, this can do that as well.
|
|
13487
|
+
*
|
|
13488
|
+
* @param ref The name of the ref.
|
|
13489
|
+
* @param schema The current schema.
|
|
13490
|
+
* @param allSchemas The NBT schemas to use for resolving `$ref`s. Defaults to {@link nbtSchemas}.
|
|
13491
|
+
* @returns The new name of the ref, or an object containing the new name and an `inline` property that controls whether the new ref name should be resolved and inlined.
|
|
13492
|
+
*
|
|
13493
|
+
* @todo Not implemented yet.
|
|
13494
|
+
*/
|
|
13495
|
+
refNameResolver?(ref: string, schema: NBTSchema | NBTSchemaFragment, allSchemas: Record<string, NBTSchema | NBTSchemaFragment>): string | {
|
|
13496
|
+
inline: boolean;
|
|
13497
|
+
name: string;
|
|
13498
|
+
};
|
|
13118
13499
|
}
|
|
13119
|
-
const defaultConvertOptions: Full<ConvertOptions>;
|
|
13500
|
+
const defaultConvertOptions: Omit<Full<ConvertOptions>, "shouldInlineRef" | "refNameResolver">;
|
|
13120
13501
|
/**
|
|
13121
13502
|
* Convert a custom NBT schema into JSON Schema for NBT tags.
|
|
13122
13503
|
*
|
|
@@ -15252,6 +15633,12 @@ export declare namespace NBTSchemas {
|
|
|
15252
15633
|
*
|
|
15253
15634
|
* @example
|
|
15254
15635
|
* "minecraft:pale_garden"
|
|
15636
|
+
*
|
|
15637
|
+
* @example
|
|
15638
|
+
* "minecraft:sulfur_caves"
|
|
15639
|
+
*
|
|
15640
|
+
* @example
|
|
15641
|
+
* "minecraft:dappled_forest"
|
|
15255
15642
|
*/
|
|
15256
15643
|
BiomeOverride?: {
|
|
15257
15644
|
type: "string";
|
|
@@ -15971,26 +16358,26 @@ export declare namespace NBTSchemas {
|
|
|
15971
16358
|
GameType?: {
|
|
15972
16359
|
type: "int";
|
|
15973
16360
|
value: number;
|
|
15974
|
-
} &
|
|
16361
|
+
} & ExclusifyUnion<{
|
|
15975
16362
|
type: "int";
|
|
15976
16363
|
value: number;
|
|
15977
16364
|
} | {
|
|
15978
16365
|
type: "int";
|
|
15979
16366
|
value: 0 | 1 | 2 | 5 | 6;
|
|
15980
|
-
}
|
|
16367
|
+
}>;
|
|
15981
16368
|
/**
|
|
15982
16369
|
* The world type. 0 is Old, 1 is Infinite, 2 is Flat, and 5 is Void.
|
|
15983
16370
|
*/
|
|
15984
16371
|
Generator?: {
|
|
15985
16372
|
type: "int";
|
|
15986
16373
|
value: number;
|
|
15987
|
-
} &
|
|
16374
|
+
} & ExclusifyUnion<{
|
|
15988
16375
|
type: "int";
|
|
15989
16376
|
value: number;
|
|
15990
16377
|
} | {
|
|
15991
16378
|
type: "int";
|
|
15992
16379
|
value: 0 | 1 | 2 | 5;
|
|
15993
|
-
}
|
|
16380
|
+
}>;
|
|
15994
16381
|
/**
|
|
15995
16382
|
* Whether the world has achievements locked. Set to 1 if the default game mode is set to Creative, if [cheats](https://minecraft.wiki/w/Commands#Cheats) have been enabled, or if a [behavior pack](https://minecraft.wiki/w/add-on) has been equipped.
|
|
15996
16383
|
*
|
|
@@ -16846,13 +17233,13 @@ export declare namespace NBTSchemas {
|
|
|
16846
17233
|
XBLBroadcastIntent?: {
|
|
16847
17234
|
type: "int";
|
|
16848
17235
|
value: number;
|
|
16849
|
-
} &
|
|
17236
|
+
} & ExclusifyUnion<{
|
|
16850
17237
|
type: "int";
|
|
16851
17238
|
value: number;
|
|
16852
17239
|
} | {
|
|
16853
17240
|
type: "int";
|
|
16854
17241
|
value: 0 | 1 | 2 | 3;
|
|
16855
|
-
}
|
|
17242
|
+
}>;
|
|
16856
17243
|
};
|
|
16857
17244
|
};
|
|
16858
17245
|
/**
|
|
@@ -17249,7 +17636,7 @@ export declare namespace NBTSchemas {
|
|
|
17249
17636
|
type: "int";
|
|
17250
17637
|
value: number;
|
|
17251
17638
|
};
|
|
17252
|
-
} &
|
|
17639
|
+
} & ExclusifyUnion<object | {
|
|
17253
17640
|
/**
|
|
17254
17641
|
* UNTITLED.
|
|
17255
17642
|
*
|
|
@@ -17342,7 +17729,7 @@ export declare namespace NBTSchemas {
|
|
|
17342
17729
|
type: "byte";
|
|
17343
17730
|
value: 0 | 1;
|
|
17344
17731
|
};
|
|
17345
|
-
})
|
|
17732
|
+
}>)[];
|
|
17346
17733
|
};
|
|
17347
17734
|
};
|
|
17348
17735
|
/**
|
|
@@ -17615,7 +18002,7 @@ export declare namespace NBTSchemas {
|
|
|
17615
18002
|
type: "int";
|
|
17616
18003
|
value: number;
|
|
17617
18004
|
};
|
|
17618
|
-
} &
|
|
18005
|
+
} & ExclusifyUnion<object | {
|
|
17619
18006
|
/**
|
|
17620
18007
|
* Witch
|
|
17621
18008
|
*
|
|
@@ -17753,7 +18140,7 @@ export declare namespace NBTSchemas {
|
|
|
17753
18140
|
type: "byte";
|
|
17754
18141
|
value: 0 | 1;
|
|
17755
18142
|
};
|
|
17756
|
-
})
|
|
18143
|
+
}>)[];
|
|
17757
18144
|
};
|
|
17758
18145
|
};
|
|
17759
18146
|
/**
|
|
@@ -22597,7 +22984,7 @@ export declare namespace NBTSchemas {
|
|
|
22597
22984
|
type: "list";
|
|
22598
22985
|
value: {
|
|
22599
22986
|
type: "compound";
|
|
22600
|
-
value: {
|
|
22987
|
+
value: ({
|
|
22601
22988
|
/**
|
|
22602
22989
|
* The slot the item is in.
|
|
22603
22990
|
*/
|
|
@@ -22605,7 +22992,7 @@ export declare namespace NBTSchemas {
|
|
|
22605
22992
|
type: "byte";
|
|
22606
22993
|
value: number;
|
|
22607
22994
|
};
|
|
22608
|
-
}[];
|
|
22995
|
+
} & Item_ItemStack["value"])[];
|
|
22609
22996
|
};
|
|
22610
22997
|
};
|
|
22611
22998
|
/**
|
|
@@ -22639,7 +23026,7 @@ export declare namespace NBTSchemas {
|
|
|
22639
23026
|
type: "list";
|
|
22640
23027
|
value: {
|
|
22641
23028
|
type: "compound";
|
|
22642
|
-
value: {
|
|
23029
|
+
value: ({
|
|
22643
23030
|
/**
|
|
22644
23031
|
* The slot the item is in.
|
|
22645
23032
|
*/
|
|
@@ -22647,7 +23034,7 @@ export declare namespace NBTSchemas {
|
|
|
22647
23034
|
type: "byte";
|
|
22648
23035
|
value: number;
|
|
22649
23036
|
};
|
|
22650
|
-
}[];
|
|
23037
|
+
} & Item_ItemStack["value"])[];
|
|
22651
23038
|
};
|
|
22652
23039
|
};
|
|
22653
23040
|
/**
|
|
@@ -23708,7 +24095,7 @@ export declare namespace NBTSchemas {
|
|
|
23708
24095
|
type: "list";
|
|
23709
24096
|
value: {
|
|
23710
24097
|
type: "compound";
|
|
23711
|
-
value: {
|
|
24098
|
+
value: ({
|
|
23712
24099
|
/**
|
|
23713
24100
|
* The slot the item is in.
|
|
23714
24101
|
*/
|
|
@@ -23716,7 +24103,7 @@ export declare namespace NBTSchemas {
|
|
|
23716
24103
|
type: "byte";
|
|
23717
24104
|
value: number;
|
|
23718
24105
|
};
|
|
23719
|
-
}[];
|
|
24106
|
+
} & Item_ItemStack["value"])[];
|
|
23720
24107
|
};
|
|
23721
24108
|
};
|
|
23722
24109
|
};
|
|
@@ -25544,9 +25931,9 @@ export declare namespace NBTSchemas {
|
|
|
25544
25931
|
/**
|
|
25545
25932
|
* All items share this base.
|
|
25546
25933
|
*
|
|
25547
|
-
* @see {@link NBTSchemas.nbtSchemas.
|
|
25934
|
+
* @see {@link NBTSchemas.nbtSchemas.Item_ItemStackBase}
|
|
25548
25935
|
*/
|
|
25549
|
-
type
|
|
25936
|
+
type Item_ItemStackBase = {
|
|
25550
25937
|
type: "compound";
|
|
25551
25938
|
value: {
|
|
25552
25939
|
/**
|
|
@@ -25613,6 +26000,205 @@ export declare namespace NBTSchemas {
|
|
|
25613
26000
|
};
|
|
25614
26001
|
};
|
|
25615
26002
|
};
|
|
26003
|
+
/**
|
|
26004
|
+
* All items share this base.
|
|
26005
|
+
*
|
|
26006
|
+
* @see {@link NBTSchemas.nbtSchemas.Item_ItemStack}
|
|
26007
|
+
*/
|
|
26008
|
+
type Item_ItemStack = {
|
|
26009
|
+
type: "compound";
|
|
26010
|
+
value: object;
|
|
26011
|
+
} & Item_ItemStackBase & (Item_GeneralTags | Item_EnchantmentTags);
|
|
26012
|
+
/**
|
|
26013
|
+
* Items with durability store their damage value in NBT. Additionally, items can have custom display names and lore. There is also the **RepairCost** tag which tracks anvil usage for items, making them more costly with every use of the anvil.
|
|
26014
|
+
*
|
|
26015
|
+
* @see {@link NBTSchemas.nbtSchemas.Item_GeneralTags}
|
|
26016
|
+
*/
|
|
26017
|
+
type Item_GeneralTags = {
|
|
26018
|
+
type: "compound";
|
|
26019
|
+
value: {
|
|
26020
|
+
tag?: {
|
|
26021
|
+
type: "compound";
|
|
26022
|
+
value: {
|
|
26023
|
+
/**
|
|
26024
|
+
* (May not exist) The damage value for this item. Defaults to 0.
|
|
26025
|
+
*
|
|
26026
|
+
* @default 0
|
|
26027
|
+
*/
|
|
26028
|
+
Damage?: {
|
|
26029
|
+
type: "int";
|
|
26030
|
+
value: number;
|
|
26031
|
+
};
|
|
26032
|
+
/**
|
|
26033
|
+
* (May not exist) Display properties.
|
|
26034
|
+
*/
|
|
26035
|
+
display?: {
|
|
26036
|
+
type: "compound";
|
|
26037
|
+
value: {
|
|
26038
|
+
/**
|
|
26039
|
+
* (May not exist) List of strings to display as lore for the item.
|
|
26040
|
+
*/
|
|
26041
|
+
Lore?: {
|
|
26042
|
+
type: "list";
|
|
26043
|
+
value: {
|
|
26044
|
+
type: "string";
|
|
26045
|
+
value: string[];
|
|
26046
|
+
};
|
|
26047
|
+
};
|
|
26048
|
+
/**
|
|
26049
|
+
* (May not exist) The JSON text component to use to display the item name.
|
|
26050
|
+
*/
|
|
26051
|
+
Name?: {
|
|
26052
|
+
type: "string";
|
|
26053
|
+
value: string;
|
|
26054
|
+
};
|
|
26055
|
+
};
|
|
26056
|
+
};
|
|
26057
|
+
/**
|
|
26058
|
+
* 1 for "lock in slot". 2 for "lock in inventory".
|
|
26059
|
+
*
|
|
26060
|
+
* @default 0
|
|
26061
|
+
*
|
|
26062
|
+
* @enum 0 | 1 | 2
|
|
26063
|
+
*
|
|
26064
|
+
* @enumDescriptions
|
|
26065
|
+
* - `0`: none
|
|
26066
|
+
* - `1`: lock in slot
|
|
26067
|
+
* - `2`: lock in inventory
|
|
26068
|
+
*/
|
|
26069
|
+
"minecraft:item_lock"?: {
|
|
26070
|
+
type: "byte";
|
|
26071
|
+
value: 0 | 1 | 2;
|
|
26072
|
+
};
|
|
26073
|
+
/**
|
|
26074
|
+
* 1 if keeping on death.*needs testing*
|
|
26075
|
+
*
|
|
26076
|
+
* @default 0
|
|
26077
|
+
*
|
|
26078
|
+
* @enum 0 | 1
|
|
26079
|
+
*
|
|
26080
|
+
* @enumDescriptions
|
|
26081
|
+
* - `0`: false
|
|
26082
|
+
* - `1`: true
|
|
26083
|
+
*/
|
|
26084
|
+
"minecraft:keep_on_death"?: {
|
|
26085
|
+
type: "byte";
|
|
26086
|
+
value: 0 | 1;
|
|
26087
|
+
};
|
|
26088
|
+
/**
|
|
26089
|
+
* (May not exist) Number of experience levels to add to the base level cost when repairing, combining, or renaming this item with an [Anvil](https://minecraft.wiki/w/Anvil).
|
|
26090
|
+
*
|
|
26091
|
+
* @default 0
|
|
26092
|
+
*/
|
|
26093
|
+
RepairCost?: {
|
|
26094
|
+
type: "int";
|
|
26095
|
+
value: number;
|
|
26096
|
+
};
|
|
26097
|
+
/**
|
|
26098
|
+
* 1 or 0 (true/false) - (may not exist) if this item's durability is allowed to take damage.
|
|
26099
|
+
*
|
|
26100
|
+
* @default 0
|
|
26101
|
+
*
|
|
26102
|
+
* @enum 0 | 1
|
|
26103
|
+
*
|
|
26104
|
+
* @enumDescriptions
|
|
26105
|
+
* - `0`: false
|
|
26106
|
+
* - `1`: true
|
|
26107
|
+
*/
|
|
26108
|
+
Unbreakable?: {
|
|
26109
|
+
type: "byte";
|
|
26110
|
+
value: 0 | 1;
|
|
26111
|
+
};
|
|
26112
|
+
};
|
|
26113
|
+
};
|
|
26114
|
+
};
|
|
26115
|
+
};
|
|
26116
|
+
/**
|
|
26117
|
+
* In [Bedrock Edition](https://minecraft.wiki/w/Bedrock_Edition), there's only one way to store enchantment NBTs: both enchanted items and [Enchanted Book](https://minecraft.wiki/w/Enchanted_Book) share the ench tag.
|
|
26118
|
+
*
|
|
26119
|
+
* @see {@link NBTSchemas.nbtSchemas.Item_EnchantmentTags}
|
|
26120
|
+
*/
|
|
26121
|
+
type Item_EnchantmentTags = {
|
|
26122
|
+
type: "compound";
|
|
26123
|
+
value: {
|
|
26124
|
+
tag?: {
|
|
26125
|
+
type: "compound";
|
|
26126
|
+
value: {
|
|
26127
|
+
/**
|
|
26128
|
+
* Contains enchantments on this item.
|
|
26129
|
+
*/
|
|
26130
|
+
ench: {
|
|
26131
|
+
type: "list";
|
|
26132
|
+
value: {
|
|
26133
|
+
type: "compound";
|
|
26134
|
+
value: {
|
|
26135
|
+
/**
|
|
26136
|
+
* The ID of the enchantment. See [Bedrock Edition data values#Enchantment IDs](https://minecraft.wiki/w/Bedrock_Edition_data_values#Enchantment_IDs).
|
|
26137
|
+
*
|
|
26138
|
+
* @enum 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41
|
|
26139
|
+
*
|
|
26140
|
+
* @enumDescriptions
|
|
26141
|
+
* - `0`: Protection (protection)
|
|
26142
|
+
* - `1`: Fire Protection (fire_protection)
|
|
26143
|
+
* - `2`: Feather Falling (feather_falling)
|
|
26144
|
+
* - `3`: Blast Protection (blast_protection)
|
|
26145
|
+
* - `4`: Projectile Protection (projectile_protection)
|
|
26146
|
+
* - `5`: Thorns (thorns)
|
|
26147
|
+
* - `6`: Respiration (respiration)
|
|
26148
|
+
* - `7`: Depth Strider (depth_strider)
|
|
26149
|
+
* - `8`: Aqua Affinity (aqua_affinity)
|
|
26150
|
+
* - `9`: Sharpness (sharpness)
|
|
26151
|
+
* - `10`: Smite (smite)
|
|
26152
|
+
* - `11`: Bane of Arthropods (bane_of_arthropods)
|
|
26153
|
+
* - `12`: Knockback (knockback)
|
|
26154
|
+
* - `13`: Fire Aspect (fire_aspect)
|
|
26155
|
+
* - `14`: Looting (looting)
|
|
26156
|
+
* - `15`: Efficiency (efficiency)
|
|
26157
|
+
* - `16`: Silk Touch (silk_touch)
|
|
26158
|
+
* - `17`: Unbreaking (unbreaking)
|
|
26159
|
+
* - `18`: Fortune (fortune)
|
|
26160
|
+
* - `19`: Power (power)
|
|
26161
|
+
* - `20`: Punch (punch)
|
|
26162
|
+
* - `21`: Flame (flame)
|
|
26163
|
+
* - `22`: Infinity (infinity)
|
|
26164
|
+
* - `23`: Luck of the Sea (luck_of_the_sea)
|
|
26165
|
+
* - `24`: Lure (lure)
|
|
26166
|
+
* - `25`: Frost Walker (frost_walker)
|
|
26167
|
+
* - `26`: Mending (mending)
|
|
26168
|
+
* - `27`: Curse of Binding (binding)
|
|
26169
|
+
* - `28`: Curse of Vanishing (vanishing)
|
|
26170
|
+
* - `29`: Impaling (impaling)
|
|
26171
|
+
* - `30`: Riptide (riptide)
|
|
26172
|
+
* - `31`: Loyalty (loyalty)
|
|
26173
|
+
* - `32`: Channeling (channeling)
|
|
26174
|
+
* - `33`: Multishot (multishot)
|
|
26175
|
+
* - `34`: Piercing (piercing)
|
|
26176
|
+
* - `35`: Quick Charge (quick_charge)
|
|
26177
|
+
* - `36`: Soul Speed (soul_speed)
|
|
26178
|
+
* - `37`: Swift Sneak (swift_sneak)
|
|
26179
|
+
* - `38`: Wind Burst (wind_burst)
|
|
26180
|
+
* - `39`: Density (density)
|
|
26181
|
+
* - `40`: Breach (breach)
|
|
26182
|
+
* - `41`: Lunge (lunge)
|
|
26183
|
+
*/
|
|
26184
|
+
id: {
|
|
26185
|
+
type: "short";
|
|
26186
|
+
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41;
|
|
26187
|
+
};
|
|
26188
|
+
/**
|
|
26189
|
+
* The level of the enchantment, where 1 is level 1. Values are clamped between -32768 and 32767 when reading.
|
|
26190
|
+
*/
|
|
26191
|
+
lvl: {
|
|
26192
|
+
type: "short";
|
|
26193
|
+
value: number;
|
|
26194
|
+
};
|
|
26195
|
+
}[];
|
|
26196
|
+
};
|
|
26197
|
+
};
|
|
26198
|
+
};
|
|
26199
|
+
};
|
|
26200
|
+
};
|
|
26201
|
+
};
|
|
25616
26202
|
/**
|
|
25617
26203
|
* Additional fields when an [armor](https://minecraft.wiki/w/armor) is [trimmed](https://minecraft.wiki/w/Smithing_Template).
|
|
25618
26204
|
*
|
|
@@ -26402,7 +26988,7 @@ export declare namespace NBTSchemas {
|
|
|
26402
26988
|
type: "list";
|
|
26403
26989
|
value: {
|
|
26404
26990
|
type: "compound";
|
|
26405
|
-
value: {
|
|
26991
|
+
value: ({
|
|
26406
26992
|
/**
|
|
26407
26993
|
* The slot the item is in.
|
|
26408
26994
|
*/
|
|
@@ -26410,7 +26996,7 @@ export declare namespace NBTSchemas {
|
|
|
26410
26996
|
type: "byte";
|
|
26411
26997
|
value: number;
|
|
26412
26998
|
};
|
|
26413
|
-
}[];
|
|
26999
|
+
} & Item_ItemStack["value"])[];
|
|
26414
27000
|
};
|
|
26415
27001
|
};
|
|
26416
27002
|
/**
|
|
@@ -27253,7 +27839,7 @@ export declare namespace NBTSchemas {
|
|
|
27253
27839
|
type BiomeState = {
|
|
27254
27840
|
type: "compound";
|
|
27255
27841
|
value: object;
|
|
27256
|
-
} &
|
|
27842
|
+
} & ExclusifyUnion<{
|
|
27257
27843
|
type: "compound";
|
|
27258
27844
|
value: {
|
|
27259
27845
|
/**
|
|
@@ -27288,10 +27874,10 @@ export declare namespace NBTSchemas {
|
|
|
27288
27874
|
biome_id: {
|
|
27289
27875
|
type: "byte";
|
|
27290
27876
|
value: number;
|
|
27291
|
-
} & {
|
|
27877
|
+
} & ExclusifyUnion<{
|
|
27292
27878
|
type: "byte";
|
|
27293
|
-
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 129 | 130 | 131 | 132 | 133 | 134 | 140 | 149 | 151 | 155 | 156 | 157 | 158 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193;
|
|
27294
|
-
}
|
|
27879
|
+
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 129 | 130 | 131 | 132 | 133 | 134 | 140 | 149 | 151 | 155 | 156 | 157 | 158 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195;
|
|
27880
|
+
}>;
|
|
27295
27881
|
/**
|
|
27296
27882
|
* State
|
|
27297
27883
|
*
|
|
@@ -27340,13 +27926,13 @@ export declare namespace NBTSchemas {
|
|
|
27340
27926
|
biome_id: {
|
|
27341
27927
|
type: "short";
|
|
27342
27928
|
value: number;
|
|
27343
|
-
} &
|
|
27929
|
+
} & ExclusifyUnion<{
|
|
27344
27930
|
type: "short";
|
|
27345
|
-
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 129 | 130 | 131 | 132 | 133 | 134 | 140 | 149 | 151 | 155 | 156 | 157 | 158 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193;
|
|
27931
|
+
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 129 | 130 | 131 | 132 | 133 | 134 | 140 | 149 | 151 | 155 | 156 | 157 | 158 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195;
|
|
27346
27932
|
} | {
|
|
27347
27933
|
type: "short";
|
|
27348
27934
|
value: number;
|
|
27349
|
-
}
|
|
27935
|
+
}>;
|
|
27350
27936
|
/**
|
|
27351
27937
|
* State
|
|
27352
27938
|
*
|
|
@@ -27360,7 +27946,7 @@ export declare namespace NBTSchemas {
|
|
|
27360
27946
|
};
|
|
27361
27947
|
};
|
|
27362
27948
|
};
|
|
27363
|
-
}
|
|
27949
|
+
}>;
|
|
27364
27950
|
/**
|
|
27365
27951
|
* The BorderBlocks schema.
|
|
27366
27952
|
*
|
|
@@ -27483,8 +28069,25 @@ export declare namespace NBTSchemas {
|
|
|
27483
28069
|
* @see {@link NBTSchemas.nbtSchemas.Data2D}
|
|
27484
28070
|
*/
|
|
27485
28071
|
type Data2D = {
|
|
28072
|
+
type: "compound";
|
|
28073
|
+
value: object;
|
|
28074
|
+
} & ExclusifyUnion<{
|
|
27486
28075
|
type: "compound";
|
|
27487
28076
|
value: {
|
|
28077
|
+
/**
|
|
28078
|
+
* Format Version
|
|
28079
|
+
*
|
|
28080
|
+
* The format version of the Data2D data. For versions before v1.18.0, this is format version 1. For modern Minecraft versions this is format version 2 but it is only used for worlds using the Old world type or an older base game version.
|
|
28081
|
+
*
|
|
28082
|
+
* @enum 1
|
|
28083
|
+
*
|
|
28084
|
+
* @enumDescriptions
|
|
28085
|
+
* - `1`: Pre-v1.18.0
|
|
28086
|
+
*/
|
|
28087
|
+
version: {
|
|
28088
|
+
type: "byte";
|
|
28089
|
+
value: 1;
|
|
28090
|
+
};
|
|
27488
28091
|
/**
|
|
27489
28092
|
* The height map data.
|
|
27490
28093
|
*
|
|
@@ -27524,7 +28127,63 @@ export declare namespace NBTSchemas {
|
|
|
27524
28127
|
};
|
|
27525
28128
|
};
|
|
27526
28129
|
};
|
|
27527
|
-
}
|
|
28130
|
+
} | {
|
|
28131
|
+
type: "compound";
|
|
28132
|
+
value: {
|
|
28133
|
+
/**
|
|
28134
|
+
* Format Version
|
|
28135
|
+
*
|
|
28136
|
+
* The format version of the Data2D data. For versions before v1.18.0, this is format version 1. For modern Minecraft versions this is format version 2 but it is only used for worlds using the Old world type or an older base game version.
|
|
28137
|
+
*
|
|
28138
|
+
* @enum 2
|
|
28139
|
+
*
|
|
28140
|
+
* @enumDescriptions
|
|
28141
|
+
* - `2`: Post-v1.18.0
|
|
28142
|
+
*/
|
|
28143
|
+
version: {
|
|
28144
|
+
type: "byte";
|
|
28145
|
+
value: 2;
|
|
28146
|
+
};
|
|
28147
|
+
/**
|
|
28148
|
+
* The height map data.
|
|
28149
|
+
*
|
|
28150
|
+
* In it is stored as a 2D matrix with [x][z] height values.
|
|
28151
|
+
*
|
|
28152
|
+
* @minItems 16
|
|
28153
|
+
*
|
|
28154
|
+
* @maxItems 16
|
|
28155
|
+
*/
|
|
28156
|
+
heightMap: {
|
|
28157
|
+
type: "list";
|
|
28158
|
+
value: {
|
|
28159
|
+
type: "list";
|
|
28160
|
+
value: {
|
|
28161
|
+
type: "short";
|
|
28162
|
+
value: number[];
|
|
28163
|
+
}[];
|
|
28164
|
+
};
|
|
28165
|
+
};
|
|
28166
|
+
/**
|
|
28167
|
+
* The biome data.
|
|
28168
|
+
*
|
|
28169
|
+
* In it is stored as a 2D matrix with [x][z] biome numeric ID values.
|
|
28170
|
+
*
|
|
28171
|
+
* @minItems 16
|
|
28172
|
+
*
|
|
28173
|
+
* @maxItems 16
|
|
28174
|
+
*/
|
|
28175
|
+
biomeData: {
|
|
28176
|
+
type: "list";
|
|
28177
|
+
value: {
|
|
28178
|
+
type: "list";
|
|
28179
|
+
value: {
|
|
28180
|
+
type: "short";
|
|
28181
|
+
value: number[];
|
|
28182
|
+
}[];
|
|
28183
|
+
};
|
|
28184
|
+
};
|
|
28185
|
+
};
|
|
28186
|
+
}>;
|
|
27528
28187
|
/**
|
|
27529
28188
|
* The Data3D schema.
|
|
27530
28189
|
*
|
|
@@ -27596,7 +28255,7 @@ export declare namespace NBTSchemas {
|
|
|
27596
28255
|
type: "list";
|
|
27597
28256
|
value: {
|
|
27598
28257
|
type: "int";
|
|
27599
|
-
value: (number &
|
|
28258
|
+
value: (number & ExclusifyUnion<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 129 | 130 | 131 | 132 | 133 | 134 | 140 | 149 | 151 | 155 | 156 | 157 | 158 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | number>)[];
|
|
27600
28259
|
};
|
|
27601
28260
|
};
|
|
27602
28261
|
}[];
|
|
@@ -27805,15 +28464,15 @@ export declare namespace NBTSchemas {
|
|
|
27805
28464
|
};
|
|
27806
28465
|
};
|
|
27807
28466
|
/**
|
|
27808
|
-
*
|
|
28467
|
+
* Height Map
|
|
27809
28468
|
*
|
|
27810
|
-
* 256 bytes representing a 16x16 grid of
|
|
28469
|
+
* 256 bytes representing a 16x16 grid of height map data.
|
|
27811
28470
|
*
|
|
27812
28471
|
* @minItems 256
|
|
27813
28472
|
*
|
|
27814
28473
|
* @maxItems 256
|
|
27815
28474
|
*/
|
|
27816
|
-
|
|
28475
|
+
height_map: {
|
|
27817
28476
|
type: "list";
|
|
27818
28477
|
value: {
|
|
27819
28478
|
type: "byte";
|
|
@@ -28048,7 +28707,7 @@ export declare namespace NBTSchemas {
|
|
|
28048
28707
|
type SubChunkPrefix = {
|
|
28049
28708
|
type: "compound";
|
|
28050
28709
|
value: object;
|
|
28051
|
-
} &
|
|
28710
|
+
} & ExclusifyUnion<SubChunkPrefix_v0 | SubChunkPrefix_v1 | SubChunkPrefix_v8>;
|
|
28052
28711
|
/**
|
|
28053
28712
|
* The SubChunkPrefix schema for versions 0, 2, 3, 4, 5, 6, and 7.
|
|
28054
28713
|
*
|
|
@@ -28312,7 +28971,7 @@ export declare namespace NBTSchemas {
|
|
|
28312
28971
|
type: "list";
|
|
28313
28972
|
value: {
|
|
28314
28973
|
type: "compound";
|
|
28315
|
-
value: {
|
|
28974
|
+
value: ({
|
|
28316
28975
|
/**
|
|
28317
28976
|
* The slot the item is in.
|
|
28318
28977
|
*/
|
|
@@ -28320,7 +28979,7 @@ export declare namespace NBTSchemas {
|
|
|
28320
28979
|
type: "byte";
|
|
28321
28980
|
value: number;
|
|
28322
28981
|
};
|
|
28323
|
-
}[];
|
|
28982
|
+
} & Item_ItemStack["value"])[];
|
|
28324
28983
|
};
|
|
28325
28984
|
};
|
|
28326
28985
|
/**
|
|
@@ -28354,7 +29013,7 @@ export declare namespace NBTSchemas {
|
|
|
28354
29013
|
type: "list";
|
|
28355
29014
|
value: {
|
|
28356
29015
|
type: "compound";
|
|
28357
|
-
value: {
|
|
29016
|
+
value: ({
|
|
28358
29017
|
/**
|
|
28359
29018
|
* The slot the item is in.
|
|
28360
29019
|
*/
|
|
@@ -28362,7 +29021,7 @@ export declare namespace NBTSchemas {
|
|
|
28362
29021
|
type: "byte";
|
|
28363
29022
|
value: number;
|
|
28364
29023
|
};
|
|
28365
|
-
}[];
|
|
29024
|
+
} & Item_ItemStack["value"])[];
|
|
28366
29025
|
};
|
|
28367
29026
|
};
|
|
28368
29027
|
/**
|