@minecraft/server 2.3.0-rc.1.21.130-preview.20 → 2.3.0
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/README.md +0 -2
- package/index.d.ts +0 -25
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
4
|
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -187,7 +186,6 @@ export enum CommandPermissionLevel {
|
|
|
187
186
|
}
|
|
188
187
|
|
|
189
188
|
/**
|
|
190
|
-
* @rc
|
|
191
189
|
* Reasons that the {@link
|
|
192
190
|
* @minecraft/server.ContainerRulesError} was thrown.
|
|
193
191
|
*/
|
|
@@ -633,7 +631,6 @@ export enum EnchantmentSlot {
|
|
|
633
631
|
FishingRod = 'FishingRod',
|
|
634
632
|
Flintsteel = 'Flintsteel',
|
|
635
633
|
Hoe = 'Hoe',
|
|
636
|
-
MeleeSpear = 'MeleeSpear',
|
|
637
634
|
Pickaxe = 'Pickaxe',
|
|
638
635
|
Shears = 'Shears',
|
|
639
636
|
Shield = 'Shield',
|
|
@@ -2012,9 +2009,6 @@ export enum ItemComponentTypes {
|
|
|
2012
2009
|
*
|
|
2013
2010
|
*/
|
|
2014
2011
|
Food = 'minecraft:food',
|
|
2015
|
-
/**
|
|
2016
|
-
* @rc
|
|
2017
|
-
*/
|
|
2018
2012
|
Inventory = 'minecraft:inventory',
|
|
2019
2013
|
}
|
|
2020
2014
|
|
|
@@ -2889,7 +2883,6 @@ export type ItemComponentTypeMap = {
|
|
|
2889
2883
|
};
|
|
2890
2884
|
|
|
2891
2885
|
/**
|
|
2892
|
-
* @rc
|
|
2893
2886
|
* Describes a type of biome.
|
|
2894
2887
|
*/
|
|
2895
2888
|
export class BiomeType {
|
|
@@ -3175,7 +3168,6 @@ export class Block {
|
|
|
3175
3168
|
*/
|
|
3176
3169
|
getItemStack(amount?: number, withData?: boolean): ItemStack | undefined;
|
|
3177
3170
|
/**
|
|
3178
|
-
* @rc
|
|
3179
3171
|
* @remarks
|
|
3180
3172
|
* Returns the total brightness level of light shining on a
|
|
3181
3173
|
* certain block.
|
|
@@ -3206,7 +3198,6 @@ export class Block {
|
|
|
3206
3198
|
*/
|
|
3207
3199
|
getRedstonePower(): number | undefined;
|
|
3208
3200
|
/**
|
|
3209
|
-
* @rc
|
|
3210
3201
|
* @remarks
|
|
3211
3202
|
* Returns the brightness level of light shining from the sky
|
|
3212
3203
|
* on a certain block.
|
|
@@ -5057,7 +5048,6 @@ export class Component {
|
|
|
5057
5048
|
export class Container {
|
|
5058
5049
|
private constructor();
|
|
5059
5050
|
/**
|
|
5060
|
-
* @rc
|
|
5061
5051
|
* @remarks
|
|
5062
5052
|
* If these rules are defined other container operations will
|
|
5063
5053
|
* throw if they cause these rules to be invalidated. For
|
|
@@ -5093,7 +5083,6 @@ export class Container {
|
|
|
5093
5083
|
*/
|
|
5094
5084
|
readonly size: number;
|
|
5095
5085
|
/**
|
|
5096
|
-
* @rc
|
|
5097
5086
|
* @remarks
|
|
5098
5087
|
* The combined weight of all items in the container.
|
|
5099
5088
|
*
|
|
@@ -5700,7 +5689,6 @@ export class ContainerSlot {
|
|
|
5700
5689
|
*/
|
|
5701
5690
|
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
5702
5691
|
/**
|
|
5703
|
-
* @rc
|
|
5704
5692
|
* @remarks
|
|
5705
5693
|
* Sets multiple dynamic properties with specific values.
|
|
5706
5694
|
*
|
|
@@ -6075,7 +6063,6 @@ export class Dimension {
|
|
|
6075
6063
|
options?: BlockFillOptions,
|
|
6076
6064
|
): ListBlockVolume;
|
|
6077
6065
|
/**
|
|
6078
|
-
* @rc
|
|
6079
6066
|
* @remarks
|
|
6080
6067
|
* Returns the biome type at the specified location.
|
|
6081
6068
|
*
|
|
@@ -6295,7 +6282,6 @@ export class Dimension {
|
|
|
6295
6282
|
*/
|
|
6296
6283
|
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[];
|
|
6297
6284
|
/**
|
|
6298
|
-
* @rc
|
|
6299
6285
|
* @remarks
|
|
6300
6286
|
* Returns the total brightness level of light shining on a
|
|
6301
6287
|
* certain block position.
|
|
@@ -6329,7 +6315,6 @@ export class Dimension {
|
|
|
6329
6315
|
*/
|
|
6330
6316
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
6331
6317
|
/**
|
|
6332
|
-
* @rc
|
|
6333
6318
|
* @remarks
|
|
6334
6319
|
* Returns the brightness level of light shining from the sky
|
|
6335
6320
|
* on a certain block position.
|
|
@@ -6358,7 +6343,6 @@ export class Dimension {
|
|
|
6358
6343
|
*/
|
|
6359
6344
|
getTopmostBlock(locationXZ: VectorXZ, minHeight?: number): Block | undefined;
|
|
6360
6345
|
/**
|
|
6361
|
-
* @rc
|
|
6362
6346
|
* @remarks
|
|
6363
6347
|
* Returns true if the chunk at the given location is loaded
|
|
6364
6348
|
* (and valid for use with scripting).
|
|
@@ -7900,7 +7884,6 @@ export class Entity {
|
|
|
7900
7884
|
*/
|
|
7901
7885
|
runCommand(commandString: string): CommandResult;
|
|
7902
7886
|
/**
|
|
7903
|
-
* @rc
|
|
7904
7887
|
* @remarks
|
|
7905
7888
|
* Sets multiple dynamic properties with specific values.
|
|
7906
7889
|
*
|
|
@@ -12092,7 +12075,6 @@ export class ItemFoodComponent extends ItemComponent {
|
|
|
12092
12075
|
}
|
|
12093
12076
|
|
|
12094
12077
|
/**
|
|
12095
|
-
* @rc
|
|
12096
12078
|
* This component is added to items with the `Storage Item`
|
|
12097
12079
|
* component. Can access and modify this items inventory
|
|
12098
12080
|
* container.
|
|
@@ -12323,7 +12305,6 @@ export class ItemStack {
|
|
|
12323
12305
|
*/
|
|
12324
12306
|
readonly typeId: string;
|
|
12325
12307
|
/**
|
|
12326
|
-
* @rc
|
|
12327
12308
|
* @remarks
|
|
12328
12309
|
* The total weight of all items in the stack plus the weight
|
|
12329
12310
|
* of all items in the items container which is defined with
|
|
@@ -12616,7 +12597,6 @@ export class ItemStack {
|
|
|
12616
12597
|
*/
|
|
12617
12598
|
setCanPlaceOn(blockIdentifiers?: string[]): void;
|
|
12618
12599
|
/**
|
|
12619
|
-
* @rc
|
|
12620
12600
|
* @remarks
|
|
12621
12601
|
* Sets multiple dynamic properties with specific values.
|
|
12622
12602
|
*
|
|
@@ -17702,7 +17682,6 @@ export class World {
|
|
|
17702
17682
|
*/
|
|
17703
17683
|
setDifficulty(difficulty: Difficulty): void;
|
|
17704
17684
|
/**
|
|
17705
|
-
* @rc
|
|
17706
17685
|
* @remarks
|
|
17707
17686
|
* Sets multiple dynamic properties with specific values.
|
|
17708
17687
|
*
|
|
@@ -18715,7 +18694,6 @@ export interface CameraTargetOptions {
|
|
|
18715
18694
|
}
|
|
18716
18695
|
|
|
18717
18696
|
/**
|
|
18718
|
-
* @rc
|
|
18719
18697
|
* Rules that if broken on container operations will throw an
|
|
18720
18698
|
* error.
|
|
18721
18699
|
*/
|
|
@@ -20214,7 +20192,6 @@ export interface ScriptEventMessageFilterOptions {
|
|
|
20214
20192
|
*/
|
|
20215
20193
|
export interface SpawnEntityOptions {
|
|
20216
20194
|
/**
|
|
20217
|
-
* @rc
|
|
20218
20195
|
* @remarks
|
|
20219
20196
|
* Optional boolean which determines if this entity should
|
|
20220
20197
|
* persist in the game world. Persistence prevents the entity
|
|
@@ -20223,7 +20200,6 @@ export interface SpawnEntityOptions {
|
|
|
20223
20200
|
*/
|
|
20224
20201
|
initialPersistence?: boolean;
|
|
20225
20202
|
/**
|
|
20226
|
-
* @rc
|
|
20227
20203
|
* @remarks
|
|
20228
20204
|
* Optional initial rotation, in degrees, to set on the entity
|
|
20229
20205
|
* when it spawns.
|
|
@@ -20598,7 +20574,6 @@ export class CommandError extends Error {
|
|
|
20598
20574
|
export class ContainerRulesError extends Error {
|
|
20599
20575
|
private constructor();
|
|
20600
20576
|
/**
|
|
20601
|
-
* @rc
|
|
20602
20577
|
* @remarks
|
|
20603
20578
|
* The specific reason the error was thrown.
|
|
20604
20579
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.3.0
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|