@minecraft/server 2.4.0-rc.1.21.130-preview.28 → 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 -86
- 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
|
*/
|
|
@@ -4294,9 +4287,6 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
4294
4287
|
getAttachedBlocksLocations(): Vector3[];
|
|
4295
4288
|
}
|
|
4296
4289
|
|
|
4297
|
-
/**
|
|
4298
|
-
* @rc
|
|
4299
|
-
*/
|
|
4300
4290
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4301
4291
|
export class BlockPrecipitationInteractionsComponent extends BlockComponent {
|
|
4302
4292
|
private constructor();
|
|
@@ -4393,7 +4383,6 @@ export class BlockRecordPlayerComponent extends BlockComponent {
|
|
|
4393
4383
|
}
|
|
4394
4384
|
|
|
4395
4385
|
/**
|
|
4396
|
-
* @rc
|
|
4397
4386
|
* Represents a block that can output a redstone signal.
|
|
4398
4387
|
*/
|
|
4399
4388
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -6019,7 +6008,6 @@ export class CustomComponentParameters {
|
|
|
6019
6008
|
}
|
|
6020
6009
|
|
|
6021
6010
|
/**
|
|
6022
|
-
* @rc
|
|
6023
6011
|
* Loot item condition that checks whether the loot source was
|
|
6024
6012
|
* damaged by a specific type of entity.
|
|
6025
6013
|
*/
|
|
@@ -7104,7 +7092,6 @@ export class EffectTypes {
|
|
|
7104
7092
|
}
|
|
7105
7093
|
|
|
7106
7094
|
/**
|
|
7107
|
-
* @rc
|
|
7108
7095
|
* Represents a completely empty entry in a loot pool. If this
|
|
7109
7096
|
* entry is chosen, no items will drop.
|
|
7110
7097
|
*/
|
|
@@ -7113,9 +7100,6 @@ export class EmptyLootItem extends LootPoolEntry {
|
|
|
7113
7100
|
private constructor();
|
|
7114
7101
|
}
|
|
7115
7102
|
|
|
7116
|
-
/**
|
|
7117
|
-
* @rc
|
|
7118
|
-
*/
|
|
7119
7103
|
export class EnchantInfo {
|
|
7120
7104
|
private constructor();
|
|
7121
7105
|
readonly enchantment: string;
|
|
@@ -7171,7 +7155,6 @@ export class EnchantmentTypes {
|
|
|
7171
7155
|
}
|
|
7172
7156
|
|
|
7173
7157
|
/**
|
|
7174
|
-
* @rc
|
|
7175
7158
|
* Loot item function that applies a random enchant to the
|
|
7176
7159
|
* dropped item using the same algorithm used while enchanting
|
|
7177
7160
|
* equipment vanilla mobs spawn with.
|
|
@@ -7189,7 +7172,6 @@ export class EnchantRandomEquipmentFunction extends LootItemFunction {
|
|
|
7189
7172
|
}
|
|
7190
7173
|
|
|
7191
7174
|
/**
|
|
7192
|
-
* @rc
|
|
7193
7175
|
* Loot item function that randomly enchants the dropped item.
|
|
7194
7176
|
*/
|
|
7195
7177
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -7205,7 +7187,6 @@ export class EnchantRandomlyFunction extends LootItemFunction {
|
|
|
7205
7187
|
}
|
|
7206
7188
|
|
|
7207
7189
|
/**
|
|
7208
|
-
* @rc
|
|
7209
7190
|
* Loot item function that applies a random enchant to the
|
|
7210
7191
|
* dropped item.
|
|
7211
7192
|
*/
|
|
@@ -7690,7 +7671,6 @@ export class Entity {
|
|
|
7690
7671
|
*/
|
|
7691
7672
|
extinguishFire(useEffects?: boolean): boolean;
|
|
7692
7673
|
/**
|
|
7693
|
-
* @rc
|
|
7694
7674
|
* @remarks
|
|
7695
7675
|
* Gets the entity's collision bounds.
|
|
7696
7676
|
*
|
|
@@ -7702,7 +7682,6 @@ export class Entity {
|
|
|
7702
7682
|
*/
|
|
7703
7683
|
getAABB(): AABB;
|
|
7704
7684
|
/**
|
|
7705
|
-
* @rc
|
|
7706
7685
|
* @remarks
|
|
7707
7686
|
* Gets the solid blocks that this entity is directly standing
|
|
7708
7687
|
* on. Ignores pressure plates.
|
|
@@ -7734,7 +7713,6 @@ export class Entity {
|
|
|
7734
7713
|
*/
|
|
7735
7714
|
getBlockFromViewDirection(options?: BlockRaycastOptions): BlockRaycastHit | undefined;
|
|
7736
7715
|
/**
|
|
7737
|
-
* @rc
|
|
7738
7716
|
* @remarks
|
|
7739
7717
|
* Gets a single solid block closest to the center of the
|
|
7740
7718
|
* entity that this entity is directly standing on. Ignores
|
|
@@ -9002,7 +8980,6 @@ export class EntityFrictionModifierComponent extends EntityComponent {
|
|
|
9002
8980
|
}
|
|
9003
8981
|
|
|
9004
8982
|
/**
|
|
9005
|
-
* @rc
|
|
9006
8983
|
* Loot item condition that checks the value of the mark
|
|
9007
8984
|
* variant of a mob as it drops its loot.
|
|
9008
8985
|
*/
|
|
@@ -9019,7 +8996,6 @@ export class EntityHasMarkVariantCondition extends LootItemCondition {
|
|
|
9019
8996
|
}
|
|
9020
8997
|
|
|
9021
8998
|
/**
|
|
9022
|
-
* @rc
|
|
9023
8999
|
* Loot item condition that checks the variant value of a mob
|
|
9024
9000
|
* as it drops its loot.
|
|
9025
9001
|
*/
|
|
@@ -9573,7 +9549,6 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
9573
9549
|
}
|
|
9574
9550
|
|
|
9575
9551
|
/**
|
|
9576
|
-
* @rc
|
|
9577
9552
|
* Loot item condition that checks the entity type of the
|
|
9578
9553
|
* entity dropping its loot.
|
|
9579
9554
|
*/
|
|
@@ -11008,7 +10983,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
|
|
|
11008
10983
|
}
|
|
11009
10984
|
|
|
11010
10985
|
/**
|
|
11011
|
-
* @rc
|
|
11012
10986
|
* Loot item function that modifies a dropped treasure map to
|
|
11013
10987
|
* mark a location.
|
|
11014
10988
|
*/
|
|
@@ -11135,7 +11109,6 @@ export class ExplosionBeforeEventSignal {
|
|
|
11135
11109
|
}
|
|
11136
11110
|
|
|
11137
11111
|
/**
|
|
11138
|
-
* @rc
|
|
11139
11112
|
* Loot item function that determines whether or not loot drops
|
|
11140
11113
|
* should be destroyed by explosions.
|
|
11141
11114
|
*/
|
|
@@ -11212,7 +11185,6 @@ export class FeedItemEffect {
|
|
|
11212
11185
|
}
|
|
11213
11186
|
|
|
11214
11187
|
/**
|
|
11215
|
-
* @rc
|
|
11216
11188
|
* Loot item function that populates a dropped container item
|
|
11217
11189
|
* using another loot table.
|
|
11218
11190
|
*/
|
|
@@ -11573,7 +11545,6 @@ export class InputInfo {
|
|
|
11573
11545
|
}
|
|
11574
11546
|
|
|
11575
11547
|
/**
|
|
11576
|
-
* @rc
|
|
11577
11548
|
* Loot item condition that checks whether or not the entity
|
|
11578
11549
|
* dropping loot is a baby.
|
|
11579
11550
|
*/
|
|
@@ -12497,7 +12468,6 @@ export class ItemInventoryComponent extends ItemComponent {
|
|
|
12497
12468
|
}
|
|
12498
12469
|
|
|
12499
12470
|
/**
|
|
12500
|
-
* @rc
|
|
12501
12471
|
* When present on an item, this item is a potion item.
|
|
12502
12472
|
*/
|
|
12503
12473
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -13512,7 +13482,6 @@ export class ItemUseOnEvent {
|
|
|
13512
13482
|
}
|
|
13513
13483
|
|
|
13514
13484
|
/**
|
|
13515
|
-
* @rc
|
|
13516
13485
|
* Loot item condition that checks whether or not the drop
|
|
13517
13486
|
* source was killed by a specific type of entity.
|
|
13518
13487
|
*/
|
|
@@ -13529,7 +13498,6 @@ export class KilledByEntityCondition extends LootItemCondition {
|
|
|
13529
13498
|
}
|
|
13530
13499
|
|
|
13531
13500
|
/**
|
|
13532
|
-
* @rc
|
|
13533
13501
|
* Loot item condition that checks whether or not the source of
|
|
13534
13502
|
* the loot drop was killed by the player.
|
|
13535
13503
|
*/
|
|
@@ -13539,7 +13507,6 @@ export class KilledByPlayerCondition extends LootItemCondition {
|
|
|
13539
13507
|
}
|
|
13540
13508
|
|
|
13541
13509
|
/**
|
|
13542
|
-
* @rc
|
|
13543
13510
|
* Loot item condition that checks whether or not the source of
|
|
13544
13511
|
* the loot drop was killed by the player or any of the
|
|
13545
13512
|
* player's pets.
|
|
@@ -13701,7 +13668,6 @@ export class ListBlockVolume extends BlockVolumeBase {
|
|
|
13701
13668
|
}
|
|
13702
13669
|
|
|
13703
13670
|
/**
|
|
13704
|
-
* @rc
|
|
13705
13671
|
* Loot item function that drops extra items if the provided
|
|
13706
13672
|
* tool has the looting enchant.
|
|
13707
13673
|
*/
|
|
@@ -13719,7 +13685,6 @@ export class LootingEnchantFunction extends LootItemFunction {
|
|
|
13719
13685
|
}
|
|
13720
13686
|
|
|
13721
13687
|
/**
|
|
13722
|
-
* @rc
|
|
13723
13688
|
* Represents a loot pool entry containing an item to drop.
|
|
13724
13689
|
*/
|
|
13725
13690
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -13735,7 +13700,6 @@ export class LootItem extends LootPoolEntry {
|
|
|
13735
13700
|
}
|
|
13736
13701
|
|
|
13737
13702
|
/**
|
|
13738
|
-
* @rc
|
|
13739
13703
|
* An abstract base class from which all loot item conditions
|
|
13740
13704
|
* are derived. A loot item condition is a set of rules or
|
|
13741
13705
|
* requirements which must be met for a loot drop to happen.
|
|
@@ -13745,7 +13709,6 @@ export class LootItemCondition {
|
|
|
13745
13709
|
}
|
|
13746
13710
|
|
|
13747
13711
|
/**
|
|
13748
|
-
* @rc
|
|
13749
13712
|
* An abstract base class from which all loot item functions
|
|
13750
13713
|
* are derived. Loot item functions can modify loot drops in a
|
|
13751
13714
|
* variety of ways as they happen, optionally dependent on a
|
|
@@ -13757,7 +13720,6 @@ export class LootItemFunction {
|
|
|
13757
13720
|
}
|
|
13758
13721
|
|
|
13759
13722
|
/**
|
|
13760
|
-
* @rc
|
|
13761
13723
|
* A collection of entries which individually determine loot
|
|
13762
13724
|
* drops. Can contain values determining drop outcomes,
|
|
13763
13725
|
* including rolls, bonus rolls and tiers.
|
|
@@ -13797,7 +13759,6 @@ export class LootPool {
|
|
|
13797
13759
|
}
|
|
13798
13760
|
|
|
13799
13761
|
/**
|
|
13800
|
-
* @rc
|
|
13801
13762
|
* Represents one entry within Loot Table, which describes one
|
|
13802
13763
|
* possible drop when a loot drop occurs. Can contain an item,
|
|
13803
13764
|
* another loot table, a path to another loot table, or an
|
|
@@ -13826,7 +13787,6 @@ export class LootPoolEntry {
|
|
|
13826
13787
|
}
|
|
13827
13788
|
|
|
13828
13789
|
/**
|
|
13829
|
-
* @rc
|
|
13830
13790
|
* Represents the values which determine loot drops in a tiered
|
|
13831
13791
|
* loot pool. Potential drops from tiered loot pools are
|
|
13832
13792
|
* ordered, and chosen via logic controlled by the values in
|
|
@@ -13862,7 +13822,6 @@ export class LootPoolTiers {
|
|
|
13862
13822
|
}
|
|
13863
13823
|
|
|
13864
13824
|
/**
|
|
13865
|
-
* @rc
|
|
13866
13825
|
* Represents a single Loot Table, which determines what items
|
|
13867
13826
|
* are generated when killing a mob, breaking a block, filling
|
|
13868
13827
|
* a container, and more.
|
|
@@ -13886,7 +13845,6 @@ export class LootTable {
|
|
|
13886
13845
|
}
|
|
13887
13846
|
|
|
13888
13847
|
/**
|
|
13889
|
-
* @rc
|
|
13890
13848
|
* Represents a loot pool entry containing another separate,
|
|
13891
13849
|
* nested loot table.
|
|
13892
13850
|
*/
|
|
@@ -13986,7 +13944,6 @@ export class LootTableManager {
|
|
|
13986
13944
|
*/
|
|
13987
13945
|
generateLootFromEntityType(entityType: EntityType, tool?: ItemStack): ItemStack[] | undefined;
|
|
13988
13946
|
/**
|
|
13989
|
-
* @rc
|
|
13990
13947
|
* @remarks
|
|
13991
13948
|
* Generates loot from a given LootTable.
|
|
13992
13949
|
*
|
|
@@ -13999,7 +13956,6 @@ export class LootTableManager {
|
|
|
13999
13956
|
*/
|
|
14000
13957
|
generateLootFromTable(lootTable: LootTable, tool?: ItemStack): ItemStack[] | undefined;
|
|
14001
13958
|
/**
|
|
14002
|
-
* @rc
|
|
14003
13959
|
* @remarks
|
|
14004
13960
|
* Retrieves a single loot table from the level's current
|
|
14005
13961
|
* registry.
|
|
@@ -14016,7 +13972,6 @@ export class LootTableManager {
|
|
|
14016
13972
|
}
|
|
14017
13973
|
|
|
14018
13974
|
/**
|
|
14019
|
-
* @rc
|
|
14020
13975
|
* Represents a loot pool entry containing a reference to
|
|
14021
13976
|
* another loot table, described by its path.
|
|
14022
13977
|
*/
|
|
@@ -14033,7 +13988,6 @@ export class LootTableReference extends LootPoolEntry {
|
|
|
14033
13988
|
}
|
|
14034
13989
|
|
|
14035
13990
|
/**
|
|
14036
|
-
* @rc
|
|
14037
13991
|
* Loot item condition that checks whether an appropriate tool
|
|
14038
13992
|
* was used to trigger the loot event. Can describe item type,
|
|
14039
13993
|
* count, durability, enchantments, or arrays of item tags to
|
|
@@ -14160,7 +14114,6 @@ export class MolangVariableMap {
|
|
|
14160
14114
|
}
|
|
14161
14115
|
|
|
14162
14116
|
/**
|
|
14163
|
-
* @rc
|
|
14164
14117
|
* Loot item condition that checks whether the looting entity
|
|
14165
14118
|
* is currently a passenger of a specific type of entity.
|
|
14166
14119
|
*/
|
|
@@ -14474,7 +14427,6 @@ export class Player extends Entity {
|
|
|
14474
14427
|
*/
|
|
14475
14428
|
clearPropertyOverridesForEntity(targetEntity: Entity | string): void;
|
|
14476
14429
|
/**
|
|
14477
|
-
* @rc
|
|
14478
14430
|
* @remarks
|
|
14479
14431
|
* Returns the player's current control scheme.
|
|
14480
14432
|
*
|
|
@@ -14705,7 +14657,6 @@ export class Player extends Entity {
|
|
|
14705
14657
|
*/
|
|
14706
14658
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
14707
14659
|
/**
|
|
14708
|
-
* @rc
|
|
14709
14660
|
* @remarks
|
|
14710
14661
|
* Set a player's control scheme. The player's active camera
|
|
14711
14662
|
* preset must be set by scripts like with camera.setCamera()
|
|
@@ -16126,7 +16077,6 @@ export class PlayerSpawnAfterEventSignal {
|
|
|
16126
16077
|
}
|
|
16127
16078
|
|
|
16128
16079
|
/**
|
|
16129
|
-
* @rc
|
|
16130
16080
|
* Represents how the potion effect is delivered.
|
|
16131
16081
|
*/
|
|
16132
16082
|
export class PotionDeliveryType {
|
|
@@ -16135,7 +16085,6 @@ export class PotionDeliveryType {
|
|
|
16135
16085
|
}
|
|
16136
16086
|
|
|
16137
16087
|
/**
|
|
16138
|
-
* @rc
|
|
16139
16088
|
* Represents a type of potion effect - like healing or
|
|
16140
16089
|
* leaping.
|
|
16141
16090
|
*/
|
|
@@ -16155,7 +16104,6 @@ export class PotionEffectType {
|
|
|
16155
16104
|
}
|
|
16156
16105
|
|
|
16157
16106
|
/**
|
|
16158
|
-
* @rc
|
|
16159
16107
|
* Used for accessing all potion effect types, delivery types,
|
|
16160
16108
|
* and creating potions.
|
|
16161
16109
|
*/
|
|
@@ -16483,7 +16431,6 @@ export class ProjectileHitEntityAfterEventSignal {
|
|
|
16483
16431
|
}
|
|
16484
16432
|
|
|
16485
16433
|
/**
|
|
16486
|
-
* @rc
|
|
16487
16434
|
* Loot item function that randomly modifies the data value of
|
|
16488
16435
|
* the item dropped.
|
|
16489
16436
|
*/
|
|
@@ -16500,7 +16447,6 @@ export class RandomAuxValueFunction extends LootItemFunction {
|
|
|
16500
16447
|
}
|
|
16501
16448
|
|
|
16502
16449
|
/**
|
|
16503
|
-
* @rc
|
|
16504
16450
|
* Loot item function that randomly modifies the block state of
|
|
16505
16451
|
* the item dropped.
|
|
16506
16452
|
*/
|
|
@@ -16519,7 +16465,6 @@ export class RandomBlockStateFunction extends LootItemFunction {
|
|
|
16519
16465
|
}
|
|
16520
16466
|
|
|
16521
16467
|
/**
|
|
16522
|
-
* @rc
|
|
16523
16468
|
* Loot item condition that applies a given value to the
|
|
16524
16469
|
* chances that loot will drop.
|
|
16525
16470
|
*/
|
|
@@ -16535,7 +16480,6 @@ export class RandomChanceCondition extends LootItemCondition {
|
|
|
16535
16480
|
}
|
|
16536
16481
|
|
|
16537
16482
|
/**
|
|
16538
|
-
* @rc
|
|
16539
16483
|
* Loot item condition that applies a given value to the
|
|
16540
16484
|
* chances that loot will drop, modified by the level of
|
|
16541
16485
|
* looting enchantment on the tool used.
|
|
@@ -16559,7 +16503,6 @@ export class RandomChanceWithLootingCondition extends LootItemCondition {
|
|
|
16559
16503
|
}
|
|
16560
16504
|
|
|
16561
16505
|
/**
|
|
16562
|
-
* @rc
|
|
16563
16506
|
* Loot item condition that applies given values to the chances
|
|
16564
16507
|
* that loot will drop based on the current difficulty level.
|
|
16565
16508
|
*/
|
|
@@ -16577,7 +16520,6 @@ export class RandomDifficultyChanceCondition extends LootItemCondition {
|
|
|
16577
16520
|
}
|
|
16578
16521
|
|
|
16579
16522
|
/**
|
|
16580
|
-
* @rc
|
|
16581
16523
|
* Loot item function that applies a randomly dye to the
|
|
16582
16524
|
* dropped item.
|
|
16583
16525
|
*/
|
|
@@ -16587,7 +16529,6 @@ export class RandomDyeFunction extends LootItemFunction {
|
|
|
16587
16529
|
}
|
|
16588
16530
|
|
|
16589
16531
|
/**
|
|
16590
|
-
* @rc
|
|
16591
16532
|
* Loot item condition that applies a given value to the
|
|
16592
16533
|
* chances that loot will drop, modified by the region the drop
|
|
16593
16534
|
* is happening within.
|
|
@@ -17289,7 +17230,6 @@ export class Seat {
|
|
|
17289
17230
|
}
|
|
17290
17231
|
|
|
17291
17232
|
/**
|
|
17292
|
-
* @rc
|
|
17293
17233
|
* Loot item function that modifies the trim on a dropped armor
|
|
17294
17234
|
* item.
|
|
17295
17235
|
*/
|
|
@@ -17311,7 +17251,6 @@ export class SetArmorTrimFunction extends LootItemFunction {
|
|
|
17311
17251
|
}
|
|
17312
17252
|
|
|
17313
17253
|
/**
|
|
17314
|
-
* @rc
|
|
17315
17254
|
* Loot item function that modifies the type of a banner that
|
|
17316
17255
|
* drops.
|
|
17317
17256
|
*/
|
|
@@ -17327,7 +17266,6 @@ export class SetBannerDetailsFunction extends LootItemFunction {
|
|
|
17327
17266
|
}
|
|
17328
17267
|
|
|
17329
17268
|
/**
|
|
17330
|
-
* @rc
|
|
17331
17269
|
* Loot item function that modifies the contents of a dropped
|
|
17332
17270
|
* book.
|
|
17333
17271
|
*/
|
|
@@ -17355,7 +17293,6 @@ export class SetBookContentsFunction extends LootItemFunction {
|
|
|
17355
17293
|
}
|
|
17356
17294
|
|
|
17357
17295
|
/**
|
|
17358
|
-
* @rc
|
|
17359
17296
|
* Loot item function that modifies the dropped item's data
|
|
17360
17297
|
* value based on its color index. Defaults to zero if no color
|
|
17361
17298
|
* index is set.
|
|
@@ -17366,7 +17303,6 @@ export class SetDataFromColorIndexFunction extends LootItemFunction {
|
|
|
17366
17303
|
}
|
|
17367
17304
|
|
|
17368
17305
|
/**
|
|
17369
|
-
* @rc
|
|
17370
17306
|
* Loot item function that modifies the number items that drop
|
|
17371
17307
|
* from the loot pool entry.
|
|
17372
17308
|
*/
|
|
@@ -17384,7 +17320,6 @@ export class SetItemCountFunction extends LootItemFunction {
|
|
|
17384
17320
|
}
|
|
17385
17321
|
|
|
17386
17322
|
/**
|
|
17387
|
-
* @rc
|
|
17388
17323
|
* Loot item function that modifies the durability value of the
|
|
17389
17324
|
* item dropped.
|
|
17390
17325
|
*/
|
|
@@ -17402,7 +17337,6 @@ export class SetItemDamageFunction extends LootItemFunction {
|
|
|
17402
17337
|
}
|
|
17403
17338
|
|
|
17404
17339
|
/**
|
|
17405
|
-
* @rc
|
|
17406
17340
|
* Loot item function that modifies the data value of the item
|
|
17407
17341
|
* dropped.
|
|
17408
17342
|
*/
|
|
@@ -17419,7 +17353,6 @@ export class SetItemDataFunction extends LootItemFunction {
|
|
|
17419
17353
|
}
|
|
17420
17354
|
|
|
17421
17355
|
/**
|
|
17422
|
-
* @rc
|
|
17423
17356
|
* Loot item function that modifies the lore of the item
|
|
17424
17357
|
* dropped.
|
|
17425
17358
|
*/
|
|
@@ -17435,7 +17368,6 @@ export class SetItemLoreFunction extends LootItemFunction {
|
|
|
17435
17368
|
}
|
|
17436
17369
|
|
|
17437
17370
|
/**
|
|
17438
|
-
* @rc
|
|
17439
17371
|
* Loot item function that modifies the name of the item
|
|
17440
17372
|
* dropped.
|
|
17441
17373
|
*/
|
|
@@ -17451,7 +17383,6 @@ export class SetItemNameFunction extends LootItemFunction {
|
|
|
17451
17383
|
}
|
|
17452
17384
|
|
|
17453
17385
|
/**
|
|
17454
|
-
* @rc
|
|
17455
17386
|
* Loot item function that modifies an ominous bottle's
|
|
17456
17387
|
* amplifier value.
|
|
17457
17388
|
*/
|
|
@@ -17469,7 +17400,6 @@ export class SetOminousBottleFunction extends LootItemFunction {
|
|
|
17469
17400
|
}
|
|
17470
17401
|
|
|
17471
17402
|
/**
|
|
17472
|
-
* @rc
|
|
17473
17403
|
* Loot item function that assigns a type to a dropped potion.
|
|
17474
17404
|
*/
|
|
17475
17405
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -17484,7 +17414,6 @@ export class SetPotionFunction extends LootItemFunction {
|
|
|
17484
17414
|
}
|
|
17485
17415
|
|
|
17486
17416
|
/**
|
|
17487
|
-
* @rc
|
|
17488
17417
|
* Loot item function that assigns an entity type to a dropped
|
|
17489
17418
|
* spawn egg. Does not work on any items other than spawn eggs.
|
|
17490
17419
|
*/
|
|
@@ -17500,7 +17429,6 @@ export class SetSpawnEggFunction extends LootItemFunction {
|
|
|
17500
17429
|
}
|
|
17501
17430
|
|
|
17502
17431
|
/**
|
|
17503
|
-
* @rc
|
|
17504
17432
|
* Loot item function that modifies the effects of a dropped
|
|
17505
17433
|
* stew item.
|
|
17506
17434
|
*/
|
|
@@ -17561,7 +17489,6 @@ export class ShutdownEvent {
|
|
|
17561
17489
|
}
|
|
17562
17490
|
|
|
17563
17491
|
/**
|
|
17564
|
-
* @rc
|
|
17565
17492
|
* Loot item function that processes the dropped item as if it
|
|
17566
17493
|
* was smelted or cooked in a furnace.
|
|
17567
17494
|
*/
|
|
@@ -17571,7 +17498,6 @@ export class SmeltItemFunction extends LootItemFunction {
|
|
|
17571
17498
|
}
|
|
17572
17499
|
|
|
17573
17500
|
/**
|
|
17574
|
-
* @rc
|
|
17575
17501
|
* Loot item function that applies one or several predefined
|
|
17576
17502
|
* enchants to the dropped item.
|
|
17577
17503
|
*/
|
|
@@ -19606,7 +19532,6 @@ export class WorldLoadAfterEventSignal {
|
|
|
19606
19532
|
}
|
|
19607
19533
|
|
|
19608
19534
|
/**
|
|
19609
|
-
* @rc
|
|
19610
19535
|
* Axis-aligned bounding box.
|
|
19611
19536
|
*/
|
|
19612
19537
|
export interface AABB {
|
|
@@ -19672,7 +19597,6 @@ export interface BlockCustomComponent {
|
|
|
19672
19597
|
*/
|
|
19673
19598
|
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;
|
|
19674
19599
|
/**
|
|
19675
|
-
* @rc
|
|
19676
19600
|
* @remarks
|
|
19677
19601
|
* This function will be called when a specific block is
|
|
19678
19602
|
* destroyed.
|
|
@@ -20900,7 +20824,6 @@ export interface ExplosionOptions {
|
|
|
20900
20824
|
}
|
|
20901
20825
|
|
|
20902
20826
|
/**
|
|
20903
|
-
* @rc
|
|
20904
20827
|
* Contains additional options for getBlockStandingOn and
|
|
20905
20828
|
* getAllBlocksStandingOn.
|
|
20906
20829
|
*/
|
|
@@ -21114,7 +21037,6 @@ export interface JigsawPlaceOptions {
|
|
|
21114
21037
|
*/
|
|
21115
21038
|
keepJigsaws?: boolean;
|
|
21116
21039
|
/**
|
|
21117
|
-
* @rc
|
|
21118
21040
|
* @remarks
|
|
21119
21041
|
* Specifies how to handle waterloggable blocks overlapping
|
|
21120
21042
|
* with existing liquid. Defaults to `ApplyWaterlogging`.
|
|
@@ -21151,7 +21073,6 @@ export interface JigsawStructurePlaceOptions {
|
|
|
21151
21073
|
*/
|
|
21152
21074
|
keepJigsaws?: boolean;
|
|
21153
21075
|
/**
|
|
21154
|
-
* @rc
|
|
21155
21076
|
* @remarks
|
|
21156
21077
|
* Specifies how to handle waterloggable blocks overlapping
|
|
21157
21078
|
* with existing liquid. Defaults to `ApplyWaterlogging`.
|
|
@@ -22006,7 +21927,6 @@ export class EntitySpawnError extends Error {
|
|
|
22006
21927
|
}
|
|
22007
21928
|
|
|
22008
21929
|
/**
|
|
22009
|
-
* @rc
|
|
22010
21930
|
* The error can occur when a block is invalid. This can also
|
|
22011
21931
|
* occur when accessing components on a block that doesn't have
|
|
22012
21932
|
* them.
|
|
@@ -22081,17 +22001,11 @@ export class InvalidIteratorError extends Error {
|
|
|
22081
22001
|
private constructor();
|
|
22082
22002
|
}
|
|
22083
22003
|
|
|
22084
|
-
/**
|
|
22085
|
-
* @rc
|
|
22086
|
-
*/
|
|
22087
22004
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
22088
22005
|
export class InvalidPotionDeliveryTypeError extends Error {
|
|
22089
22006
|
private constructor();
|
|
22090
22007
|
}
|
|
22091
22008
|
|
|
22092
|
-
/**
|
|
22093
|
-
* @rc
|
|
22094
|
-
*/
|
|
22095
22009
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
22096
22010
|
export class InvalidPotionEffectTypeError extends Error {
|
|
22097
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
|
}
|