Dimension
¶
文档版本:1.21.60.21
Dimension
类。script_api.mojang-minecraft.dimension.description
属性¶
id
id
:string
- script_api.mojang-minecraft.dimension.id.description
方法¶
createExplosion
script_api.mojang-minecraft.dimension.createexplosion.description
location
:Location
- script_api.mojang-minecraft.dimension.createexplosion.location.description
radius
:float
- script_api.mojang-minecraft.dimension.createexplosion.radius.description
explosionOptions
:ExplosionOptions
- script_api.mojang-minecraft.dimension.createexplosion.explosionoptions.description
- 返回值:
void
- script_api.mojang-minecraft.dimension.createexplosion.return
getBlock
script_api.mojang-minecraft.dimension.getblock.description
location
:BlockLocation
- script_api.mojang-minecraft.dimension.getblock.location.description
- 返回值:
Block
- script_api.mojang-minecraft.dimension.getblock.return
getBlockFromRay
script_api.mojang-minecraft.dimension.getblockfromray.description
getBlockFromRay(location: Location, direction: Vector, options?: BlockRaycastOptions): Block | undefined
location
:Location
- script_api.mojang-minecraft.dimension.getblockfromray.location.description
direction
:Vector
- script_api.mojang-minecraft.dimension.getblockfromray.direction.description
options
?:BlockRaycastOptions
=null
- script_api.mojang-minecraft.dimension.getblockfromray.options.description
- 返回值:
Block
|undefined
- script_api.mojang-minecraft.dimension.getblockfromray.return
getEntities
script_api.mojang-minecraft.dimension.getentities.description
options
?:EntityQueryOptions
=null
- script_api.mojang-minecraft.dimension.getentities.options.description
- 返回值:
EntityIterator
- script_api.mojang-minecraft.dimension.getentities.return
getEntitiesAtBlockLocation
script_api.mojang-minecraft.dimension.getentitiesatblocklocation.description
location
:BlockLocation
- script_api.mojang-minecraft.dimension.getentitiesatblocklocation.location.description
- 返回值:
Entity[]
- script_api.mojang-minecraft.dimension.getentitiesatblocklocation.return
getEntitiesFromRay
script_api.mojang-minecraft.dimension.getentitiesfromray.description
location
:Location
- script_api.mojang-minecraft.dimension.getentitiesfromray.location.description
direction
:Vector
- script_api.mojang-minecraft.dimension.getentitiesfromray.direction.description
options
?:EntityRaycastOptions
=null
- script_api.mojang-minecraft.dimension.getentitiesfromray.options.description
- 返回值:
Entity[]
- script_api.mojang-minecraft.dimension.getentitiesfromray.return
getPlayers
script_api.mojang-minecraft.dimension.getplayers.description
options
?:EntityQueryOptions
=null
- script_api.mojang-minecraft.dimension.getplayers.options.description
- 返回值:
PlayerIterator
- script_api.mojang-minecraft.dimension.getplayers.return
isEmpty
script_api.mojang-minecraft.dimension.isempty.description
location
:BlockLocation
- script_api.mojang-minecraft.dimension.isempty.location.description
- 返回值:
boolean
- script_api.mojang-minecraft.dimension.isempty.return
runCommand
script_api.mojang-minecraft.dimension.runcommand.description
commandString
:string
- script_api.mojang-minecraft.dimension.runcommand.commandstring.description
- 返回值:
any
- script_api.mojang-minecraft.dimension.runcommand.return
spawnEntity
script_api.mojang-minecraft.dimension.spawnentity.description
identifier
:string
- script_api.mojang-minecraft.dimension.spawnentity.identifier.description
location
:BlockLocation
|Location
- script_api.mojang-minecraft.dimension.spawnentity.location.description
- 返回值:
Entity
- script_api.mojang-minecraft.dimension.spawnentity.return
spawnItem
script_api.mojang-minecraft.dimension.spawnitem.description
item
:ItemStack
- script_api.mojang-minecraft.dimension.spawnitem.item.description
location
:BlockLocation
|Location
- script_api.mojang-minecraft.dimension.spawnitem.location.description
- 返回值:
Entity
- script_api.mojang-minecraft.dimension.spawnitem.return
spawnParticle
script_api.mojang-minecraft.dimension.spawnparticle.description
effectName
:string
- script_api.mojang-minecraft.dimension.spawnparticle.effectname.description
location
:Location
- script_api.mojang-minecraft.dimension.spawnparticle.location.description
molangVariables
:MolangVariableMap
- script_api.mojang-minecraft.dimension.spawnparticle.molangvariables.description
- 返回值:
void
- script_api.mojang-minecraft.dimension.spawnparticle.return