World
¶
文档版本:1.21.60.21
World
类。script_api.mojang-minecraft.world.description
属性¶
events
events
:Events
- script_api.mojang-minecraft.world.events.description
scoreboard
scoreboard
:Scoreboard
- script_api.mojang-minecraft.world.scoreboard.description
方法¶
broadcastClientMessage
script_api.mojang-minecraft.world.broadcastclientmessage.description
id
:string
- script_api.mojang-minecraft.world.broadcastclientmessage.id.description
value
:string
- script_api.mojang-minecraft.world.broadcastclientmessage.value.description
- 返回值:
void
- script_api.mojang-minecraft.world.broadcastclientmessage.return
getDimension
script_api.mojang-minecraft.world.getdimension.description
dimensionId
:string
- script_api.mojang-minecraft.world.getdimension.dimensionid.description
- 返回值:
Dimension
- script_api.mojang-minecraft.world.getdimension.return
getDynamicProperty
script_api.mojang-minecraft.world.getdynamicproperty.description
identifier
:string
- script_api.mojang-minecraft.world.getdynamicproperty.identifier.description
- 返回值:
boolean
|double
|float
|Location
|string
|undefined
- script_api.mojang-minecraft.world.getdynamicproperty.return
getPlayers
script_api.mojang-minecraft.world.getplayers.description
options
?:EntityQueryOptions
=null
- script_api.mojang-minecraft.world.getplayers.options.description
- 返回值:
PlayerIterator
- script_api.mojang-minecraft.world.getplayers.return
playMusic
script_api.mojang-minecraft.world.playmusic.description
trackId
:string
- script_api.mojang-minecraft.world.playmusic.trackid.description
musicOptions
?:MusicOptions
=null
- script_api.mojang-minecraft.world.playmusic.musicoptions.description
- 返回值:
void
- script_api.mojang-minecraft.world.playmusic.return
playSound
script_api.mojang-minecraft.world.playsound.description
soundID
:string
- script_api.mojang-minecraft.world.playsound.soundid.description
soundOptions
?:SoundOptions
=null
- script_api.mojang-minecraft.world.playsound.soundoptions.description
- 返回值:
void
- script_api.mojang-minecraft.world.playsound.return
queueMusic
script_api.mojang-minecraft.world.queuemusic.description
trackId
:string
- script_api.mojang-minecraft.world.queuemusic.trackid.description
musicOptions
?:MusicOptions
=null
- script_api.mojang-minecraft.world.queuemusic.musicoptions.description
- 返回值:
void
- script_api.mojang-minecraft.world.queuemusic.return
removeDynamicProperty
script_api.mojang-minecraft.world.removedynamicproperty.description
identifier
:string
- script_api.mojang-minecraft.world.removedynamicproperty.identifier.description
- 返回值:
boolean
- script_api.mojang-minecraft.world.removedynamicproperty.return
setDynamicProperty
script_api.mojang-minecraft.world.setdynamicproperty.description
identifier
:string
- script_api.mojang-minecraft.world.setdynamicproperty.identifier.description
value
:boolean
|double
|float
|Location
|string
- script_api.mojang-minecraft.world.setdynamicproperty.value.description
- 返回值:
void
- script_api.mojang-minecraft.world.setdynamicproperty.return
stopMusic
script_api.mojang-minecraft.world.stopmusic.description
- 返回值:
void
- script_api.mojang-minecraft.world.stopmusic.return