# JavaScript API — Preview fixture (not supported)

> Agent-readable JavaScript API pages in the website's generated sidebar order.

## Overview

- [JavaScript API](/minecraft/preview/api/javascript/index.md)

## Classes

- [BlockPermutation](/minecraft/preview/api/javascript/classes/BlockPermutation.md): An immutable detached block type and its complete registered state values.
- [BlockStates](/minecraft/preview/api/javascript/classes/BlockStates.md): Bounded catalog of Java Edition block property definitions.
- [BlockTypes](/minecraft/preview/api/javascript/classes/BlockTypes.md): Bounded catalog of registered block types.
- [BlockVolume](/minecraft/preview/api/javascript/classes/BlockVolume.md): An immutable inclusive cuboid of block positions. A volume from (0,0,0) to (0,0,0) contains one block.
- [ItemStack](/minecraft/preview/api/javascript/classes/ItemStack.md): A detached, mutable item stack value owned by QuestScript.

## Interfaces

- [Block](/minecraft/preview/api/javascript/interfaces/Block.md): A live block at a fixed location in a dimension.
- [BlockFillOperation](/minecraft/preview/api/javascript/interfaces/BlockFillOperation.md): A cooperative block-fill operation.
- [BlockStateType](/minecraft/preview/api/javascript/interfaces/BlockStateType.md): An immutable QuestScript-owned block-state definition.
- [BlockType](/minecraft/preview/api/javascript/interfaces/BlockType.md): An immutable QuestScript-owned block type value.
- [BlockVector3](/minecraft/preview/api/javascript/interfaces/BlockVector3.md): A mutable numeric vector produced from an integer block position.
- [BrokenBlockPermutation](/minecraft/preview/api/javascript/interfaces/BrokenBlockPermutation.md): Block permutation captured for a block-break event.
- [BulkOperation](/minecraft/preview/api/javascript/interfaces/BulkOperation.md): Cancelable Script-owned handle for cooperative bounded work.
- [BulkOperationCompletion](/minecraft/preview/api/javascript/interfaces/BulkOperationCompletion.md): Immutable terminal outcome for one bounded bulk operation.
- [BulkOperationProgress](/minecraft/preview/api/javascript/interfaces/BulkOperationProgress.md): Immutable progress snapshot for one bounded bulk operation.
- [CapabilityDeniedError](/minecraft/preview/api/javascript/interfaces/CapabilityDeniedError.md): Stable catchable error raised when a Script operation lacks effective capability authority.
- [Dimension](/minecraft/preview/api/javascript/interfaces/Dimension.md): A live Minecraft dimension exposed through a QuestScript-owned facade.
- [Entity](/minecraft/preview/api/javascript/interfaces/Entity.md): A live Minecraft entity exposed through a QuestScript-owned facade.
- [EntityHurtBeforeEvent](/minecraft/preview/api/javascript/interfaces/EntityHurtBeforeEvent.md): Cancelable event fired before damage is applied to an entity.
- [EntityHurtBeforeEventSignal](/minecraft/preview/api/javascript/interfaces/EntityHurtBeforeEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [Equipment](/minecraft/preview/api/javascript/interfaces/Equipment.md): Mutable equipment slots of one player.
- [FillBlocksResult](/minecraft/preview/api/javascript/interfaces/FillBlocksResult.md): Temporary bounded result for synchronous block fill until ListBlockVolume is implemented.
- [InventoryLease](/minecraft/preview/api/javascript/interfaces/InventoryLease.md): Recoverable ownership of one player's temporary inventory replacement.
- [InventoryLeaseRegistry](/minecraft/preview/api/javascript/interfaces/InventoryLeaseRegistry.md): Registry of unfinished inventory leases owned by the current Script.
- [InventorySnapshot](/minecraft/preview/api/javascript/interfaces/InventorySnapshot.md): Detached player inventory state captured by PlayerInventory.capture.
- [LegacyBlockResult](/minecraft/preview/api/javascript/interfaces/LegacyBlockResult.md): Deprecated shape returned by minecraft.getBlock.
- [LegacyGameRules](/minecraft/preview/api/javascript/interfaces/LegacyGameRules.md)
- [Minecraft](/minecraft/preview/api/javascript/interfaces/Minecraft.md): Deprecated pre-release Minecraft API object.
- [Player](/minecraft/preview/api/javascript/interfaces/Player.md): A live server player with player-specific inventory and messaging APIs.
- [PlayerBreakBlockAfterEvent](/minecraft/preview/api/javascript/interfaces/PlayerBreakBlockAfterEvent.md): Event fired after a player successfully breaks a block.
- [PlayerBreakBlockAfterEventSignal](/minecraft/preview/api/javascript/interfaces/PlayerBreakBlockAfterEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [PlayerBreakBlockBeforeEvent](/minecraft/preview/api/javascript/interfaces/PlayerBreakBlockBeforeEvent.md): Cancelable event fired before a player breaks a block.
- [PlayerBreakBlockBeforeEventSignal](/minecraft/preview/api/javascript/interfaces/PlayerBreakBlockBeforeEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [PlayerInventory](/minecraft/preview/api/javascript/interfaces/PlayerInventory.md): Mutable main inventory of one player.
- [PlayerJoinAfterEvent](/minecraft/preview/api/javascript/interfaces/PlayerJoinAfterEvent.md): Event fired after a player becomes available to the server.
- [PlayerJoinAfterEventSignal](/minecraft/preview/api/javascript/interfaces/PlayerJoinAfterEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [PlayerLeaveAfterEvent](/minecraft/preview/api/javascript/interfaces/PlayerLeaveAfterEvent.md): Event fired after a player leaves the server.
- [PlayerLeaveAfterEventSignal](/minecraft/preview/api/javascript/interfaces/PlayerLeaveAfterEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [QuotaExceededError](/minecraft/preview/api/javascript/interfaces/QuotaExceededError.md): Stable catchable error raised before a Script operation exceeds its effective resource quota.
- [RunCommandResult](/minecraft/preview/api/javascript/interfaces/RunCommandResult.md): Result of an administrative command execution.
- [ScriptCapabilities](/minecraft/preview/api/javascript/interfaces/ScriptCapabilities.md): Read-only effective capability view for the current Script Run.
- [ScriptEventReceiveEvent](/minecraft/preview/api/javascript/interfaces/ScriptEventReceiveEvent.md): Data delivered for one received /scriptevent message.
- [ScriptEventReceiveEventSignal](/minecraft/preview/api/javascript/interfaces/ScriptEventReceiveEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [ScriptExports](/minecraft/preview/api/javascript/interfaces/ScriptExports.md): Frozen callable registry published by one exact loaded Script Run.
- [ScriptHost](/minecraft/preview/api/javascript/interfaces/ScriptHost.md): The QuestScript-owned global used to publish cross-Script callables.
- [ScriptLimits](/minecraft/preview/api/javascript/interfaces/ScriptLimits.md): Read-only effective security-limit view for the current Script Run.
- [ScriptStorage](/minecraft/preview/api/javascript/interfaces/ScriptStorage.md): Persistent storage bounded by questscript:maxstoragekeys, maxstoragekeybytes, maxstoragestringbytes, maxstoragevaluedepth, maxstoragecollectionentries, maxstoragevaluebytes, and maxstoragebytes.
- [ScriptUnloadBeforeEvent](/minecraft/preview/api/javascript/interfaces/ScriptUnloadBeforeEvent.md): Data supplied to the final synchronous Script unload event.
- [ScriptUnloadBeforeEventSignal](/minecraft/preview/api/javascript/interfaces/ScriptUnloadBeforeEventSignal.md): Adds a handler. Re-registering the same guest callable is rejected. The registration consumes questscript:maxeventsubscriptions and throws QuotaExceededError before publication when full.
- [System](/minecraft/preview/api/javascript/interfaces/System.md): Scheduler in QuestScript's final server-thread scripting phase.
- [SystemAfterEvents](/minecraft/preview/api/javascript/interfaces/SystemAfterEvents.md): Observational system event streams.
- [SystemBeforeEvents](/minecraft/preview/api/javascript/interfaces/SystemBeforeEvents.md): Synchronous lifecycle events fired before teardown completes.
- [TriggerEntityEvent](/minecraft/preview/api/javascript/interfaces/TriggerEntityEvent.md): Player membership change emitted by a trigger volume.
- [TriggerSignal](/minecraft/preview/api/javascript/interfaces/TriggerSignal.md): Subscription surface for one trigger-volume event kind.
- [TriggerTickEvent](/minecraft/preview/api/javascript/interfaces/TriggerTickEvent.md): Periodic membership snapshot emitted by a trigger volume.
- [TriggerVolume](/minecraft/preview/api/javascript/interfaces/TriggerVolume.md): A Script-Owned, tick-sampled trigger over an inclusive block volume.
- [TriggerVolumeAfterEvents](/minecraft/preview/api/javascript/interfaces/TriggerVolumeAfterEvents.md): Event streams emitted by a trigger volume.
- [Vector3](/minecraft/preview/api/javascript/interfaces/Vector3.md): A three-dimensional coordinate or direction.
- [World](/minecraft/preview/api/javascript/interfaces/World.md): Main QuestScript-owned entry point for world access and Script state.
- [WorldAfterEvents](/minecraft/preview/api/javascript/interfaces/WorldAfterEvents.md): Observational world event streams fired after their actions.
- [WorldBeforeEvents](/minecraft/preview/api/javascript/interfaces/WorldBeforeEvents.md): Synchronous, cancelable world event streams.

## Type Aliases

- [BlockStateValue](/minecraft/preview/api/javascript/type-aliases/BlockStateValue.md): A boolean, integer, or enum-like string stored by a block-state property.
- [DamageCause](/minecraft/preview/api/javascript/type-aliases/DamageCause.md): A normalized cause reported by the current entity-hurt event surface.
- [DataValue](/minecraft/preview/api/javascript/type-aliases/DataValue.md): A non-null value that Script Storage and item data can persist.
- [DimensionInput](/minecraft/preview/api/javascript/type-aliases/DimensionInput.md)
- [EntityOrLocationInput](/minecraft/preview/api/javascript/type-aliases/EntityOrLocationInput.md)
- [EntityQueryOptions](/minecraft/preview/api/javascript/type-aliases/EntityQueryOptions.md): Filters supported by entity and player queries.
- [EquipmentSlot](/minecraft/preview/api/javascript/type-aliases/EquipmentSlot.md): An equipment slot exposed by the QuestScript equipment facade.
- [FillBlocksAsyncOptions](/minecraft/preview/api/javascript/type-aliases/FillBlocksAsyncOptions.md): Limits applied to one cooperative fill operation.
- [FillBlocksOptions](/minecraft/preview/api/javascript/type-aliases/FillBlocksOptions.md): Limits applied to one synchronous fill operation.
- [GameMode](/minecraft/preview/api/javascript/type-aliases/GameMode.md): A player game mode understood by Java Edition.
- [InventoryLeaseOptions](/minecraft/preview/api/javascript/type-aliases/InventoryLeaseOptions.md): Options for a temporary inventory replacement lease.
- [InventoryLeaseState](/minecraft/preview/api/javascript/type-aliases/InventoryLeaseState.md): Lifecycle state of a temporary inventory lease.
- [InventoryLeaseUnloadPolicy](/minecraft/preview/api/javascript/type-aliases/InventoryLeaseUnloadPolicy.md): Action taken for an unfinished inventory lease when its Script unloads.
- [InventoryLoadout](/minecraft/preview/api/javascript/type-aliases/InventoryLoadout.md): Player inventory, equipment, and selected-slot values applied as one loadout.
- [InventorySnapshotOptions](/minecraft/preview/api/javascript/type-aliases/InventorySnapshotOptions.md): Selects optional player state captured in an inventory snapshot.
- [ScriptEventId](/minecraft/preview/api/javascript/type-aliases/ScriptEventId.md): Explicit : Script Event message ID. Its namespace is independent of Script IDs and sender identity.
- [ScriptEventOptions](/minecraft/preview/api/javascript/type-aliases/ScriptEventOptions.md): Filters applied to a Script Event subscription.
- [ScriptEventSource](/minecraft/preview/api/javascript/type-aliases/ScriptEventSource.md)
- [ScriptExportDeprecation](/minecraft/preview/api/javascript/type-aliases/ScriptExportDeprecation.md)
- [ScriptExportOptions](/minecraft/preview/api/javascript/type-aliases/ScriptExportOptions.md): Metadata attached to an explicitly registered Script Export.
- [ScriptUnloadReason](/minecraft/preview/api/javascript/type-aliases/ScriptUnloadReason.md): Reason supplied during one Script Run's synchronous unload phase.
- [TeleportOptions](/minecraft/preview/api/javascript/type-aliases/TeleportOptions.md): Options that control an entity teleport.
- [TriggerVolumeOptions](/minecraft/preview/api/javascript/type-aliases/TriggerVolumeOptions.md): Options used to create a Script-Owned trigger volume.
- [Vector3Dto](/minecraft/preview/api/javascript/type-aliases/Vector3Dto.md)
- [Vector3Like](/minecraft/preview/api/javascript/type-aliases/Vector3Like.md): A vector-shaped object or a three-element [x, y, z] tuple.
- [Vector3Mapping](/minecraft/preview/api/javascript/type-aliases/Vector3Mapping.md): Mapping form of a three-dimensional coordinate.

## Variables

- [importScript](/minecraft/preview/api/javascript/variables/importScript.md): Resolves an already loaded Script and returns its frozen explicit exports. Cached proxies remain bound to that exact Script Run and become invalid after the target unloads, reloads, or is quarantined. Ordinary calls u...
- [minecraft](/minecraft/preview/api/javascript/variables/minecraft.md): Temporary low-level Minecraft API object.
- [script](/minecraft/preview/api/javascript/variables/script.md): Explicit cross-Script export registrar for the current Script Run.
- [system](/minecraft/preview/api/javascript/variables/system.md): Tick scheduler executed in QuestScript's final server-thread scripting phase. Soft admission limits may defer work that has not started. Once admitted, a callback runs until it returns or the independent hard watchdog...
- [world](/minecraft/preview/api/javascript/variables/world.md): Main QuestScript-owned world API for the current Script Run.
