Dimension
¶
文档版本:1.21.60.21
Dimension
类。script_api.minecraft/server.dimension.description
属性¶
heightRange
heightRange
:NumberRange
- script_api.minecraft/server.dimension.heightrange.description
id
id
:string
- script_api.minecraft/server.dimension.id.description
方法¶
containsBlock
script_api.minecraft/server.dimension.containsblock.description
volume
:BlockVolumeBase
- script_api.minecraft/server.dimension.containsblock.volume.description
filter
:BlockFilter
- script_api.minecraft/server.dimension.containsblock.filter.description
allowUnloadedChunks
:boolean
=False
- script_api.minecraft/server.dimension.containsblock.allowunloadedchunks.description
- 返回值:
boolean
- script_api.minecraft/server.dimension.containsblock.return
createExplosion
script_api.minecraft/server.dimension.createexplosion.description
location
:Vector3
- script_api.minecraft/server.dimension.createexplosion.location.description
radius
:float
∈[0.0
,1000.0
]- script_api.minecraft/server.dimension.createexplosion.radius.description
explosionOptions
?:ExplosionOptions
=null
- script_api.minecraft/server.dimension.createexplosion.explosionoptions.description
- 返回值:
boolean
- script_api.minecraft/server.dimension.createexplosion.return
fillBlocks
script_api.minecraft/server.dimension.fillblocks.description
fillBlocks(volume: BlockVolumeBase | CompoundBlockVolume, block: BlockPermutation | BlockType | string, options?: BlockFillOptions): ListBlockVolume
volume
:BlockVolumeBase
|CompoundBlockVolume
- script_api.minecraft/server.dimension.fillblocks.volume.description
block
:BlockPermutation
|BlockType
|string
- script_api.minecraft/server.dimension.fillblocks.block.description
options
?:BlockFillOptions
=null
- script_api.minecraft/server.dimension.fillblocks.options.description
- 返回值:
ListBlockVolume
- script_api.minecraft/server.dimension.fillblocks.return
findClosestBiome
script_api.minecraft/server.dimension.findclosestbiome.description
findClosestBiome(pos: Vector3, biomeToFind: BiomeType | string, options?: BiomeSearchOptions): Vector3 | undefined
biomeToFind
:BiomeType
|string
- script_api.minecraft/server.dimension.findclosestbiome.biometofind.description
options
?:BiomeSearchOptions
=null
- script_api.minecraft/server.dimension.findclosestbiome.options.description
- 返回值:
Vector3
|undefined
- script_api.minecraft/server.dimension.findclosestbiome.return
getBlock
script_api.minecraft/server.dimension.getblock.description
location
:Vector3
- script_api.minecraft/server.dimension.getblock.location.description
- 返回值:
Block
|undefined
- script_api.minecraft/server.dimension.getblock.return
getBlockAbove
script_api.minecraft/server.dimension.getblockabove.description
location
:Vector3
- script_api.minecraft/server.dimension.getblockabove.location.description
options
?:BlockRaycastOptions
=null
- script_api.minecraft/server.dimension.getblockabove.options.description
- 返回值:
Block
|undefined
- script_api.minecraft/server.dimension.getblockabove.return
getBlockBelow
script_api.minecraft/server.dimension.getblockbelow.description
location
:Vector3
- script_api.minecraft/server.dimension.getblockbelow.location.description
options
?:BlockRaycastOptions
=null
- script_api.minecraft/server.dimension.getblockbelow.options.description
- 返回值:
Block
|undefined
- script_api.minecraft/server.dimension.getblockbelow.return
getBlockFromRay
script_api.minecraft/server.dimension.getblockfromray.description
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined
location
:Vector3
- script_api.minecraft/server.dimension.getblockfromray.location.description
direction
:Vector3
- script_api.minecraft/server.dimension.getblockfromray.direction.description
options
?:BlockRaycastOptions
=null
- script_api.minecraft/server.dimension.getblockfromray.options.description
- 返回值:
BlockRaycastHit
|undefined
- script_api.minecraft/server.dimension.getblockfromray.return
getBlocks
script_api.minecraft/server.dimension.getblocks.description
getBlocks(volume: BlockVolumeBase, filter: BlockFilter, allowUnloadedChunks: boolean): ListBlockVolume
volume
:BlockVolumeBase
- script_api.minecraft/server.dimension.getblocks.volume.description
filter
:BlockFilter
- script_api.minecraft/server.dimension.getblocks.filter.description
allowUnloadedChunks
:boolean
=False
- script_api.minecraft/server.dimension.getblocks.allowunloadedchunks.description
- 返回值:
ListBlockVolume
- script_api.minecraft/server.dimension.getblocks.return
getEntities
script_api.minecraft/server.dimension.getentities.description
options
?:EntityQueryOptions
=null
- script_api.minecraft/server.dimension.getentities.options.description
- 返回值:
Entity[]
- script_api.minecraft/server.dimension.getentities.return
getEntitiesAtBlockLocation
script_api.minecraft/server.dimension.getentitiesatblocklocation.description
location
:Vector3
- script_api.minecraft/server.dimension.getentitiesatblocklocation.location.description
- 返回值:
Entity[]
- script_api.minecraft/server.dimension.getentitiesatblocklocation.return
getEntitiesFromRay
script_api.minecraft/server.dimension.getentitiesfromray.description
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[]
location
:Vector3
- script_api.minecraft/server.dimension.getentitiesfromray.location.description
direction
:Vector3
- script_api.minecraft/server.dimension.getentitiesfromray.direction.description
options
?:EntityRaycastOptions
=null
- script_api.minecraft/server.dimension.getentitiesfromray.options.description
- 返回值:
EntityRaycastHit[]
- script_api.minecraft/server.dimension.getentitiesfromray.return
getPlayers
script_api.minecraft/server.dimension.getplayers.description
options
?:EntityQueryOptions
=null
- script_api.minecraft/server.dimension.getplayers.options.description
- 返回值:
Player[]
- script_api.minecraft/server.dimension.getplayers.return
getTopmostBlock
script_api.minecraft/server.dimension.gettopmostblock.description
locationXZ
:VectorXZ
- script_api.minecraft/server.dimension.gettopmostblock.locationxz.description
minHeight
?:float
=null
- script_api.minecraft/server.dimension.gettopmostblock.minheight.description
- 返回值:
Block
|undefined
- script_api.minecraft/server.dimension.gettopmostblock.return
getWeather
script_api.minecraft/server.dimension.getweather.description
- 返回值:
WeatherType
- script_api.minecraft/server.dimension.getweather.return
playSound
script_api.minecraft/server.dimension.playsound.description
soundId
:string
- script_api.minecraft/server.dimension.playsound.soundid.description
location
:Vector3
- script_api.minecraft/server.dimension.playsound.location.description
soundOptions
?:WorldSoundOptions
=null
- script_api.minecraft/server.dimension.playsound.soundoptions.description
- 返回值:
void
- script_api.minecraft/server.dimension.playsound.return
runCommand
script_api.minecraft/server.dimension.runcommand.description
commandString
:string
- script_api.minecraft/server.dimension.runcommand.commandstring.description
- 返回值:
CommandResult
- script_api.minecraft/server.dimension.runcommand.return
runCommandAsync
script_api.minecraft/server.dimension.runcommandasync.description
commandString
:string
- script_api.minecraft/server.dimension.runcommandasync.commandstring.description
- 返回值:
Promise<CommandResult>
- script_api.minecraft/server.dimension.runcommandasync.return
setBlockPermutation
script_api.minecraft/server.dimension.setblockpermutation.description
location
:Vector3
- script_api.minecraft/server.dimension.setblockpermutation.location.description
permutation
:BlockPermutation
- script_api.minecraft/server.dimension.setblockpermutation.permutation.description
- 返回值:
void
- script_api.minecraft/server.dimension.setblockpermutation.return
setBlockType
script_api.minecraft/server.dimension.setblocktype.description
location
:Vector3
- script_api.minecraft/server.dimension.setblocktype.location.description
blockType
:BlockType
|string
- script_api.minecraft/server.dimension.setblocktype.blocktype.description
- 返回值:
void
- script_api.minecraft/server.dimension.setblocktype.return
setWeather
script_api.minecraft/server.dimension.setweather.description
weatherType
:WeatherType
- script_api.minecraft/server.dimension.setweather.weathertype.description
duration
?:int32
=null
∈[1
,1000000
]- script_api.minecraft/server.dimension.setweather.duration.description
- 返回值:
void
- script_api.minecraft/server.dimension.setweather.return
spawnEntity
script_api.minecraft/server.dimension.spawnentity.description
identifier
:string
- script_api.minecraft/server.dimension.spawnentity.identifier.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnentity.location.description
options
?:SpawnEntityOptions
=null
- script_api.minecraft/server.dimension.spawnentity.options.description
- 返回值:
Entity
- script_api.minecraft/server.dimension.spawnentity.return
spawnItem
script_api.minecraft/server.dimension.spawnitem.description
itemStack
:ItemStack
- script_api.minecraft/server.dimension.spawnitem.itemstack.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnitem.location.description
- 返回值:
Entity
- script_api.minecraft/server.dimension.spawnitem.return
spawnParticle
script_api.minecraft/server.dimension.spawnparticle.description
effectName
:string
- script_api.minecraft/server.dimension.spawnparticle.effectname.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnparticle.location.description
molangVariables
?:MolangVariableMap
=null
- script_api.minecraft/server.dimension.spawnparticle.molangvariables.description
- 返回值:
void
- script_api.minecraft/server.dimension.spawnparticle.return