跳转至

mojang-minecraft

文档版本:1.21.0.24

mojang-minecraft模块的0.1.0版本,UUID为b26a4d4c-afdf-4690-88f8-931846312678。该模块是服务端的基础模块,在最新模块版本中已改名为@minecraft/server

依赖

该模块依赖于以下模块:

  • @minecraft/common|1.0.0|77ec12b4-1b2b-4c98-8d34-d1cd63f849d5

常量

TicksPerSecond
static read-only TicksPerSecond = 20;

对象

world
static read-only world: World;
worldWorld
script_api.mojang-minecraft.world.description

描述
BeforeChatEvent
BeforeChatEventSignal
BeforeItemUseEvent
BeforeItemUseEventSignal
BeforeItemUseOnEvent
BeforeItemUseOnEventSignal
Block
BlockAreaSize
BlockComponent
BlockEvent
BlockInventoryComponent
BlockInventoryComponentContainer
BlockLavaContainerComponent
BlockLiquidContainerComponent
BlockLocation
BlockPermutation
BlockPistonComponent
BlockPotionContainerComponent
BlockRaycastOptions
BlockRecordPlayerComponent
BlockSnowContainerComponent
BlockType
BlockWaterContainerComponent
BoolBlockProperty
ChatEvent
Color
Component
Container
DataDrivenEntityTriggerEvent
DataDrivenEntityTriggerEventSignal
DefinitionModifier
Dimension
DynamicPropertiesDefinition
Effect
EffectType
Entity
EntityAddRiderComponent
EntityAgeableComponent
EntityAttributeComponent
EntityBaseMovementComponent
EntityBreathableComponent
EntityCanClimbComponent
EntityCanFlyComponent
EntityCanPowerJumpComponent
EntityColorComponent
EntityCreateEvent
EntityCreateEventSignal
EntityDataDrivenTriggerEventOptions
EntityDefinitionFeedItem
EntityEventOptions
EntityFireImmuneComponent
EntityFloatsInLiquidComponent
EntityFlyingSpeedComponent
EntityFrictionModifierComponent
EntityGroundOffsetComponent
EntityHealableComponent
EntityHealthComponent
EntityHitEvent
EntityHitEventSignal
EntityHurtEvent
EntityHurtEventSignal
EntityInventoryComponent
EntityIsBabyComponent
EntityIsChargedComponent
EntityIsChestedComponent
EntityIsDyableComponent
EntityIsHiddenWhenInvisibleComponent
EntityIsIgnitedComponent
EntityIsIllagerCaptainComponent
EntityIsSaddledComponent
EntityIsShakingComponent
EntityIsShearedComponent
EntityIsStackableComponent
EntityIsStunnedComponent
EntityIsTamedComponent
EntityItemComponent
EntityIterator
EntityLavaMovementComponent
EntityLeashableComponent
EntityMarkVariantComponent
EntityMovementAmphibiousComponent
EntityMovementBasicComponent
EntityMovementComponent
EntityMovementFlyComponent
EntityMovementGenericComponent
EntityMovementGlideComponent
EntityMovementHoverComponent
EntityMovementJumpComponent
EntityMovementSkipComponent
EntityMovementSwayComponent
EntityNavigationClimbComponent
EntityNavigationComponent
EntityNavigationFloatComponent
EntityNavigationFlyComponent
EntityNavigationGenericComponent
EntityNavigationHoverComponent
EntityNavigationWalkComponent
EntityPushThroughComponent
EntityQueryOptions
EntityQueryScoreOptions
EntityRaycastOptions
EntityRideableComponent
EntityScaleComponent
EntitySkinIdComponent
EntityStrengthComponent
EntityTameableComponent
EntityTameMountComponent
EntityType
EntityTypeIterator
EntityTypes
EntityUnderwaterMovementComponent
EntityVariantComponent
EntityWantsJockeyComponent
Events
ExplosionOptions
FeedItem
FeedItemEffect
FilterGroup
FluidContainer
IBlockProperty
IEntityComponent
IntBlockProperty
InventoryComponentContainer
ItemCompleteChargeEvent
ItemCompleteChargeEventSignal
ItemComponent
ItemCooldownComponent
ItemDurabilityComponent
ItemFoodComponent
ItemReleaseChargeEvent
ItemReleaseChargeEventSignal
Items
ItemStack
ItemStartChargeEvent
ItemStartChargeEventSignal
ItemStopChargeEvent
ItemStopChargeEventSignal
ItemType
ItemUseEvent
ItemUseOnEvent
ItemUseOnEventSignal
Location
MinecraftBlockTypes
MinecraftDimensionTypes
MinecraftEffectTypes
MinecraftItemTypes
MolangVariableMap
MusicOptions
NumberRange
Player
PlayerInventoryComponentContainer
PlayerIterator
PlayerJoinEvent
PlayerJoinEventSignal
PlayerLeaveEvent
PlayerLeaveEventSignal
PropertyRegistry
Scoreboard
ScoreboardIdentity
ScoreboardObjective
ScoreboardScoreInfo
Seat
SoundOptions
StringBlockProperty
TickEvent
TickEventSignal
Trigger
Vector
WeatherChangeEvent
WeatherChangeEventSignal
World
WorldInitializeEvent
WorldInitializeEventSignal
XYRotation

枚举

枚举 描述
Direction
EntityDamageCause
GameMode
ScoreboardIdentityType