@minecraft/server

      @minecraft/serverBeta

      Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.

      Manifest Details

      {
      "module_name": "@minecraft/server",
      "version": "2.0.0-beta"
      }

      Enumerations

      AimAssistTargetMode
      BlockComponentTypes
      BlockPistonState
      BlockVolumeIntersection
      ButtonState
      CompoundBlockVolumeAction
      CompoundBlockVolumePositionRelativity
      CustomComponentNameErrorReason
      Difficulty
      Direction
      DisplaySlotId
      DyeColor
      EasingType
      EnchantmentSlot
      EntityComponentTypes
      EntityDamageCause
      EntityInitializationCause
      EquipmentSlot
      FluidType
      GameMode
      GameRule
      GraphicsMode
      HudElement
      HudVisibility
      InputButton
      InputMode
      InputPermissionCategory
      ItemComponentTypes
      ItemLockMode
      LiquidType
      MemoryTier
      MoonPhase
      NamespaceNameErrorReason
      ObjectiveSortOrder
      PaletteColor
      PlatformType
      ScoreboardIdentityType
      ScriptEventSource
      SignSide
      StructureAnimationMode
      StructureMirrorAxis
      StructureRotation
      StructureSaveMode
      TimeOfDay
      TintMethod
      WatchdogTerminateReason
      WeatherType

      Classes

      AimAssistCategory
      AimAssistCategorySettings
      AimAssistPreset
      AimAssistPresetSettings
      AimAssistRegistry
      BiomeType
      BiomeTypes
      Block
      BlockComponent
      BlockComponentEntityFallOnEvent
      BlockComponentOnPlaceEvent
      BlockComponentPlayerDestroyEvent
      BlockComponentPlayerInteractEvent
      BlockComponentPlayerPlaceBeforeEvent
      BlockComponentRandomTickEvent
      BlockComponentRegistry
      BlockComponentStepOffEvent
      BlockComponentStepOnEvent
      BlockComponentTickEvent
      BlockCustomComponentAlreadyRegisteredError
      BlockCustomComponentReloadNewComponentError
      BlockCustomComponentReloadNewEventError
      BlockCustomComponentReloadVersionError
      BlockDestructionParticlesComponent
      BlockEvent
      BlockExplodeAfterEvent
      BlockExplodeAfterEventSignal
      BlockFluidContainerComponent
      BlockInventoryComponent
      BlockLocationIterator
      BlockMapColorComponent
      BlockPermutation
      BlockPistonComponent
      BlockRecordPlayerComponent
      BlockSignComponent
      BlockStates
      BlockStateType
      BlockType
      BlockTypes
      BlockVolume
      BlockVolumeBase
      BoundingBoxUtils
      ButtonPushAfterEvent
      ButtonPushAfterEventSignal
      Camera
      ChatSendAfterEvent
      ChatSendAfterEventSignal
      ChatSendBeforeEvent
      ChatSendBeforeEventSignal
      ClientSystemInfo
      CommandError
      CommandResult
      Component
      CompoundBlockVolume
      Container
      ContainerSlot
      CustomComponentInvalidRegistryError
      CustomComponentNameError
      DataDrivenEntityTriggerAfterEvent
      DataDrivenEntityTriggerAfterEventSignal
      Dimension
      DimensionType
      DimensionTypes
      Effect
      EffectAddAfterEvent
      EffectAddAfterEventSignal
      EffectAddBeforeEvent
      EffectAddBeforeEventSignal
      EffectType
      EffectTypes
      EnchantmentLevelOutOfBoundsError
      EnchantmentType
      EnchantmentTypeNotCompatibleError
      EnchantmentTypes
      EnchantmentTypeUnknownIdError
      Entity
      EntityAddRiderComponent
      EntityAgeableComponent
      EntityAttributeComponent
      EntityBaseMovementComponent
      EntityBreathableComponent
      EntityCanClimbComponent
      EntityCanFlyComponent
      EntityCanPowerJumpComponent
      EntityColor2Component
      EntityColorComponent
      EntityComponent
      EntityDefinitionFeedItem
      EntityDieAfterEvent
      EntityDieAfterEventSignal
      EntityEquippableComponent
      EntityFireImmuneComponent
      EntityFloatsInLiquidComponent
      EntityFlyingSpeedComponent
      EntityFrictionModifierComponent
      EntityGroundOffsetComponent
      EntityHealableComponent
      EntityHealthChangedAfterEvent
      EntityHealthChangedAfterEventSignal
      EntityHealthComponent
      EntityHitBlockAfterEvent
      EntityHitBlockAfterEventSignal
      EntityHitEntityAfterEvent
      EntityHitEntityAfterEventSignal
      EntityHurtAfterEvent
      EntityHurtAfterEventSignal
      EntityInventoryComponent
      EntityIsBabyComponent
      EntityIsChargedComponent
      EntityIsChestedComponent
      EntityIsDyeableComponent
      EntityIsHiddenWhenInvisibleComponent
      EntityIsIgnitedComponent
      EntityIsIllagerCaptainComponent
      EntityIsSaddledComponent
      EntityIsShakingComponent
      EntityIsShearedComponent
      EntityIsStackableComponent
      EntityIsStunnedComponent
      EntityIsTamedComponent
      EntityItemComponent
      EntityIterator
      EntityLavaMovementComponent
      EntityLeashableComponent
      EntityLoadAfterEvent
      EntityLoadAfterEventSignal
      EntityMarkVariantComponent
      EntityMovementAmphibiousComponent
      EntityMovementBasicComponent
      EntityMovementComponent
      EntityMovementFlyComponent
      EntityMovementGenericComponent
      EntityMovementGlideComponent
      EntityMovementHoverComponent
      EntityMovementJumpComponent
      EntityMovementSkipComponent
      EntityMovementSwayComponent
      EntityNavigationClimbComponent
      EntityNavigationComponent
      EntityNavigationFloatComponent
      EntityNavigationFlyComponent
      EntityNavigationGenericComponent
      EntityNavigationHoverComponent
      EntityNavigationWalkComponent
      EntityNpcComponent
      EntityOnFireComponent
      EntityProjectileComponent
      EntityPushThroughComponent
      EntityRemoveAfterEvent
      EntityRemoveAfterEventSignal
      EntityRemoveBeforeEvent
      EntityRemoveBeforeEventSignal
      EntityRideableComponent
      EntityRidingComponent
      EntityScaleComponent
      EntitySkinIdComponent
      EntitySpawnAfterEvent
      EntitySpawnAfterEventSignal
      EntityStrengthComponent
      EntityTameableComponent
      EntityTameMountComponent
      EntityType
      EntityTypeFamilyComponent
      EntityTypeIterator
      EntityTypes
      EntityUnderwaterMovementComponent
      EntityVariantComponent
      EntityWantsJockeyComponent
      ExplosionAfterEvent
      ExplosionAfterEventSignal
      ExplosionBeforeEvent
      ExplosionBeforeEventSignal
      FeedItem
      FeedItemEffect
      FilterGroup
      FluidContainer
      GameRuleChangeAfterEvent
      GameRuleChangeAfterEventSignal
      GameRules
      InputInfo
      InvalidContainerSlotError
      InvalidEntityError
      InvalidIteratorError
      InvalidStructureError
      ItemCompleteUseAfterEvent
      ItemCompleteUseAfterEventSignal
      ItemCompleteUseEvent
      ItemComponent
      ItemComponentBeforeDurabilityDamageEvent
      ItemComponentCompleteUseEvent
      ItemComponentConsumeEvent
      ItemComponentHitEntityEvent
      ItemComponentMineBlockEvent
      ItemComponentRegistry
      ItemComponentUseEvent
      ItemComponentUseOnEvent
      ItemCompostableComponent
      ItemCooldownComponent
      ItemCustomComponentAlreadyRegisteredError
      ItemCustomComponentReloadNewComponentError
      ItemCustomComponentReloadNewEventError
      ItemCustomComponentReloadVersionError
      ItemDurabilityComponent
      ItemDyeableComponent
      ItemEnchantableComponent
      ItemFoodComponent
      ItemPotionComponent
      ItemReleaseUseAfterEvent
      ItemReleaseUseAfterEventSignal
      ItemStack
      ItemStartUseAfterEvent
      ItemStartUseAfterEventSignal
      ItemStartUseOnAfterEvent
      ItemStartUseOnAfterEventSignal
      ItemStopUseAfterEvent
      ItemStopUseAfterEventSignal
      ItemStopUseOnAfterEvent
      ItemStopUseOnAfterEventSignal
      ItemType
      ItemTypes
      ItemUseAfterEvent
      ItemUseAfterEventSignal
      ItemUseBeforeEvent
      ItemUseBeforeEventSignal
      ItemUseOnEvent
      LeverActionAfterEvent
      LeverActionAfterEventSignal
      ListBlockVolume
      LocationInUnloadedChunkError
      LocationOutOfWorldBoundariesError
      MessageReceiveAfterEvent
      MolangVariableMap
      NamespaceNameError
      PistonActivateAfterEvent
      PistonActivateAfterEventSignal
      PlaceJigsawError
      Player
      PlayerAimAssist
      PlayerBreakBlockAfterEvent
      PlayerBreakBlockAfterEventSignal
      PlayerBreakBlockBeforeEvent
      PlayerBreakBlockBeforeEventSignal
      PlayerButtonInputAfterEvent
      PlayerButtonInputAfterEventSignal
      PlayerCursorInventoryComponent
      PlayerDimensionChangeAfterEvent
      PlayerDimensionChangeAfterEventSignal
      PlayerEmoteAfterEvent
      PlayerEmoteAfterEventSignal
      PlayerGameModeChangeAfterEvent
      PlayerGameModeChangeAfterEventSignal
      PlayerGameModeChangeBeforeEvent
      PlayerGameModeChangeBeforeEventSignal
      PlayerInputModeChangeAfterEvent
      PlayerInputModeChangeAfterEventSignal
      PlayerInputPermissionCategoryChangeAfterEvent
      PlayerInputPermissionCategoryChangeAfterEventSignal
      PlayerInputPermissions
      PlayerInteractWithBlockAfterEvent
      PlayerInteractWithBlockAfterEventSignal
      PlayerInteractWithBlockBeforeEvent
      PlayerInteractWithBlockBeforeEventSignal
      PlayerInteractWithEntityAfterEvent
      PlayerInteractWithEntityAfterEventSignal
      PlayerInteractWithEntityBeforeEvent
      PlayerInteractWithEntityBeforeEventSignal
      PlayerIterator
      PlayerJoinAfterEvent
      PlayerJoinAfterEventSignal
      PlayerLeaveAfterEvent
      PlayerLeaveAfterEventSignal
      PlayerLeaveBeforeEvent
      PlayerLeaveBeforeEventSignal
      PlayerPlaceBlockAfterEvent
      PlayerPlaceBlockAfterEventSignal
      PlayerPlaceBlockBeforeEvent
      PlayerPlaceBlockBeforeEventSignal
      PlayerSpawnAfterEvent
      PlayerSpawnAfterEventSignal
      PotionEffectType
      PotionLiquidType
      PotionModifierType
      Potions
      PressurePlatePopAfterEvent
      PressurePlatePopAfterEventSignal
      PressurePlatePushAfterEvent
      PressurePlatePushAfterEventSignal
      ProjectileHitBlockAfterEvent
      ProjectileHitBlockAfterEventSignal
      ProjectileHitEntityAfterEvent
      ProjectileHitEntityAfterEventSignal
      Scoreboard
      ScoreboardIdentity
      ScoreboardObjective
      ScoreboardScoreInfo
      ScreenDisplay
      ScriptEventCommandMessageAfterEvent
      ScriptEventCommandMessageAfterEventSignal
      Seat
      ServerMessageAfterEventSignal
      ShutdownBeforeEventSignal
      ShutdownEvent
      StartupBeforeEventSignal
      StartupEvent
      Structure
      StructureManager
      System
      SystemAfterEvents
      SystemBeforeEvents
      SystemInfo
      TargetBlockHitAfterEvent
      TargetBlockHitAfterEventSignal
      Trigger
      TripWireTripAfterEvent
      TripWireTripAfterEventSignal
      UnloadedChunksError
      WatchdogTerminateBeforeEvent
      WatchdogTerminateBeforeEventSignal
      WeatherChangeAfterEvent
      WeatherChangeAfterEventSignal
      WeatherChangeBeforeEvent
      WeatherChangeBeforeEventSignal
      World
      WorldAfterEvents
      WorldBeforeEvents
      WorldLoadAfterEvent
      WorldLoadAfterEventSignal

      Interfaces

      BiomeSearchOptions
      BlockCustomComponent
      BlockEventOptions
      BlockFillOptions
      BlockFilter
      BlockHitInformation
      BlockRaycastHit
      BlockRaycastOptions
      BoundingBox
      CameraDefaultOptions
      CameraEaseOptions
      CameraFadeOptions
      CameraFadeTimeOptions
      CameraFixedBoomOptions
      CameraSetFacingOptions
      CameraSetLocationOptions
      CameraSetPosOptions
      CameraSetRotOptions
      CameraTargetOptions
      CompoundBlockVolumeItem
      DefinitionModifier
      DimensionLocation
      Enchantment
      EntityApplyDamageByProjectileOptions
      EntityApplyDamageOptions
      EntityDamageSource
      EntityDataDrivenTriggerEventOptions
      EntityEffectOptions
      EntityEventOptions
      EntityFilter
      EntityHitInformation
      EntityQueryOptions
      EntityQueryPropertyOptions
      EntityQueryScoreOptions
      EntityRaycastHit
      EntityRaycastOptions
      EqualsComparison
      ExplosionOptions
      GreaterThanComparison
      GreaterThanOrEqualsComparison
      InputEventOptions
      ItemCustomComponent
      JigsawPlaceOptions
      JigsawStructurePlaceOptions
      LessThanComparison
      LessThanOrEqualsComparison
      MusicOptions
      NotEqualsComparison
      PlayAnimationOptions
      PlayerAimAssistSettings
      PlayerSoundOptions
      PotionOptions
      ProjectileShootOptions
      RangeComparison
      RawMessage
      RawMessageScore
      RawText
      RGB
      RGBA
      ScoreboardObjectiveDisplayOptions
      ScriptEventMessageFilterOptions
      SpawnEntityOptions
      StructureCreateOptions
      StructurePlaceOptions
      TeleportOptions
      TitleDisplayOptions
      Vector2
      Vector3
      VectorXZ
      WorldSoundOptions

      Type Aliases

      BlockComponentReturnType
      BlockComponentTypeMap
      BlockStateArg
      EntityComponentReturnType
      EntityComponentTypeMap
      ItemComponentReturnType
      ItemComponentTypeMap

      Variables

      HudElementsCount
      HudVisibilityCount
      MoonPhaseCount
      system
      TicksPerDay
      TicksPerSecond
      world
      MMNEPVFCICPMFPCPTTAAATR