Interface: Dimension
A live Minecraft dimension exposed through a QuestScript-owned facade.
Properties
id
readonlyid:string
Canonical Java Edition dimension identifier.
Methods
fillBlocks()
fillBlocks(
volume,block,options?):FillBlocksResult
Fills an inclusive volume, subject to the bounded-operation limit.
Parameters
volume
block
string
options?
FillBlocksOptions | null
Returns
getBlock()
getBlock(
location):Block
Returns the block at a loaded, valid location.
Parameters
location
Returns
getEntities()
getEntities(
options?): readonlyEntity[]
Returns entities in this dimension matching the supported filters.
Parameters
options?
EntityQueryOptions | null
Returns
readonly Entity[]
getPlayers()
getPlayers(
options?): readonlyPlayer[]
Returns players in this dimension matching the supported filters.
Parameters
options?
EntityQueryOptions | null
Returns
readonly Player[]
runCommand()
runCommand(
command):RunCommandResult
Administrative command execution. The release contract requires an
operator grant of command.execute to this Script.
Known runtime defect: capability enforcement is not implemented yet.
Parameters
command
string
Returns
setBlockType()
setBlockType(
location,typeId):void
Replaces one block with the default state of a block type.
Parameters
location
typeId
string
Returns
void
spawnEntity()
spawnEntity(
typeId,location):Entity
Spawns an entity and returns its live facade.
Parameters
typeId
string
location
Returns
spawnItem()
spawnItem(
itemStack,location):Entity
Spawns a detached stack as an item entity.