@minecraft/server 2.4.0-rc.1.26.0-preview.24 → 2.4.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 -117
- 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.
|
|
@@ -231,7 +230,6 @@ export enum ContainerRulesErrorReason {
|
|
|
231
230
|
}
|
|
232
231
|
|
|
233
232
|
/**
|
|
234
|
-
* @rc
|
|
235
233
|
* Control Scheme types which define how the player moves in
|
|
236
234
|
* response to player inputs.
|
|
237
235
|
* See the following page for more details on control schemes:
|
|
@@ -2028,9 +2026,6 @@ export enum ItemComponentTypes {
|
|
|
2028
2026
|
*/
|
|
2029
2027
|
Food = 'minecraft:food',
|
|
2030
2028
|
Inventory = 'minecraft:inventory',
|
|
2031
|
-
/**
|
|
2032
|
-
* @rc
|
|
2033
|
-
*/
|
|
2034
2029
|
Potion = 'minecraft:potion',
|
|
2035
2030
|
}
|
|
2036
2031
|
|
|
@@ -2060,7 +2055,6 @@ export enum ItemLockMode {
|
|
|
2060
2055
|
}
|
|
2061
2056
|
|
|
2062
2057
|
/**
|
|
2063
|
-
* @rc
|
|
2064
2058
|
* Specifies how to handle waterloggable blocks overlapping
|
|
2065
2059
|
* with existing liquid.
|
|
2066
2060
|
*/
|
|
@@ -3516,7 +3510,6 @@ export class BlockComponent extends Component {
|
|
|
3516
3510
|
}
|
|
3517
3511
|
|
|
3518
3512
|
/**
|
|
3519
|
-
* @rc
|
|
3520
3513
|
* Contains information regarding a specific block being
|
|
3521
3514
|
* broken.
|
|
3522
3515
|
*/
|
|
@@ -3674,23 +3667,6 @@ export class BlockComponentRandomTickEvent extends BlockEvent {
|
|
|
3674
3667
|
private constructor();
|
|
3675
3668
|
}
|
|
3676
3669
|
|
|
3677
|
-
/**
|
|
3678
|
-
* Contains information regarding a specific block redstone
|
|
3679
|
-
* update event.
|
|
3680
|
-
*/
|
|
3681
|
-
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3682
|
-
export class BlockComponentRedstoneUpdateEvent extends BlockEvent {
|
|
3683
|
-
private constructor();
|
|
3684
|
-
/**
|
|
3685
|
-
* @remarks
|
|
3686
|
-
* The redstone signal strength passing through this block. It
|
|
3687
|
-
* is guaranteed to be >= the `min_power` of the block's
|
|
3688
|
-
* 'minecraft:redstone_consumer' component.
|
|
3689
|
-
*
|
|
3690
|
-
*/
|
|
3691
|
-
readonly powerLevel: number;
|
|
3692
|
-
}
|
|
3693
|
-
|
|
3694
3670
|
export class BlockComponentRegistry {
|
|
3695
3671
|
private constructor();
|
|
3696
3672
|
/**
|
|
@@ -4010,9 +3986,6 @@ export class BlockMapColorComponent extends BlockComponent {
|
|
|
4010
3986
|
static readonly componentId = 'minecraft:map_color';
|
|
4011
3987
|
}
|
|
4012
3988
|
|
|
4013
|
-
/**
|
|
4014
|
-
* Represents a block that can move (such as a piston).
|
|
4015
|
-
*/
|
|
4016
3989
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4017
3990
|
export class BlockMovableComponent extends BlockComponent {
|
|
4018
3991
|
private constructor();
|
|
@@ -4314,11 +4287,6 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
4314
4287
|
getAttachedBlocksLocations(): Vector3[];
|
|
4315
4288
|
}
|
|
4316
4289
|
|
|
4317
|
-
/**
|
|
4318
|
-
* @rc
|
|
4319
|
-
* Represents a how a block interacts with precipitation (such
|
|
4320
|
-
* as rain or snow).
|
|
4321
|
-
*/
|
|
4322
4290
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4323
4291
|
export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
4324
4292
|
private constructor();
|
|
@@ -4415,7 +4383,6 @@ export class BlockRecordPlayerComponent extends BlockComponent {
|
|
|
4415
4383
|
}
|
|
4416
4384
|
|
|
4417
4385
|
/**
|
|
4418
|
-
* @rc
|
|
4419
4386
|
* Represents a block that can output a redstone signal.
|
|
4420
4387
|
*/
|
|
4421
4388
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6041,7 +6008,6 @@ export class CustomComponentParameters {
|
|
|
6041
6008
|
}
|
|
6042
6009
|
|
|
6043
6010
|
/**
|
|
6044
|
-
* @rc
|
|
6045
6011
|
* Loot item condition that checks whether the loot source was
|
|
6046
6012
|
* damaged by a specific type of entity.
|
|
6047
6013
|
*/
|
|
@@ -7126,7 +7092,6 @@ export class EffectTypes {
|
|
|
7126
7092
|
}
|
|
7127
7093
|
|
|
7128
7094
|
/**
|
|
7129
|
-
* @rc
|
|
7130
7095
|
* Represents a completely empty entry in a loot pool. If this
|
|
7131
7096
|
* entry is chosen, no items will drop.
|
|
7132
7097
|
*/
|
|
@@ -7135,9 +7100,6 @@ export class EmptyLootItem extends LootPoolEntry {
|
|
|
7135
7100
|
private constructor();
|
|
7136
7101
|
}
|
|
7137
7102
|
|
|
7138
|
-
/**
|
|
7139
|
-
* @rc
|
|
7140
|
-
*/
|
|
7141
7103
|
export class EnchantInfo {
|
|
7142
7104
|
private constructor();
|
|
7143
7105
|
readonly enchantment: string;
|
|
@@ -7193,7 +7155,6 @@ export class EnchantmentTypes {
|
|
|
7193
7155
|
}
|
|
7194
7156
|
|
|
7195
7157
|
/**
|
|
7196
|
-
* @rc
|
|
7197
7158
|
* Loot item function that applies a random enchant to the
|
|
7198
7159
|
* dropped item using the same algorithm used while enchanting
|
|
7199
7160
|
* equipment vanilla mobs spawn with.
|
|
@@ -7211,7 +7172,6 @@ export class EnchantRandomEquipmentFunction extends LootItemFunction {
|
|
|
7211
7172
|
}
|
|
7212
7173
|
|
|
7213
7174
|
/**
|
|
7214
|
-
* @rc
|
|
7215
7175
|
* Loot item function that randomly enchants the dropped item.
|
|
7216
7176
|
*/
|
|
7217
7177
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7227,7 +7187,6 @@ export class EnchantRandomlyFunction extends LootItemFunction {
|
|
|
7227
7187
|
}
|
|
7228
7188
|
|
|
7229
7189
|
/**
|
|
7230
|
-
* @rc
|
|
7231
7190
|
* Loot item function that applies a random enchant to the
|
|
7232
7191
|
* dropped item.
|
|
7233
7192
|
*/
|
|
@@ -7712,7 +7671,6 @@ export class Entity {
|
|
|
7712
7671
|
*/
|
|
7713
7672
|
extinguishFire(useEffects?: boolean): boolean;
|
|
7714
7673
|
/**
|
|
7715
|
-
* @rc
|
|
7716
7674
|
* @remarks
|
|
7717
7675
|
* Gets the entity's collision bounds.
|
|
7718
7676
|
*
|
|
@@ -7724,7 +7682,6 @@ export class Entity {
|
|
|
7724
7682
|
*/
|
|
7725
7683
|
getAABB(): AABB;
|
|
7726
7684
|
/**
|
|
7727
|
-
* @rc
|
|
7728
7685
|
* @remarks
|
|
7729
7686
|
* Gets the solid blocks that this entity is directly standing
|
|
7730
7687
|
* on. Ignores pressure plates.
|
|
@@ -7756,7 +7713,6 @@ export class Entity {
|
|
|
7756
7713
|
*/
|
|
7757
7714
|
getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
7758
7715
|
/**
|
|
7759
|
-
* @rc
|
|
7760
7716
|
* @remarks
|
|
7761
7717
|
* Gets a single solid block closest to the center of the
|
|
7762
7718
|
* entity that this entity is directly standing on. Ignores
|
|
@@ -9024,7 +8980,6 @@ export class EntityFrictionModifierComponent extends EntityComponent {
|
|
|
9024
8980
|
}
|
|
9025
8981
|
|
|
9026
8982
|
/**
|
|
9027
|
-
* @rc
|
|
9028
8983
|
* Loot item condition that checks the value of the mark
|
|
9029
8984
|
* variant of a mob as it drops its loot.
|
|
9030
8985
|
*/
|
|
@@ -9041,7 +8996,6 @@ export class EntityHasMarkVariantCondition extends LootItemCondition {
|
|
|
9041
8996
|
}
|
|
9042
8997
|
|
|
9043
8998
|
/**
|
|
9044
|
-
* @rc
|
|
9045
8999
|
* Loot item condition that checks the variant value of a mob
|
|
9046
9000
|
* as it drops its loot.
|
|
9047
9001
|
*/
|
|
@@ -9595,7 +9549,6 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
9595
9549
|
}
|
|
9596
9550
|
|
|
9597
9551
|
/**
|
|
9598
|
-
* @rc
|
|
9599
9552
|
* Loot item condition that checks the entity type of the
|
|
9600
9553
|
* entity dropping its loot.
|
|
9601
9554
|
*/
|
|
@@ -11030,7 +10983,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
11030
10983
|
}
|
|
11031
10984
|
|
|
11032
10985
|
/**
|
|
11033
|
-
* @rc
|
|
11034
10986
|
* Loot item function that modifies a dropped treasure map to
|
|
11035
10987
|
* mark a location.
|
|
11036
10988
|
*/
|
|
@@ -11157,7 +11109,6 @@ export class ExplosionBeforeEventSignal {
|
|
|
11157
11109
|
}
|
|
11158
11110
|
|
|
11159
11111
|
/**
|
|
11160
|
-
* @rc
|
|
11161
11112
|
* Loot item function that determines whether or not loot drops
|
|
11162
11113
|
* should be destroyed by explosions.
|
|
11163
11114
|
*/
|
|
@@ -11234,7 +11185,6 @@ export class FeedItemEffect {
|
|
|
11234
11185
|
}
|
|
11235
11186
|
|
|
11236
11187
|
/**
|
|
11237
|
-
* @rc
|
|
11238
11188
|
* Loot item function that populates a dropped container item
|
|
11239
11189
|
* using another loot table.
|
|
11240
11190
|
*/
|
|
@@ -11595,7 +11545,6 @@ export class InputInfo {
|
|
|
11595
11545
|
}
|
|
11596
11546
|
|
|
11597
11547
|
/**
|
|
11598
|
-
* @rc
|
|
11599
11548
|
* Loot item condition that checks whether or not the entity
|
|
11600
11549
|
* dropping loot is a baby.
|
|
11601
11550
|
*/
|
|
@@ -12519,7 +12468,6 @@ export class ItemInventoryComponent extends ItemComponent {
|
|
|
12519
12468
|
}
|
|
12520
12469
|
|
|
12521
12470
|
/**
|
|
12522
|
-
* @rc
|
|
12523
12471
|
* When present on an item, this item is a potion item.
|
|
12524
12472
|
*/
|
|
12525
12473
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -13534,7 +13482,6 @@ export class ItemUseOnEvent {
|
|
|
13534
13482
|
}
|
|
13535
13483
|
|
|
13536
13484
|
/**
|
|
13537
|
-
* @rc
|
|
13538
13485
|
* Loot item condition that checks whether or not the drop
|
|
13539
13486
|
* source was killed by a specific type of entity.
|
|
13540
13487
|
*/
|
|
@@ -13551,7 +13498,6 @@ export class KilledByEntityCondition extends LootItemCondition {
|
|
|
13551
13498
|
}
|
|
13552
13499
|
|
|
13553
13500
|
/**
|
|
13554
|
-
* @rc
|
|
13555
13501
|
* Loot item condition that checks whether or not the source of
|
|
13556
13502
|
* the loot drop was killed by the player.
|
|
13557
13503
|
*/
|
|
@@ -13561,7 +13507,6 @@ export class KilledByPlayerCondition extends LootItemCondition {
|
|
|
13561
13507
|
}
|
|
13562
13508
|
|
|
13563
13509
|
/**
|
|
13564
|
-
* @rc
|
|
13565
13510
|
* Loot item condition that checks whether or not the source of
|
|
13566
13511
|
* the loot drop was killed by the player or any of the
|
|
13567
13512
|
* player's pets.
|
|
@@ -13723,7 +13668,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
13723
13668
|
}
|
|
13724
13669
|
|
|
13725
13670
|
/**
|
|
13726
|
-
* @rc
|
|
13727
13671
|
* Loot item function that drops extra items if the provided
|
|
13728
13672
|
* tool has the looting enchant.
|
|
13729
13673
|
*/
|
|
@@ -13741,7 +13685,6 @@ export class LootingEnchantFunction extends LootItemFunction {
|
|
|
13741
13685
|
}
|
|
13742
13686
|
|
|
13743
13687
|
/**
|
|
13744
|
-
* @rc
|
|
13745
13688
|
* Represents a loot pool entry containing an item to drop.
|
|
13746
13689
|
*/
|
|
13747
13690
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -13757,7 +13700,6 @@ export class LootItem extends LootPoolEntry {
|
|
|
13757
13700
|
}
|
|
13758
13701
|
|
|
13759
13702
|
/**
|
|
13760
|
-
* @rc
|
|
13761
13703
|
* An abstract base class from which all loot item conditions
|
|
13762
13704
|
* are derived. A loot item condition is a set of rules or
|
|
13763
13705
|
* requirements which must be met for a loot drop to happen.
|
|
@@ -13767,7 +13709,6 @@ export class LootItemCondition {
|
|
|
13767
13709
|
}
|
|
13768
13710
|
|
|
13769
13711
|
/**
|
|
13770
|
-
* @rc
|
|
13771
13712
|
* An abstract base class from which all loot item functions
|
|
13772
13713
|
* are derived. Loot item functions can modify loot drops in a
|
|
13773
13714
|
* variety of ways as they happen, optionally dependent on a
|
|
@@ -13779,7 +13720,6 @@ export class LootItemFunction {
|
|
|
13779
13720
|
}
|
|
13780
13721
|
|
|
13781
13722
|
/**
|
|
13782
|
-
* @rc
|
|
13783
13723
|
* A collection of entries which individually determine loot
|
|
13784
13724
|
* drops. Can contain values determining drop outcomes,
|
|
13785
13725
|
* including rolls, bonus rolls and tiers.
|
|
@@ -13819,7 +13759,6 @@ export class LootPool {
|
|
|
13819
13759
|
}
|
|
13820
13760
|
|
|
13821
13761
|
/**
|
|
13822
|
-
* @rc
|
|
13823
13762
|
* Represents one entry within Loot Table, which describes one
|
|
13824
13763
|
* possible drop when a loot drop occurs. Can contain an item,
|
|
13825
13764
|
* another loot table, a path to another loot table, or an
|
|
@@ -13848,7 +13787,6 @@ export class LootPoolEntry {
|
|
|
13848
13787
|
}
|
|
13849
13788
|
|
|
13850
13789
|
/**
|
|
13851
|
-
* @rc
|
|
13852
13790
|
* Represents the values which determine loot drops in a tiered
|
|
13853
13791
|
* loot pool. Potential drops from tiered loot pools are
|
|
13854
13792
|
* ordered, and chosen via logic controlled by the values in
|
|
@@ -13884,7 +13822,6 @@ export class LootPoolTiers {
|
|
|
13884
13822
|
}
|
|
13885
13823
|
|
|
13886
13824
|
/**
|
|
13887
|
-
* @rc
|
|
13888
13825
|
* Represents a single Loot Table, which determines what items
|
|
13889
13826
|
* are generated when killing a mob, breaking a block, filling
|
|
13890
13827
|
* a container, and more.
|
|
@@ -13908,7 +13845,6 @@ export class LootTable {
|
|
|
13908
13845
|
}
|
|
13909
13846
|
|
|
13910
13847
|
/**
|
|
13911
|
-
* @rc
|
|
13912
13848
|
* Represents a loot pool entry containing another separate,
|
|
13913
13849
|
* nested loot table.
|
|
13914
13850
|
*/
|
|
@@ -14008,7 +13944,6 @@ export class LootTableManager {
|
|
|
14008
13944
|
*/
|
|
14009
13945
|
generateLootFromEntityType(entityType: EntityType, tool?: ItemStack): ItemStack[] | undefined;
|
|
14010
13946
|
/**
|
|
14011
|
-
* @rc
|
|
14012
13947
|
* @remarks
|
|
14013
13948
|
* Generates loot from a given LootTable.
|
|
14014
13949
|
*
|
|
@@ -14021,7 +13956,6 @@ export class LootTableManager {
|
|
|
14021
13956
|
*/
|
|
14022
13957
|
generateLootFromTable(lootTable: LootTable, tool?: ItemStack): ItemStack[] | undefined;
|
|
14023
13958
|
/**
|
|
14024
|
-
* @rc
|
|
14025
13959
|
* @remarks
|
|
14026
13960
|
* Retrieves a single loot table from the level's current
|
|
14027
13961
|
* registry.
|
|
@@ -14038,7 +13972,6 @@ export class LootTableManager {
|
|
|
14038
13972
|
}
|
|
14039
13973
|
|
|
14040
13974
|
/**
|
|
14041
|
-
* @rc
|
|
14042
13975
|
* Represents a loot pool entry containing a reference to
|
|
14043
13976
|
* another loot table, described by its path.
|
|
14044
13977
|
*/
|
|
@@ -14055,7 +13988,6 @@ export class LootTableReference extends LootPoolEntry {
|
|
|
14055
13988
|
}
|
|
14056
13989
|
|
|
14057
13990
|
/**
|
|
14058
|
-
* @rc
|
|
14059
13991
|
* Loot item condition that checks whether an appropriate tool
|
|
14060
13992
|
* was used to trigger the loot event. Can describe item type,
|
|
14061
13993
|
* count, durability, enchantments, or arrays of item tags to
|
|
@@ -14182,7 +14114,6 @@ export class MolangVariableMap {
|
|
|
14182
14114
|
}
|
|
14183
14115
|
|
|
14184
14116
|
/**
|
|
14185
|
-
* @rc
|
|
14186
14117
|
* Loot item condition that checks whether the looting entity
|
|
14187
14118
|
* is currently a passenger of a specific type of entity.
|
|
14188
14119
|
*/
|
|
@@ -14496,7 +14427,6 @@ export class Player extends Entity {
|
|
|
14496
14427
|
*/
|
|
14497
14428
|
clearPropertyOverridesForEntity(targetEntity: Entity | string): void;
|
|
14498
14429
|
/**
|
|
14499
|
-
* @rc
|
|
14500
14430
|
* @remarks
|
|
14501
14431
|
* Returns the player's current control scheme.
|
|
14502
14432
|
*
|
|
@@ -14727,7 +14657,6 @@ export class Player extends Entity {
|
|
|
14727
14657
|
*/
|
|
14728
14658
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
14729
14659
|
/**
|
|
14730
|
-
* @rc
|
|
14731
14660
|
* @remarks
|
|
14732
14661
|
* Set a player's control scheme. The player's active camera
|
|
14733
14662
|
* preset must be set by scripts like with camera.setCamera()
|
|
@@ -16148,7 +16077,6 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
16148
16077
|
}
|
|
16149
16078
|
|
|
16150
16079
|
/**
|
|
16151
|
-
* @rc
|
|
16152
16080
|
* Represents how the potion effect is delivered.
|
|
16153
16081
|
*/
|
|
16154
16082
|
export class PotionDeliveryType {
|
|
@@ -16157,7 +16085,6 @@ export class PotionDeliveryType {
|
|
|
16157
16085
|
}
|
|
16158
16086
|
|
|
16159
16087
|
/**
|
|
16160
|
-
* @rc
|
|
16161
16088
|
* Represents a type of potion effect - like healing or
|
|
16162
16089
|
* leaping.
|
|
16163
16090
|
*/
|
|
@@ -16177,7 +16104,6 @@ export class PotionEffectType {
|
|
|
16177
16104
|
}
|
|
16178
16105
|
|
|
16179
16106
|
/**
|
|
16180
|
-
* @rc
|
|
16181
16107
|
* Used for accessing all potion effect types, delivery types,
|
|
16182
16108
|
* and creating potions.
|
|
16183
16109
|
*/
|
|
@@ -16505,7 +16431,6 @@ export class ProjectileHitEntityAfterEventSignal {
|
|
|
16505
16431
|
}
|
|
16506
16432
|
|
|
16507
16433
|
/**
|
|
16508
|
-
* @rc
|
|
16509
16434
|
* Loot item function that randomly modifies the data value of
|
|
16510
16435
|
* the item dropped.
|
|
16511
16436
|
*/
|
|
@@ -16522,7 +16447,6 @@ export class RandomAuxValueFunction extends LootItemFunction {
|
|
|
16522
16447
|
}
|
|
16523
16448
|
|
|
16524
16449
|
/**
|
|
16525
|
-
* @rc
|
|
16526
16450
|
* Loot item function that randomly modifies the block state of
|
|
16527
16451
|
* the item dropped.
|
|
16528
16452
|
*/
|
|
@@ -16541,7 +16465,6 @@ export class RandomBlockStateFunction extends LootItemFunction {
|
|
|
16541
16465
|
}
|
|
16542
16466
|
|
|
16543
16467
|
/**
|
|
16544
|
-
* @rc
|
|
16545
16468
|
* Loot item condition that applies a given value to the
|
|
16546
16469
|
* chances that loot will drop.
|
|
16547
16470
|
*/
|
|
@@ -16557,7 +16480,6 @@ export class RandomChanceCondition extends LootItemCondition {
|
|
|
16557
16480
|
}
|
|
16558
16481
|
|
|
16559
16482
|
/**
|
|
16560
|
-
* @rc
|
|
16561
16483
|
* Loot item condition that applies a given value to the
|
|
16562
16484
|
* chances that loot will drop, modified by the level of
|
|
16563
16485
|
* looting enchantment on the tool used.
|
|
@@ -16581,7 +16503,6 @@ export class RandomChanceWithLootingCondition extends LootItemCondition {
|
|
|
16581
16503
|
}
|
|
16582
16504
|
|
|
16583
16505
|
/**
|
|
16584
|
-
* @rc
|
|
16585
16506
|
* Loot item condition that applies given values to the chances
|
|
16586
16507
|
* that loot will drop based on the current difficulty level.
|
|
16587
16508
|
*/
|
|
@@ -16599,7 +16520,6 @@ export class RandomDifficultyChanceCondition extends LootItemCondition {
|
|
|
16599
16520
|
}
|
|
16600
16521
|
|
|
16601
16522
|
/**
|
|
16602
|
-
* @rc
|
|
16603
16523
|
* Loot item function that applies a randomly dye to the
|
|
16604
16524
|
* dropped item.
|
|
16605
16525
|
*/
|
|
@@ -16609,7 +16529,6 @@ export class RandomDyeFunction extends LootItemFunction {
|
|
|
16609
16529
|
}
|
|
16610
16530
|
|
|
16611
16531
|
/**
|
|
16612
|
-
* @rc
|
|
16613
16532
|
* Loot item condition that applies a given value to the
|
|
16614
16533
|
* chances that loot will drop, modified by the region the drop
|
|
16615
16534
|
* is happening within.
|
|
@@ -17311,7 +17230,6 @@ export class Seat {
|
|
|
17311
17230
|
}
|
|
17312
17231
|
|
|
17313
17232
|
/**
|
|
17314
|
-
* @rc
|
|
17315
17233
|
* Loot item function that modifies the trim on a dropped armor
|
|
17316
17234
|
* item.
|
|
17317
17235
|
*/
|
|
@@ -17333,7 +17251,6 @@ export class SetArmorTrimFunction extends LootItemFunction {
|
|
|
17333
17251
|
}
|
|
17334
17252
|
|
|
17335
17253
|
/**
|
|
17336
|
-
* @rc
|
|
17337
17254
|
* Loot item function that modifies the type of a banner that
|
|
17338
17255
|
* drops.
|
|
17339
17256
|
*/
|
|
@@ -17349,7 +17266,6 @@ export class SetBannerDetailsFunction extends LootItemFunction {
|
|
|
17349
17266
|
}
|
|
17350
17267
|
|
|
17351
17268
|
/**
|
|
17352
|
-
* @rc
|
|
17353
17269
|
* Loot item function that modifies the contents of a dropped
|
|
17354
17270
|
* book.
|
|
17355
17271
|
*/
|
|
@@ -17377,7 +17293,6 @@ export class SetBookContentsFunction extends LootItemFunction {
|
|
|
17377
17293
|
}
|
|
17378
17294
|
|
|
17379
17295
|
/**
|
|
17380
|
-
* @rc
|
|
17381
17296
|
* Loot item function that modifies the dropped item's data
|
|
17382
17297
|
* value based on its color index. Defaults to zero if no color
|
|
17383
17298
|
* index is set.
|
|
@@ -17388,7 +17303,6 @@ export class SetDataFromColorIndexFunction extends LootItemFunction {
|
|
|
17388
17303
|
}
|
|
17389
17304
|
|
|
17390
17305
|
/**
|
|
17391
|
-
* @rc
|
|
17392
17306
|
* Loot item function that modifies the number items that drop
|
|
17393
17307
|
* from the loot pool entry.
|
|
17394
17308
|
*/
|
|
@@ -17406,7 +17320,6 @@ export class SetItemCountFunction extends LootItemFunction {
|
|
|
17406
17320
|
}
|
|
17407
17321
|
|
|
17408
17322
|
/**
|
|
17409
|
-
* @rc
|
|
17410
17323
|
* Loot item function that modifies the durability value of the
|
|
17411
17324
|
* item dropped.
|
|
17412
17325
|
*/
|
|
@@ -17424,7 +17337,6 @@ export class SetItemDamageFunction extends LootItemFunction {
|
|
|
17424
17337
|
}
|
|
17425
17338
|
|
|
17426
17339
|
/**
|
|
17427
|
-
* @rc
|
|
17428
17340
|
* Loot item function that modifies the data value of the item
|
|
17429
17341
|
* dropped.
|
|
17430
17342
|
*/
|
|
@@ -17441,7 +17353,6 @@ export class SetItemDataFunction extends LootItemFunction {
|
|
|
17441
17353
|
}
|
|
17442
17354
|
|
|
17443
17355
|
/**
|
|
17444
|
-
* @rc
|
|
17445
17356
|
* Loot item function that modifies the lore of the item
|
|
17446
17357
|
* dropped.
|
|
17447
17358
|
*/
|
|
@@ -17457,7 +17368,6 @@ export class SetItemLoreFunction extends LootItemFunction {
|
|
|
17457
17368
|
}
|
|
17458
17369
|
|
|
17459
17370
|
/**
|
|
17460
|
-
* @rc
|
|
17461
17371
|
* Loot item function that modifies the name of the item
|
|
17462
17372
|
* dropped.
|
|
17463
17373
|
*/
|
|
@@ -17473,7 +17383,6 @@ export class SetItemNameFunction extends LootItemFunction {
|
|
|
17473
17383
|
}
|
|
17474
17384
|
|
|
17475
17385
|
/**
|
|
17476
|
-
* @rc
|
|
17477
17386
|
* Loot item function that modifies an ominous bottle's
|
|
17478
17387
|
* amplifier value.
|
|
17479
17388
|
*/
|
|
@@ -17491,7 +17400,6 @@ export class SetOminousBottleFunction extends LootItemFunction {
|
|
|
17491
17400
|
}
|
|
17492
17401
|
|
|
17493
17402
|
/**
|
|
17494
|
-
* @rc
|
|
17495
17403
|
* Loot item function that assigns a type to a dropped potion.
|
|
17496
17404
|
*/
|
|
17497
17405
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -17506,7 +17414,6 @@ export class SetPotionFunction extends LootItemFunction {
|
|
|
17506
17414
|
}
|
|
17507
17415
|
|
|
17508
17416
|
/**
|
|
17509
|
-
* @rc
|
|
17510
17417
|
* Loot item function that assigns an entity type to a dropped
|
|
17511
17418
|
* spawn egg. Does not work on any items other than spawn eggs.
|
|
17512
17419
|
*/
|
|
@@ -17522,7 +17429,6 @@ export class SetSpawnEggFunction extends LootItemFunction {
|
|
|
17522
17429
|
}
|
|
17523
17430
|
|
|
17524
17431
|
/**
|
|
17525
|
-
* @rc
|
|
17526
17432
|
* Loot item function that modifies the effects of a dropped
|
|
17527
17433
|
* stew item.
|
|
17528
17434
|
*/
|
|
@@ -17583,7 +17489,6 @@ export class ShutdownEvent {
|
|
|
17583
17489
|
}
|
|
17584
17490
|
|
|
17585
17491
|
/**
|
|
17586
|
-
* @rc
|
|
17587
17492
|
* Loot item function that processes the dropped item as if it
|
|
17588
17493
|
* was smelted or cooked in a furnace.
|
|
17589
17494
|
*/
|
|
@@ -17593,7 +17498,6 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
17593
17498
|
}
|
|
17594
17499
|
|
|
17595
17500
|
/**
|
|
17596
|
-
* @rc
|
|
17597
17501
|
* Loot item function that applies one or several predefined
|
|
17598
17502
|
* enchants to the dropped item.
|
|
17599
17503
|
*/
|
|
@@ -19628,7 +19532,6 @@ export class WorldLoadAfterEventSignal {
|
|
|
19628
19532
|
}
|
|
19629
19533
|
|
|
19630
19534
|
/**
|
|
19631
|
-
* @rc
|
|
19632
19535
|
* Axis-aligned bounding box.
|
|
19633
19536
|
*/
|
|
19634
19537
|
export interface AABB {
|
|
@@ -19694,7 +19597,6 @@ export interface BlockCustomComponent {
|
|
|
19694
19597
|
*/
|
|
19695
19598
|
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
|
|
19696
19599
|
/**
|
|
19697
|
-
* @rc
|
|
19698
19600
|
* @remarks
|
|
19699
19601
|
* This function will be called when a specific block is
|
|
19700
19602
|
* destroyed.
|
|
@@ -19736,15 +19638,6 @@ export interface BlockCustomComponent {
|
|
|
19736
19638
|
*
|
|
19737
19639
|
*/
|
|
19738
19640
|
onRandomTick?: (arg0: BlockComponentRandomTickEvent, arg1: CustomComponentParameters) => void;
|
|
19739
|
-
/**
|
|
19740
|
-
* @remarks
|
|
19741
|
-
* This function will be called when an 'onRedstoneUpdate'
|
|
19742
|
-
* engine event occurs if the block has a
|
|
19743
|
-
* `minecraft:redstone_consumer` component and the redstone
|
|
19744
|
-
* signal strength is >= to the components `min_power` field.
|
|
19745
|
-
*
|
|
19746
|
-
*/
|
|
19747
|
-
onRedstoneUpdate?: (arg0: BlockComponentRedstoneUpdateEvent, arg1: CustomComponentParameters) => void;
|
|
19748
19641
|
/**
|
|
19749
19642
|
* @remarks
|
|
19750
19643
|
* This function will be called when an entity steps off the
|
|
@@ -20931,7 +20824,6 @@ export interface ExplosionOptions {
|
|
|
20931
20824
|
}
|
|
20932
20825
|
|
|
20933
20826
|
/**
|
|
20934
|
-
* @rc
|
|
20935
20827
|
* Contains additional options for getBlockStandingOn and
|
|
20936
20828
|
* getAllBlocksStandingOn.
|
|
20937
20829
|
*/
|
|
@@ -21145,7 +21037,6 @@ export interface JigsawPlaceOptions {
|
|
|
21145
21037
|
*/
|
|
21146
21038
|
keepJigsaws?: boolean;
|
|
21147
21039
|
/**
|
|
21148
|
-
* @rc
|
|
21149
21040
|
* @remarks
|
|
21150
21041
|
* Specifies how to handle waterloggable blocks overlapping
|
|
21151
21042
|
* with existing liquid. Defaults to `ApplyWaterlogging`.
|
|
@@ -21182,7 +21073,6 @@ export interface JigsawStructurePlaceOptions {
|
|
|
21182
21073
|
*/
|
|
21183
21074
|
keepJigsaws?: boolean;
|
|
21184
21075
|
/**
|
|
21185
|
-
* @rc
|
|
21186
21076
|
* @remarks
|
|
21187
21077
|
* Specifies how to handle waterloggable blocks overlapping
|
|
21188
21078
|
* with existing liquid. Defaults to `ApplyWaterlogging`.
|
|
@@ -22037,7 +21927,6 @@ export class EntitySpawnError extends Error {
|
|
|
22037
21927
|
}
|
|
22038
21928
|
|
|
22039
21929
|
/**
|
|
22040
|
-
* @rc
|
|
22041
21930
|
* The error can occur when a block is invalid. This can also
|
|
22042
21931
|
* occur when accessing components on a block that doesn't have
|
|
22043
21932
|
* them.
|
|
@@ -22112,17 +22001,11 @@ export class InvalidIteratorError extends Error {
|
|
|
22112
22001
|
private constructor();
|
|
22113
22002
|
}
|
|
22114
22003
|
|
|
22115
|
-
/**
|
|
22116
|
-
* @rc
|
|
22117
|
-
*/
|
|
22118
22004
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
22119
22005
|
export class InvalidPotionDeliveryTypeError extends Error {
|
|
22120
22006
|
private constructor();
|
|
22121
22007
|
}
|
|
22122
22008
|
|
|
22123
|
-
/**
|
|
22124
|
-
* @rc
|
|
22125
|
-
*/
|
|
22126
22009
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
22127
22010
|
export class InvalidPotionEffectTypeError extends Error {
|
|
22128
22011
|
private constructor();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.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
|
}
|