@minecraft/server 2.13.0-beta.1.26.70-preview.22 → 2.13.0-beta.1.26.70-preview.23
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/index.d.ts +341 -25
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export enum BlockComponentTypes {
|
|
|
122
122
|
*/
|
|
123
123
|
Sign = 'minecraft:sign',
|
|
124
124
|
/**
|
|
125
|
-
* @
|
|
125
|
+
* @rc
|
|
126
126
|
*/
|
|
127
127
|
VibrationProperties = 'minecraft:vibration_properties',
|
|
128
128
|
}
|
|
@@ -2757,6 +2757,39 @@ export enum PlatformType {
|
|
|
2757
2757
|
Mobile = 'Mobile',
|
|
2758
2758
|
}
|
|
2759
2759
|
|
|
2760
|
+
/**
|
|
2761
|
+
* @beta
|
|
2762
|
+
* Describes what caused a player to change dimensions. Sent as
|
|
2763
|
+
* part of {@link PlayerDimensionChangeAfterEvent}.
|
|
2764
|
+
*/
|
|
2765
|
+
export enum PlayerDimensionChangeSource {
|
|
2766
|
+
/**
|
|
2767
|
+
* @remarks
|
|
2768
|
+
* The player respawned in another dimension after dying.
|
|
2769
|
+
*
|
|
2770
|
+
*/
|
|
2771
|
+
PlayerRespawn = 'PlayerRespawn',
|
|
2772
|
+
/**
|
|
2773
|
+
* @remarks
|
|
2774
|
+
* The player changed dimensions through a portal.
|
|
2775
|
+
*
|
|
2776
|
+
*/
|
|
2777
|
+
Portal = 'Portal',
|
|
2778
|
+
/**
|
|
2779
|
+
* @remarks
|
|
2780
|
+
* The player was teleported to another dimension by a command,
|
|
2781
|
+
* such as /tp or /execute, or by a script teleport.
|
|
2782
|
+
*
|
|
2783
|
+
*/
|
|
2784
|
+
TeleportCommand = 'TeleportCommand',
|
|
2785
|
+
/**
|
|
2786
|
+
* @remarks
|
|
2787
|
+
* The cause of the dimension change is not known.
|
|
2788
|
+
*
|
|
2789
|
+
*/
|
|
2790
|
+
Unknown = 'Unknown',
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2760
2793
|
/**
|
|
2761
2794
|
* Specifies the player inventory type.
|
|
2762
2795
|
*/
|
|
@@ -4398,7 +4431,7 @@ export class Block {
|
|
|
4398
4431
|
*/
|
|
4399
4432
|
east(steps?: number): Block | undefined;
|
|
4400
4433
|
/**
|
|
4401
|
-
* @
|
|
4434
|
+
* @rc
|
|
4402
4435
|
* @remarks
|
|
4403
4436
|
* Returns the named tick events scheduled at this block by the
|
|
4404
4437
|
* calling script pack.
|
|
@@ -4525,7 +4558,7 @@ export class Block {
|
|
|
4525
4558
|
*/
|
|
4526
4559
|
getRedstonePower(): number | undefined;
|
|
4527
4560
|
/**
|
|
4528
|
-
* @
|
|
4561
|
+
* @rc
|
|
4529
4562
|
* @remarks
|
|
4530
4563
|
* Returns the number of named tick events scheduled at this
|
|
4531
4564
|
* block, regardless of which script pack scheduled them.
|
|
@@ -4586,7 +4619,7 @@ export class Block {
|
|
|
4586
4619
|
*/
|
|
4587
4620
|
hasComponent(componentId: string): boolean;
|
|
4588
4621
|
/**
|
|
4589
|
-
* @
|
|
4622
|
+
* @rc
|
|
4590
4623
|
* @throws This function can throw errors.
|
|
4591
4624
|
*
|
|
4592
4625
|
* {@link LocationInUnloadedChunkError}
|
|
@@ -4735,7 +4768,7 @@ export class Block {
|
|
|
4735
4768
|
*/
|
|
4736
4769
|
offset(offset: Vector3): Block | undefined;
|
|
4737
4770
|
/**
|
|
4738
|
-
* @
|
|
4771
|
+
* @rc
|
|
4739
4772
|
* @remarks
|
|
4740
4773
|
* Removes all scheduled named tick events from this block with
|
|
4741
4774
|
* the specified event name.
|
|
@@ -4752,7 +4785,7 @@ export class Block {
|
|
|
4752
4785
|
*/
|
|
4753
4786
|
removeScheduledNamedTicks(eventName: string): void;
|
|
4754
4787
|
/**
|
|
4755
|
-
* @
|
|
4788
|
+
* @rc
|
|
4756
4789
|
* @remarks
|
|
4757
4790
|
* Schedules a named tick event for this block. The event will
|
|
4758
4791
|
* be delivered to block custom components registered with the
|
|
@@ -5119,7 +5152,7 @@ export class BlockComponentEntityFallOnEvent extends BlockEvent {
|
|
|
5119
5152
|
}
|
|
5120
5153
|
|
|
5121
5154
|
/**
|
|
5122
|
-
* @
|
|
5155
|
+
* @rc
|
|
5123
5156
|
* Contains information regarding a named tick event for a
|
|
5124
5157
|
* specific block.
|
|
5125
5158
|
*/
|
|
@@ -5145,7 +5178,7 @@ export class BlockComponentNamedTickEvent extends BlockEvent {
|
|
|
5145
5178
|
}
|
|
5146
5179
|
|
|
5147
5180
|
/**
|
|
5148
|
-
* @
|
|
5181
|
+
* @rc
|
|
5149
5182
|
* Contains information regarding neighboring block changes for
|
|
5150
5183
|
* a specific block.
|
|
5151
5184
|
*/
|
|
@@ -5590,9 +5623,11 @@ export class BlockDynamicPropertiesComponent extends BlockComponent {
|
|
|
5590
5623
|
* pack definition enables entity storage with the
|
|
5591
5624
|
* `minecraft:block_entity` component. Stored entities are
|
|
5592
5625
|
* serialized and removed from the world until they are
|
|
5593
|
-
* released or
|
|
5594
|
-
*
|
|
5595
|
-
* accessing
|
|
5626
|
+
* released, transferred, or permanently removed. A block can
|
|
5627
|
+
* store up to four entities across all content packs. Entity
|
|
5628
|
+
* storage operations are scoped to the content pack accessing
|
|
5629
|
+
* it, except for totalSize, which counts entities across all
|
|
5630
|
+
* content packs.
|
|
5596
5631
|
*/
|
|
5597
5632
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5598
5633
|
export class BlockEntityStorageComponent extends BlockComponent {
|
|
@@ -5653,6 +5688,34 @@ export class BlockEntityStorageComponent extends BlockComponent {
|
|
|
5653
5688
|
* {@link LocationOutOfWorldBoundariesError}
|
|
5654
5689
|
*/
|
|
5655
5690
|
release(entityId: string): Entity;
|
|
5691
|
+
/**
|
|
5692
|
+
* @remarks
|
|
5693
|
+
* Permanently removes a stored entity from the current content
|
|
5694
|
+
* pack's storage without releasing it into the world. No
|
|
5695
|
+
* entity, experience, or item drops are spawned.
|
|
5696
|
+
*
|
|
5697
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
5698
|
+
*
|
|
5699
|
+
* @param entityId
|
|
5700
|
+
* The unique ID of an entity stored by the current content
|
|
5701
|
+
* pack. Use the value returned by
|
|
5702
|
+
* {@link BlockEntityStorageComponent.store} or the `uniqueId`
|
|
5703
|
+
* property from {@link BlockEntityStorageInfo}.
|
|
5704
|
+
* @throws
|
|
5705
|
+
* Throws if the entity ID is invalid or does not identify an
|
|
5706
|
+
* entity stored by the current content pack, if the block
|
|
5707
|
+
* entity is invalid, or if the block's location is not loaded
|
|
5708
|
+
* or is outside the world boundaries.
|
|
5709
|
+
*
|
|
5710
|
+
* {@link Error}
|
|
5711
|
+
*
|
|
5712
|
+
* {@link InvalidBlockComponentError}
|
|
5713
|
+
*
|
|
5714
|
+
* {@link LocationInUnloadedChunkError}
|
|
5715
|
+
*
|
|
5716
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
5717
|
+
*/
|
|
5718
|
+
remove(entityId: string): void;
|
|
5656
5719
|
/**
|
|
5657
5720
|
* @remarks
|
|
5658
5721
|
* Returns the number of entities stored in this block's entity
|
|
@@ -5701,6 +5764,26 @@ export class BlockEntityStorageComponent extends BlockComponent {
|
|
|
5701
5764
|
* {@link LocationOutOfWorldBoundariesError}
|
|
5702
5765
|
*/
|
|
5703
5766
|
store(entity: Entity): string;
|
|
5767
|
+
/**
|
|
5768
|
+
* @remarks
|
|
5769
|
+
* Returns the total number of entities stored in this block's
|
|
5770
|
+
* entity storage across all content packs.
|
|
5771
|
+
*
|
|
5772
|
+
* @returns
|
|
5773
|
+
* The number of stored entities across all content packs.
|
|
5774
|
+
* @throws
|
|
5775
|
+
* Throws if the block entity is invalid or the block's
|
|
5776
|
+
* location is not loaded or is outside the world boundaries.
|
|
5777
|
+
*
|
|
5778
|
+
* {@link Error}
|
|
5779
|
+
*
|
|
5780
|
+
* {@link InvalidBlockComponentError}
|
|
5781
|
+
*
|
|
5782
|
+
* {@link LocationInUnloadedChunkError}
|
|
5783
|
+
*
|
|
5784
|
+
* {@link LocationOutOfWorldBoundariesError}
|
|
5785
|
+
*/
|
|
5786
|
+
totalSize(): number;
|
|
5704
5787
|
/**
|
|
5705
5788
|
* @remarks
|
|
5706
5789
|
* Moves a stored entity from this block's entity storage to
|
|
@@ -7057,7 +7140,7 @@ export class BlockTypes {
|
|
|
7057
7140
|
}
|
|
7058
7141
|
|
|
7059
7142
|
/**
|
|
7060
|
-
* @
|
|
7143
|
+
* @rc
|
|
7061
7144
|
* Represents the vibration properties of a block with a
|
|
7062
7145
|
* 'minecraft:vibration_properties' component.
|
|
7063
7146
|
*/
|
|
@@ -15683,10 +15766,13 @@ export class ItemBlockDynamicPropertiesComponent extends ItemComponent {
|
|
|
15683
15766
|
* @beta
|
|
15684
15767
|
* Stores serialized non-player mobs on an item stack. Each
|
|
15685
15768
|
* calling behavior pack can only access its manifest UUID
|
|
15686
|
-
* bucket
|
|
15687
|
-
*
|
|
15688
|
-
*
|
|
15689
|
-
*
|
|
15769
|
+
* bucket, except for totalSize, which counts entities across
|
|
15770
|
+
* all packs. All buckets share a four-entity limit. Stored
|
|
15771
|
+
* entities can be permanently removed without spawning them.
|
|
15772
|
+
* Available on item stacks even when empty. Destroying the
|
|
15773
|
+
* item discards its storage without spawning entities. Data is
|
|
15774
|
+
* compatible with entity-storage block carry-over and
|
|
15775
|
+
* placement.
|
|
15690
15776
|
*/
|
|
15691
15777
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
15692
15778
|
export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
@@ -15739,6 +15825,27 @@ export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
|
15739
15825
|
* {@link LocationOutOfWorldBoundariesError}
|
|
15740
15826
|
*/
|
|
15741
15827
|
release(entityId: string, location: DimensionLocation): Entity;
|
|
15828
|
+
/**
|
|
15829
|
+
* @remarks
|
|
15830
|
+
* Permanently removes a stored entity from the calling pack's
|
|
15831
|
+
* bucket without releasing it into the world. No entity,
|
|
15832
|
+
* experience, or item drops are spawned. The removal is saved
|
|
15833
|
+
* to the item stack.
|
|
15834
|
+
*
|
|
15835
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
15836
|
+
*
|
|
15837
|
+
* @param entityId
|
|
15838
|
+
* A stored entity ID in the calling pack's bucket.
|
|
15839
|
+
* @throws
|
|
15840
|
+
* Throws if the item stack or entity ID is invalid, or the
|
|
15841
|
+
* entity is not stored by the calling pack. Failed removals
|
|
15842
|
+
* preserve serialized storage.
|
|
15843
|
+
*
|
|
15844
|
+
* {@link Error}
|
|
15845
|
+
*
|
|
15846
|
+
* {@link InvalidItemStackError}
|
|
15847
|
+
*/
|
|
15848
|
+
remove(entityId: string): void;
|
|
15742
15849
|
/**
|
|
15743
15850
|
* @remarks
|
|
15744
15851
|
* Returns the number of serialized entities in the calling
|
|
@@ -15780,6 +15887,21 @@ export class ItemBlockEntityStorageComponent extends ItemComponent {
|
|
|
15780
15887
|
* {@link InvalidItemStackError}
|
|
15781
15888
|
*/
|
|
15782
15889
|
store(entity: Entity): string;
|
|
15890
|
+
/**
|
|
15891
|
+
* @remarks
|
|
15892
|
+
* Returns the total number of entities stored on this item
|
|
15893
|
+
* stack across all content packs.
|
|
15894
|
+
*
|
|
15895
|
+
* @returns
|
|
15896
|
+
* The number of stored entities across all content packs.
|
|
15897
|
+
* @throws
|
|
15898
|
+
* Throws if the item stack is invalid.
|
|
15899
|
+
*
|
|
15900
|
+
* {@link Error}
|
|
15901
|
+
*
|
|
15902
|
+
* {@link InvalidItemStackError}
|
|
15903
|
+
*/
|
|
15904
|
+
totalSize(): number;
|
|
15783
15905
|
/**
|
|
15784
15906
|
* @remarks
|
|
15785
15907
|
* Moves serialized ownership from the calling pack's item
|
|
@@ -16267,6 +16389,34 @@ export class ItemComponentRegistry {
|
|
|
16267
16389
|
registerCustomComponent(name: string, itemCustomComponent: ItemCustomComponent): void;
|
|
16268
16390
|
}
|
|
16269
16391
|
|
|
16392
|
+
/**
|
|
16393
|
+
* @beta
|
|
16394
|
+
* Contains information about the release of an item being used
|
|
16395
|
+
* through a custom item component.
|
|
16396
|
+
*/
|
|
16397
|
+
export class ItemComponentReleaseUseEvent {
|
|
16398
|
+
private constructor();
|
|
16399
|
+
/**
|
|
16400
|
+
* @remarks
|
|
16401
|
+
* The item stack that was released.
|
|
16402
|
+
*
|
|
16403
|
+
*/
|
|
16404
|
+
readonly itemStack: ItemStack;
|
|
16405
|
+
/**
|
|
16406
|
+
* @remarks
|
|
16407
|
+
* The remaining use duration, in ticks, when the item was
|
|
16408
|
+
* released.
|
|
16409
|
+
*
|
|
16410
|
+
*/
|
|
16411
|
+
readonly remainingUseDuration: number;
|
|
16412
|
+
/**
|
|
16413
|
+
* @remarks
|
|
16414
|
+
* The player who released the item.
|
|
16415
|
+
*
|
|
16416
|
+
*/
|
|
16417
|
+
readonly source: Player;
|
|
16418
|
+
}
|
|
16419
|
+
|
|
16270
16420
|
/**
|
|
16271
16421
|
* Contains information regarding the use of an item.
|
|
16272
16422
|
*/
|
|
@@ -20079,6 +20229,14 @@ export class PlayerDimensionChangeAfterEvent {
|
|
|
20079
20229
|
*
|
|
20080
20230
|
*/
|
|
20081
20231
|
readonly player: Player;
|
|
20232
|
+
/**
|
|
20233
|
+
* @beta
|
|
20234
|
+
* @remarks
|
|
20235
|
+
* What caused the player to change dimensions, see
|
|
20236
|
+
* {@link PlayerDimensionChangeSource}.
|
|
20237
|
+
*
|
|
20238
|
+
*/
|
|
20239
|
+
readonly source: PlayerDimensionChangeSource;
|
|
20082
20240
|
/**
|
|
20083
20241
|
* @remarks
|
|
20084
20242
|
* The dimension that the player is changing to.
|
|
@@ -21833,6 +21991,63 @@ export class PoiManager {
|
|
|
21833
21991
|
readonly blocks: PoiBlockManager;
|
|
21834
21992
|
}
|
|
21835
21993
|
|
|
21994
|
+
/**
|
|
21995
|
+
* @beta
|
|
21996
|
+
* Contains information about a successfully activated Nether
|
|
21997
|
+
* portal, including its dimension, ignition location, and
|
|
21998
|
+
* initiating player (when known).
|
|
21999
|
+
*/
|
|
22000
|
+
export class PortalActivateAfterEvent {
|
|
22001
|
+
private constructor();
|
|
22002
|
+
/**
|
|
22003
|
+
* @remarks
|
|
22004
|
+
* The dimension in which the portal was activated, not its
|
|
22005
|
+
* destination dimension.
|
|
22006
|
+
*
|
|
22007
|
+
*/
|
|
22008
|
+
readonly dimension: Dimension;
|
|
22009
|
+
/**
|
|
22010
|
+
* @remarks
|
|
22011
|
+
* The coordinates of the ignition position used to activate
|
|
22012
|
+
* the portal. This is not necessarily the center or corner of
|
|
22013
|
+
* the portal.
|
|
22014
|
+
*
|
|
22015
|
+
*/
|
|
22016
|
+
readonly location: Vector3;
|
|
22017
|
+
/**
|
|
22018
|
+
* @remarks
|
|
22019
|
+
* The player who directly activated the portal using an item,
|
|
22020
|
+
* if known. Undefined for fire-based activation without a
|
|
22021
|
+
* known initiating player, including dispenser-fired fire
|
|
22022
|
+
* charges. Nearby players are not used for attribution.
|
|
22023
|
+
*
|
|
22024
|
+
*/
|
|
22025
|
+
readonly player?: Player;
|
|
22026
|
+
}
|
|
22027
|
+
|
|
22028
|
+
/**
|
|
22029
|
+
* @beta
|
|
22030
|
+
*/
|
|
22031
|
+
export class PortalActivateAfterEventSignal {
|
|
22032
|
+
private constructor();
|
|
22033
|
+
/**
|
|
22034
|
+
* @remarks
|
|
22035
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
22036
|
+
*
|
|
22037
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
22038
|
+
*
|
|
22039
|
+
*/
|
|
22040
|
+
subscribe(callback: (arg0: PortalActivateAfterEvent) => void): (arg0: PortalActivateAfterEvent) => void;
|
|
22041
|
+
/**
|
|
22042
|
+
* @remarks
|
|
22043
|
+
* @privilege no-restricted-execution - This function can't be called in restricted-execution mode.
|
|
22044
|
+
*
|
|
22045
|
+
* @privilege early-execution-allowed - This function can be called in early-execution mode.
|
|
22046
|
+
*
|
|
22047
|
+
*/
|
|
22048
|
+
unsubscribe(callback: (arg0: PortalActivateAfterEvent) => void): void;
|
|
22049
|
+
}
|
|
22050
|
+
|
|
21836
22051
|
/**
|
|
21837
22052
|
* Represents how the potion effect is delivered.
|
|
21838
22053
|
*/
|
|
@@ -26356,6 +26571,19 @@ export class WorldAfterEvents {
|
|
|
26356
26571
|
*
|
|
26357
26572
|
*/
|
|
26358
26573
|
readonly playerUseNameTag: PlayerUseNameTagAfterEventSignal;
|
|
26574
|
+
/**
|
|
26575
|
+
* @beta
|
|
26576
|
+
* @remarks
|
|
26577
|
+
* Fires after a portal is successfully activated, with an
|
|
26578
|
+
* initiating player when known. Currently fires for Nether
|
|
26579
|
+
* portals only, including activation by fire without a player.
|
|
26580
|
+
* Does not fire merely for frame construction or for failed
|
|
26581
|
+
* activation attempts.
|
|
26582
|
+
*
|
|
26583
|
+
* @privilege early-execution-readable - This property can be read in early-execution mode.
|
|
26584
|
+
*
|
|
26585
|
+
*/
|
|
26586
|
+
readonly portalActivate: PortalActivateAfterEventSignal;
|
|
26359
26587
|
/**
|
|
26360
26588
|
* @remarks
|
|
26361
26589
|
* A pressure plate has popped back up (i.e., there are no
|
|
@@ -27133,10 +27361,57 @@ export interface AnimationOptions {
|
|
|
27133
27361
|
totalTimeSeconds: number;
|
|
27134
27362
|
}
|
|
27135
27363
|
|
|
27364
|
+
/**
|
|
27365
|
+
* Options to include or exclude biomes based on biome names,
|
|
27366
|
+
* tags, or namespaces. If no include options are added it will
|
|
27367
|
+
* select all biomes that are not rejected by the exclude
|
|
27368
|
+
* options. If at least one include option is added the biome
|
|
27369
|
+
* must match one of the include options to not be rejected.
|
|
27370
|
+
*/
|
|
27136
27371
|
export interface BiomeFilter {
|
|
27372
|
+
/**
|
|
27373
|
+
* @remarks
|
|
27374
|
+
* Array of biome names that the filter should reject if any
|
|
27375
|
+
* matches.
|
|
27376
|
+
*
|
|
27377
|
+
*/
|
|
27137
27378
|
excludeBiomes?: string[];
|
|
27379
|
+
/**
|
|
27380
|
+
* @beta
|
|
27381
|
+
* @remarks
|
|
27382
|
+
* Array of namespaces that the filter should reject if the
|
|
27383
|
+
* biome belongs to at least one.
|
|
27384
|
+
*
|
|
27385
|
+
*/
|
|
27386
|
+
excludeNamespaces?: string[];
|
|
27387
|
+
/**
|
|
27388
|
+
* @remarks
|
|
27389
|
+
* Array of biome tags that the filter should reject if any
|
|
27390
|
+
* matches.
|
|
27391
|
+
*
|
|
27392
|
+
*/
|
|
27138
27393
|
excludeTags?: string[];
|
|
27394
|
+
/**
|
|
27395
|
+
* @remarks
|
|
27396
|
+
* Array of biome names that the filter should select if at
|
|
27397
|
+
* least one matches.
|
|
27398
|
+
*
|
|
27399
|
+
*/
|
|
27139
27400
|
includeBiomes?: string[];
|
|
27401
|
+
/**
|
|
27402
|
+
* @beta
|
|
27403
|
+
* @remarks
|
|
27404
|
+
* Array of namespaces that the filter should select if the
|
|
27405
|
+
* biome belongs to at least one.
|
|
27406
|
+
*
|
|
27407
|
+
*/
|
|
27408
|
+
includeNamespaces?: string[];
|
|
27409
|
+
/**
|
|
27410
|
+
* @remarks
|
|
27411
|
+
* Array of biome tags that the filter should select if at
|
|
27412
|
+
* least one matches.
|
|
27413
|
+
*
|
|
27414
|
+
*/
|
|
27140
27415
|
includeTags?: string[];
|
|
27141
27416
|
}
|
|
27142
27417
|
|
|
@@ -27247,11 +27522,11 @@ export interface BlockCustomComponent {
|
|
|
27247
27522
|
*/
|
|
27248
27523
|
onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;
|
|
27249
27524
|
/**
|
|
27250
|
-
* @
|
|
27525
|
+
* @rc
|
|
27251
27526
|
*/
|
|
27252
27527
|
onNamedTick?: (arg0: BlockComponentNamedTickEvent, arg1: CustomComponentParameters) => void;
|
|
27253
27528
|
/**
|
|
27254
|
-
* @
|
|
27529
|
+
* @rc
|
|
27255
27530
|
*/
|
|
27256
27531
|
onNeighborChanged?: (arg0: BlockComponentNeighborChangedAfterEvent, arg1: CustomComponentParameters) => void;
|
|
27257
27532
|
/**
|
|
@@ -27350,13 +27625,22 @@ export interface BlockFillOptions {
|
|
|
27350
27625
|
}
|
|
27351
27626
|
|
|
27352
27627
|
/**
|
|
27353
|
-
* Options to include or exclude blocks based on type, tag
|
|
27354
|
-
* permutation. If no include options are added
|
|
27355
|
-
* all blocks that are not rejected by the
|
|
27356
|
-
* at least one include option is added the
|
|
27357
|
-
* one of the include options to not be
|
|
27628
|
+
* Options to include or exclude blocks based on type, tag,
|
|
27629
|
+
* permutation, or namespaces. If no include options are added
|
|
27630
|
+
* it will select all blocks that are not rejected by the
|
|
27631
|
+
* exclude options. If at least one include option is added the
|
|
27632
|
+
* block must match one of the include options to not be
|
|
27633
|
+
* rejected.
|
|
27358
27634
|
*/
|
|
27359
27635
|
export interface BlockFilter {
|
|
27636
|
+
/**
|
|
27637
|
+
* @beta
|
|
27638
|
+
* @remarks
|
|
27639
|
+
* Array of namespaces that the filter should reject if the
|
|
27640
|
+
* block belongs to at least one.
|
|
27641
|
+
*
|
|
27642
|
+
*/
|
|
27643
|
+
excludeNamespaces?: string[];
|
|
27360
27644
|
/**
|
|
27361
27645
|
* @remarks
|
|
27362
27646
|
* Array of block permutations that the filter should reject if
|
|
@@ -27378,6 +27662,14 @@ export interface BlockFilter {
|
|
|
27378
27662
|
*
|
|
27379
27663
|
*/
|
|
27380
27664
|
excludeTypes?: string[];
|
|
27665
|
+
/**
|
|
27666
|
+
* @beta
|
|
27667
|
+
* @remarks
|
|
27668
|
+
* Array of namespaces that the filter should select if the
|
|
27669
|
+
* block belongs to at least one.
|
|
27670
|
+
*
|
|
27671
|
+
*/
|
|
27672
|
+
includeNamespaces?: string[];
|
|
27381
27673
|
/**
|
|
27382
27674
|
* @remarks
|
|
27383
27675
|
* Array of block permutations that the filter should select if
|
|
@@ -28171,6 +28463,14 @@ export interface EntityFilter {
|
|
|
28171
28463
|
*
|
|
28172
28464
|
*/
|
|
28173
28465
|
excludeNames?: string[];
|
|
28466
|
+
/**
|
|
28467
|
+
* @beta
|
|
28468
|
+
* @remarks
|
|
28469
|
+
* Excludes entities that have a namespace that matches one of
|
|
28470
|
+
* the specified values.
|
|
28471
|
+
*
|
|
28472
|
+
*/
|
|
28473
|
+
excludeNamespaces?: string[];
|
|
28174
28474
|
/**
|
|
28175
28475
|
* @remarks
|
|
28176
28476
|
* Excludes entities with a tag that matches one of the
|
|
@@ -28246,6 +28546,13 @@ export interface EntityFilter {
|
|
|
28246
28546
|
*
|
|
28247
28547
|
*/
|
|
28248
28548
|
name?: string;
|
|
28549
|
+
/**
|
|
28550
|
+
* @beta
|
|
28551
|
+
* @remarks
|
|
28552
|
+
* Includes entities with the specified namespace.
|
|
28553
|
+
*
|
|
28554
|
+
*/
|
|
28555
|
+
namespaces?: string[];
|
|
28249
28556
|
propertyOptions?: EntityQueryPropertyOptions[];
|
|
28250
28557
|
/**
|
|
28251
28558
|
* @remarks
|
|
@@ -29037,6 +29344,15 @@ export interface ItemCustomComponent {
|
|
|
29037
29344
|
*
|
|
29038
29345
|
*/
|
|
29039
29346
|
onMineBlock?: (arg0: ItemComponentMineBlockEvent, arg1: CustomComponentParameters) => void;
|
|
29347
|
+
/**
|
|
29348
|
+
* @beta
|
|
29349
|
+
* @remarks
|
|
29350
|
+
* This function will be called when a player releases use of
|
|
29351
|
+
* an item containing this component. It will only be called if
|
|
29352
|
+
* the item has the minecraft:use_duration component.
|
|
29353
|
+
*
|
|
29354
|
+
*/
|
|
29355
|
+
onReleaseUse?: (arg0: ItemComponentReleaseUseEvent, arg1: CustomComponentParameters) => void;
|
|
29040
29356
|
/**
|
|
29041
29357
|
* @remarks
|
|
29042
29358
|
* This function will be called when an item containing this
|
|
@@ -29179,7 +29495,7 @@ export interface MusicOptions {
|
|
|
29179
29495
|
}
|
|
29180
29496
|
|
|
29181
29497
|
/**
|
|
29182
|
-
* @
|
|
29498
|
+
* @rc
|
|
29183
29499
|
* Contains information regarding a block change in one
|
|
29184
29500
|
* neighboring direction.
|
|
29185
29501
|
*/
|
|
@@ -29809,7 +30125,7 @@ export interface RotationKeyFrame {
|
|
|
29809
30125
|
}
|
|
29810
30126
|
|
|
29811
30127
|
/**
|
|
29812
|
-
* @
|
|
30128
|
+
* @rc
|
|
29813
30129
|
*/
|
|
29814
30130
|
export interface ScheduledNamedTick {
|
|
29815
30131
|
eventName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.13.0-beta.1.26.70-preview.
|
|
3
|
+
"version": "2.13.0-beta.1.26.70-preview.23",
|
|
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 || 1.26.70-preview.
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.70-preview.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|