Variables
advancement
advancement
: { grantEverything
: (selector
: Selector) => string; grantFrom
: (selector
: Selector, advancement
: string) => string; grantOnly
: (selector
: Selector, advancement
: string, criterion
?: string) => string; grantThrough
: (selector
: Selector, advancement
: string) => string; grantUntil
: (selector
: Selector, advancement
: string) => string; revokeEverything
: (selector
: Selector) => string; revokeFrom
: (selector
: Selector, advancement
: string) => string; revokeOnly
: (selector
: Selector, advancement
: string, criterion
?: string) => string; revokeThrough
: (selector
: Selector, advancement
: string) => string; revokeUntil
: (selector
: Selector, advancement
: string) => string }Type declaration
grantEverything: (selector: Selector) => string
grantFrom: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
grantOnly: (selector: Selector, advancement: string, criterion?: string) => string
- (selector: Selector, advancement: string, criterion?: string): string
Parameters
advancement: string
Optional criterion: string
Returns string
grantThrough: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
grantUntil: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
revokeEverything: (selector: Selector) => string
revokeFrom: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
revokeOnly: (selector: Selector, advancement: string, criterion?: string) => string
- (selector: Selector, advancement: string, criterion?: string): string
Parameters
advancement: string
Optional criterion: string
Returns string
revokeThrough: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
revokeUntil: (selector: Selector, advancement: string) => string
- (selector: Selector, advancement: string): string
attribute
attribute
: { add
: (target
: Selector, attribute
: string, uuid
: string, name
: string, value
: string, type
?: AttributeModifier) => string; get
: (target
: Selector, attribute
: string, scale
: number) => string; getBase
: (target
: Selector, attribute
: string, scale
: number) => string; getValue
: (target
: Selector, attribute
: string, uuid
: string, scale
: number) => string; remove
: (target
: Selector, attribute
: string, uuid
: string) => string; setBase
: (target
: Selector, attribute
: string, value
: number) => string }Type declaration
add: (target: Selector, attribute: string, uuid: string, name: string, value: string, type?: AttributeModifier) => string
- (target: Selector, attribute: string, uuid: string, name: string, value: string, type?: AttributeModifier): string
Parameters
attribute: string
uuid: string
name: string
value: string
type: AttributeModifier = 'add'
Returns string
get: (target: Selector, attribute: string, scale: number) => string
- (target: Selector, attribute: string, scale: number): string
Parameters
attribute: string
scale: number
Returns string
getBase: (target: Selector, attribute: string, scale: number) => string
- (target: Selector, attribute: string, scale: number): string
Parameters
attribute: string
scale: number
Returns string
getValue: (target: Selector, attribute: string, uuid: string, scale: number) => string
- (target: Selector, attribute: string, uuid: string, scale: number): string
Parameters
attribute: string
uuid: string
scale: number
Returns string
remove: (target: Selector, attribute: string, uuid: string) => string
- (target: Selector, attribute: string, uuid: string): string
Parameters
attribute: string
uuid: string
Returns string
setBase: (target: Selector, attribute: string, value: number) => string
- (target: Selector, attribute: string, value: number): string
Parameters
attribute: string
value: number
Returns string
bossbar
bossbar
: { add
: (id
: string, name
: string) => string; get
: (id
: string, type
: BossbarType) => string; list
: () => string; remove
: (id
: string) => string; setColor
: (id
: string, color
: BannerColorKind) => string; setMax
: (id
: string, max
: number) => string; setPlayers
: { (id
: string): string; (id
: string, player
: Selector): string }; setStyle
: (id
: string, style
: BossbarStyle) => string; setValue
: (id
: string, value
: number) => string; setVisible
: (id
: string, visible
: boolean) => string }Type declaration
add: (id: string, name: string) => string
- (id: string, name: string): string
get: (id: string, type: BossbarType) => string
- (id: string, type: BossbarType): string
Parameters
id: string
type: BossbarType
Returns string
list: () => string
remove: (id: string) => string
setColor: (id: string, color: BannerColorKind) => string
- (id: string, color: BannerColorKind): string
Parameters
id: string
color: BannerColorKind
Returns string
setMax: (id: string, max: number) => string
- (id: string, max: number): string
setPlayers: { (id: string): string; (id: string, player: Selector): string }
- (id: string): string
- (id: string, player: Selector): string
Parameters
Returns string
Parameters
Returns string
setStyle: (id: string, style: BossbarStyle) => string
- (id: string, style: BossbarStyle): string
Parameters
id: string
style: BossbarStyle
Returns string
setValue: (id: string, value: number) => string
- (id: string, value: number): string
setVisible: (id: string, visible: boolean) => string
- (id: string, visible: boolean): string
Parameters
id: string
visible: boolean
Returns string
data
data: { getBlock: (targetPos: string, path?: string, scale?: number) => string; getEntity: (target: string, path?: string, scale?: number) => string; getStorage: (target: string, path?: string, scale?: number) => string; mergeBlock: (targetPos: string, path?: string) => string; mergeEntity: (target: string, path?: string) => string; mergeStorage: (target: string, path?: string) => string; modifyBlock: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }; modifyEntity: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }; modifyStorage: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }; removeBlock: (targetPos: string, path?: string) => string; removeEntity: (target: string, path?: string) => string; removeStorage: (target: string, path?: string) => string }
Type declaration
getBlock: (targetPos: string, path?: string, scale?: number) => string
- (targetPos: string, path?: string, scale?: number): string
Parameters
targetPos: string
Optional path: string
Optional scale: number
Returns string
getEntity: (target: string, path?: string, scale?: number) => string
- (target: string, path?: string, scale?: number): string
Parameters
target: string
Optional path: string
Optional scale: number
Returns string
getStorage: (target: string, path?: string, scale?: number) => string
- (target: string, path?: string, scale?: number): string
Parameters
target: string
Optional path: string
Optional scale: number
Returns string
mergeBlock: (targetPos: string, path?: string) => string
- (targetPos: string, path?: string): string
Parameters
targetPos: string
Optional path: string
Returns string
mergeEntity: (target: string, path?: string) => string
- (target: string, path?: string): string
Parameters
target: string
Optional path: string
Returns string
mergeStorage: (target: string, path?: string) => string
- (target: string, path?: string): string
Parameters
target: string
Optional path: string
Returns string
modifyBlock: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }
fromBlock:function
- fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
fromEntity:function
- fromEntity(targetPos: string, path: string, type: ModifierType, sourceTarget: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourceTarget: string
sourcePath: string
Returns string
fromStorage:function
- fromStorage(targetPos: string, path: string, type: ModifierType, source: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
source: string
sourcePath: string
Returns string
value:function
- value(targetPos: string, path: string, type: ModifierType, nbt: string): string
Parameters
targetPos: string
path: string
type: ModifierType
nbt: string
Returns string
modifyEntity: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }
fromBlock:function
- fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
fromEntity:function
- fromEntity(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
fromStorage:function
- fromStorage(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
value:function
- value(targetPos: string, path: string, type: ModifierType, nbt: string): string
Parameters
targetPos: string
path: string
type: ModifierType
nbt: string
Returns string
modifyStorage: { fromBlock: any; fromEntity: any; fromStorage: any; value: any }
fromBlock:function
- fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
fromEntity:function
- fromEntity(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
fromStorage:function
- fromStorage(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string
Parameters
targetPos: string
path: string
type: ModifierType
sourcePos: string
sourcePath: string
Returns string
value:function
- value(targetPos: string, path: string, type: ModifierType, nbt: string): string
Parameters
targetPos: string
path: string
type: ModifierType
nbt: string
Returns string
removeBlock: (targetPos: string, path?: string) => string
- (targetPos: string, path?: string): string
Parameters
targetPos: string
Optional path: string
Returns string
removeEntity: (target: string, path?: string) => string
- (target: string, path?: string): string
Parameters
target: string
Optional path: string
Returns string
removeStorage: (target: string, path?: string) => string
- (target: string, path?: string): string
Parameters
target: string
Optional path: string
Returns string
datapack
datapack: { disable: (packName: string) => string; enable: { (packName: string): string; (packName: string, sort: PackSortType): string; (packName: string, pos: PackPosType, existName: string): string }; list: { (): string; (listType: PackListType): string } }
Type declaration
disable: (packName: string) => string
- (packName: string): string
enable: { (packName: string): string; (packName: string, sort: PackSortType): string; (packName: string, pos: PackPosType, existName: string): string }
- (packName: string): string
- (packName: string, sort: PackSortType): string
- (packName: string, pos: PackPosType, existName: string): string
Parameters
Returns string
Parameters
packName: string
sort: PackSortType
Returns string
Parameters
packName: string
pos: PackPosType
existName: string
Returns string
list: { (): string; (listType: PackListType): string }
- (): string
- (listType: PackListType): string
Returns string
Parameters
Returns string
effect
effect
: { clear
: { (player
: Selector): string; (player
: Selector, effectId
: EffectId): string }; give
: { (player
: Selector, effectId
: EffectId): string; (player
: Selector, effectId
: EffectId, duration
: number): string; (player
: Selector, effectId
: EffectId, duration
: number, amplifier
: number): string; (player
: Selector, effectId
: EffectId, duration
: number, amplifier
: number, hideParticles
: boolean): string } }Type declaration
clear: { (player: Selector): string; (player: Selector, effectId: EffectId): string }
Parameters
Returns string
Parameters
Returns string
give: { (player: Selector, effectId: EffectId): string; (player: Selector, effectId: EffectId, duration: number): string; (player: Selector, effectId: EffectId, duration: number, amplifier: number): string; (player: Selector, effectId: EffectId, duration: number, amplifier: number, hideParticles: boolean): string }
- (player: Selector, effectId: EffectId): string
- (player: Selector, effectId: EffectId, duration: number): string
- (player: Selector, effectId: EffectId, duration: number, amplifier: number): string
- (player: Selector, effectId: EffectId, duration: number, amplifier: number, hideParticles: boolean): string
Parameters
Returns string
Parameters
effectId: EffectId
duration: number
Returns string
Parameters
effectId: EffectId
duration: number
amplifier: number
Returns string
Parameters
effectId: EffectId
duration: number
amplifier: number
hideParticles: boolean
Returns string
experience
experience
: { add
: { (player
: Selector, count
: number): string; (player
: Selector, count
: number, type
: XpType): string }; query
: { (player
: Selector): string; (player
: Selector, type
: XpType): string }; set
: { (player
: Selector, count
: number): string; (player
: Selector, count
: number, type
: XpType): string } }Type declaration
add: { (player: Selector, count: number): string; (player: Selector, count: number, type: XpType): string }
- (player: Selector, count: number): string
- (player: Selector, count: number, type: XpType): string
Parameters
Returns string
Parameters
count: number
type: XpType
Returns string
query: { (player: Selector): string; (player: Selector, type: XpType): string }
Parameters
Returns string
Parameters
Returns string
set: { (player: Selector, count: number): string; (player: Selector, count: number, type: XpType): string }
- (player: Selector, count: number): string
- (player: Selector, count: number, type: XpType): string
Parameters
Returns string
Parameters
count: number
type: XpType
Returns string
forceload
forceload: { add: (x1: number, z1: number, x2: number, z2: number) => string; query: (x: number, z: number) => string; remove: (x1: number, z1: number, x2: number, z2: number) => string; removeAll: () => string }
Type declaration
add: (x1: number, z1: number, x2: number, z2: number) => string
- (x1: number, z1: number, x2: number, z2: number): string
Parameters
x1: number
z1: number
x2: number
z2: number
Returns string
query: (x: number, z: number) => string
- (x: number, z: number): string
remove: (x1: number, z1: number, x2: number, z2: number) => string
- (x1: number, z1: number, x2: number, z2: number): string
Parameters
x1: number
z1: number
x2: number
z2: number
Returns string
removeAll: () => string
gamerule
gamerule: { announceAdvancements: (active: boolean) => string; commandBlockOutput: (active: boolean) => string; disableElytraMovementCheck: (active: boolean) => string; disableRaids: (active: boolean) => string; doDaylightCycle: (active: boolean) => string; doEntityDrops: (active: boolean) => string; doFireTick: (active: boolean) => string; doImmediateRespawn: (active: boolean) => string; doInsomnia: (active: boolean) => string; doLimitedCrafting: (active: boolean) => string; doMobLoot: (active: boolean) => string; doMobSpawning: (active: boolean) => string; doPatrolSpawning: (active: boolean) => string; doTileDrops: (active: boolean) => string; doTraderSpawning: (active: boolean) => string; doWeatherCycle: (active: boolean) => string; drowningdamage: (active: boolean) => string; falldamage: (active: boolean) => string; firedamage: (active: boolean) => string; forgiveDeadPlayers: (active: boolean) => string; freezeDamage: (active: boolean) => string; keepInventory: (active: boolean) => string; logAdminCommands: (active: boolean) => string; maxCommandChainLength: (length: number) => string; maxEntityCramming: (count: number) => string; mobGriefing: (active: boolean) => string; naturalRegeneration: (active: boolean) => string; playersSleepingPercentage: (count: number) => string; randomTickSpeed: (speed: number) => string; reducedDebugInfo: (active: boolean) => string; sendCommandFeedback: (active: boolean) => string; showDeathMessages: (active: boolean) => string; spawnRadius: (distance: number) => string; spectatorsGenerateChunks: (active: boolean) => string; universalAnger: (active: boolean) => string }
Type declaration
announceAdvancements: (active: boolean) => string
- (active: boolean): string
commandBlockOutput: (active: boolean) => string
- (active: boolean): string
disableElytraMovementCheck: (active: boolean) => string
- (active: boolean): string
disableRaids: (active: boolean) => string
- (active: boolean): string
doDaylightCycle: (active: boolean) => string
- (active: boolean): string
doEntityDrops: (active: boolean) => string
- (active: boolean): string
doFireTick: (active: boolean) => string
- (active: boolean): string
doImmediateRespawn: (active: boolean) => string
- (active: boolean): string
doInsomnia: (active: boolean) => string
- (active: boolean): string
doLimitedCrafting: (active: boolean) => string
- (active: boolean): string
doMobLoot: (active: boolean) => string
- (active: boolean): string
doMobSpawning: (active: boolean) => string
- (active: boolean): string
doPatrolSpawning: (active: boolean) => string
- (active: boolean): string
doTileDrops: (active: boolean) => string
- (active: boolean): string
doTraderSpawning: (active: boolean) => string
- (active: boolean): string
doWeatherCycle: (active: boolean) => string
- (active: boolean): string
drowningdamage: (active: boolean) => string
- (active: boolean): string
falldamage: (active: boolean) => string
- (active: boolean): string
firedamage: (active: boolean) => string
- (active: boolean): string
forgiveDeadPlayers: (active: boolean) => string
- (active: boolean): string
freezeDamage: (active: boolean) => string
- (active: boolean): string
keepInventory: (active: boolean) => string
- (active: boolean): string
logAdminCommands: (active: boolean) => string
- (active: boolean): string
maxCommandChainLength: (length: number) => string
maxEntityCramming: (count: number) => string
mobGriefing: (active: boolean) => string
- (active: boolean): string
naturalRegeneration: (active: boolean) => string
- (active: boolean): string
playersSleepingPercentage: (count: number) => string
randomTickSpeed: (speed: number) => string
reducedDebugInfo: (active: boolean) => string
- (active: boolean): string
sendCommandFeedback: (active: boolean) => string
- (active: boolean): string
showDeathMessages: (active: boolean) => string
- (active: boolean): string
spawnRadius: (distance: number) => string
- (distance: number): string
spectatorsGenerateChunks: (active: boolean) => string
- (active: boolean): string
universalAnger: (active: boolean) => string
- (active: boolean): string
loot
loot
: { give
: (target
: Selector) => Source; insert
: (location
: string) => Source; replaceBlock
: (location
: string, slot
: string, count
?: number) => Source; replaceEntity
: (target
: Selector, slot
: string, count
?: number) => Source; spawn
: (location
: string) => Source }Type declaration
give: (target: Selector) => Source
insert: (location: string) => Source
- (location: string): Source
replaceBlock: (location: string, slot: string, count?: number) => Source
- (location: string, slot: string, count?: number): Source
Parameters
location: string
slot: string
Optional count: number
Returns Source
replaceEntity: (target: Selector, slot: string, count?: number) => Source
- (target: Selector, slot: string, count?: number): Source
Parameters
slot: string
Optional count: number
Returns Source
spawn: (location: string) => Source
- (location: string): Source
recipe
recipe
: { give
: (player
: Selector, recipeName
?: string) => string; take
: (player
: Selector, recipeName
?: string) => string }Type declaration
give: (player: Selector, recipeName?: string) => string
- (player: Selector, recipeName?: string): string
take: (player: Selector, recipeName?: string) => string
- (player: Selector, recipeName?: string): string
replaceitem
replaceitem
: { block
: { (location
: string, slot
: number, item
: string): string; (location
: string, slot
: number, item
: string, count
: number): string }; entity
: { (target
: Selector, slot
: number, item
: string): string; (target
: Selector, slot
: number, item
: string, count
: number): string } }Type declaration
block: { (location: string, slot: number, item: string): string; (location: string, slot: number, item: string, count: number): string }
- (location: string, slot: number, item: string): string
- (location: string, slot: number, item: string, count: number): string
Parameters
location: string
slot: number
item: string
Returns string
Parameters
location: string
slot: number
item: string
count: number
Returns string
entity: { (target: Selector, slot: number, item: string): string; (target: Selector, slot: number, item: string, count: number): string }
- (target: Selector, slot: number, item: string): string
- (target: Selector, slot: number, item: string, count: number): string
Parameters
Returns string
Parameters
slot: number
item: string
count: number
Returns string
schedule
schedule: { clear: (functionName: string) => string; functionName: (functionName: string, time: string, mode: ScheduleMode) => string }
Type declaration
clear: (functionName: string) => string
- (functionName: string): string
functionName: (functionName: string, time: string, mode: ScheduleMode) => string
- (functionName: string, time: string, mode: ScheduleMode): string
Parameters
functionName: string
time: string
mode: ScheduleMode
Returns string
scoreboard
scoreboard
: { objectives
: { add
: { (objective
: string): string; (objective
: string, criterion
: Criteria): string; (objective
: string, criterion
: Criteria, displayName
: string): string }; list
: () => string; modify
: (objective
: string, displayName
: string) => string; remove
: (objective
: string) => string; setdisplay
: (slot
: string, objective
?: string) => string }; players
: { add
: (target
: string, objective
: string, amount
: string) => string; enable
: (target
: string, objective
: string) => string; get
: (target
: string, objective
: string) => string; list
: (target
: string) => string; operation
: (target
: string, targetObjective
: string, operation
: string, source
: string, sourceObjective
: string) => string; remove
: (target
: string, objective
: string, amount
: string) => string; reset
: (target
: string, objective
: string) => string; set
: (target
: string, objective
: string, score
: number) => string } }Type declaration
objectives: { add: { (objective: string): string; (objective: string, criterion: Criteria): string; (objective: string, criterion: Criteria, displayName: string): string }; list: () => string; modify: (objective: string, displayName: string) => string; remove: (objective: string) => string; setdisplay: (slot: string, objective?: string) => string }
add: { (objective: string): string; (objective: string, criterion: Criteria): string; (objective: string, criterion: Criteria, displayName: string): string }
- (objective: string): string
- (objective: string, criterion: Criteria): string
- (objective: string, criterion: Criteria, displayName: string): string
Parameters
Returns string
Parameters
Returns string
Parameters
objective: string
displayName: string
Returns string
list: () => string
modify: (objective: string, displayName: string) => string
- (objective: string, displayName: string): string
Parameters
objective: string
displayName: string
Returns string
remove: (objective: string) => string
- (objective: string): string
setdisplay: (slot: string, objective?: string) => string
- (slot: string, objective?: string): string
Parameters
slot: string
Optional objective: string
Returns string
players: { add: (target: string, objective: string, amount: string) => string; enable: (target: string, objective: string) => string; get: (target: string, objective: string) => string; list: (target: string) => string; operation: (target: string, targetObjective: string, operation: string, source: string, sourceObjective: string) => string; remove: (target: string, objective: string, amount: string) => string; reset: (target: string, objective: string) => string; set: (target: string, objective: string, score: number) => string }
add: (target: string, objective: string, amount: string) => string
- (target: string, objective: string, amount: string): string
Parameters
target: string
objective: string
amount: string
Returns string
enable: (target: string, objective: string) => string
- (target: string, objective: string): string
Parameters
target: string
objective: string
Returns string
get: (target: string, objective: string) => string
- (target: string, objective: string): string
Parameters
target: string
objective: string
Returns string
list: (target: string) => string
operation: (target: string, targetObjective: string, operation: string, source: string, sourceObjective: string) => string
- (target: string, targetObjective: string, operation: string, source: string, sourceObjective: string): string
Parameters
target: string
targetObjective: string
operation: string
source: string
sourceObjective: string
Returns string
remove: (target: string, objective: string, amount: string) => string
- (target: string, objective: string, amount: string): string
Parameters
target: string
objective: string
amount: string
Returns string
reset: (target: string, objective: string) => string
- (target: string, objective: string): string
Parameters
target: string
objective: string
Returns string
set: (target: string, objective: string, score: number) => string
- (target: string, objective: string, score: number): string
Parameters
target: string
objective: string
score: number
Returns string
tag
tag
: { add
: (target
: string | Selector, tagName
: string) => string; list
: (target
: string | Selector) => string; remove
: (target
: string | Selector, tagName
: string) => string }Type declaration
add: (target: string | Selector, tagName: string) => string
- (target: string | Selector, tagName: string): string
Parameters
target: string | Selector
tagName: string
Returns string
list: (target: string | Selector) => string
remove: (target: string | Selector, tagName: string) => string
- (target: string | Selector, tagName: string): string
Parameters
target: string | Selector
tagName: string
Returns string
team
team
: { add
: { (teamName
: string): string; (teamName
: string, displayName
: string): string }; empty
: (teamName
: string) => string; join
: { (teamName
: string): string; (teamName
: string, member
?: Selector): string }; leave
: (member
: Selector) => string; list
: { (): string; (teamName
?: string): string }; modify
: (teamName
: string, criteria
: string, value
: number) => string }Type declaration
add: { (teamName: string): string; (teamName: string, displayName: string): string }
- (teamName: string): string
- (teamName: string, displayName: string): string
Parameters
Returns string
Parameters
teamName: string
displayName: string
Returns string
empty: (teamName: string) => string
- (teamName: string): string
join: { (teamName: string): string; (teamName: string, member?: Selector): string }
- (teamName: string): string
- (teamName: string, member?: Selector): string
Parameters
Returns string
Parameters
teamName: string
Optional member: Selector
Returns string
leave: (member: Selector) => string
list: { (): string; (teamName?: string): string }
- (): string
- (teamName?: string): string
Returns string
Parameters
Optional teamName: string
Returns string
modify: (teamName: string, criteria: string, value: number) => string
- (teamName: string, criteria: string, value: number): string
Parameters
teamName: string
criteria: string
value: number
Returns string
time
time: { add: (time: number | TimeScale) => string; query: (queryType: QueryType) => string; set: { (time: number): string; (time: number, unit: TimeUnit): string } }
Type declaration
add: (time: number | TimeScale) => string
- (time: number | TimeScale): string
query: (queryType: QueryType) => string
- (queryType: QueryType): string
set: { (time: number): string; (time: number, unit: TimeUnit): string }
- (time: number): string
- (time: number, unit: TimeUnit): string
Parameters
Returns string
Parameters
time: number
unit: TimeUnit
Returns string
title
title
: { actionbar
: (player
: Selector, text
: string) => string; clear
: (player
: Selector) => string; reset
: (player
: Selector) => string; subtitle
: (player
: Selector, text
: string) => string; times
: (player
: Selector, fadeIn
: number, stay
: number, fadeOut
: number) => string; title
: (player
: Selector, text
: string) => string }Type declaration
actionbar: (player: Selector, text: string) => string
- (player: Selector, text: string): string
clear: (player: Selector) => string
reset: (player: Selector) => string
subtitle: (player: Selector, text: string) => string
- (player: Selector, text: string): string
times: (player: Selector, fadeIn: number, stay: number, fadeOut: number) => string
- (player: Selector, fadeIn: number, stay: number, fadeOut: number): string
Parameters
fadeIn: number
stay: number
fadeOut: number
Returns string
title: (player: Selector, text: string) => string
- (player: Selector, text: string): string
trigger
trigger: { add: (critera: string, value: number) => string; set: (critera: string, value: number) => string }
Type declaration
add: (critera: string, value: number) => string
- (critera: string, value: number): string
Parameters
critera: string
value: number
Returns string
set: (critera: string, value: number) => string
- (critera: string, value: number): string
Parameters
critera: string
value: number
Returns string
weather
weather: { clear: { (): string; (duration: number): string }; rain: { (): string; (duration: number): string }; thunder: { (): string; (duration: number): string } }
Type declaration
clear: { (): string; (duration: number): string }
- (): string
- (duration: number): string
Returns string
Parameters
Returns string
rain: { (): string; (duration: number): string }
- (): string
- (duration: number): string
Returns string
Parameters
Returns string
thunder: { (): string; (duration: number): string }
- (): string
- (duration: number): string
Returns string
Parameters
Returns string
whitelist
whitelist
: { add
: (player
: Selector) => string; list
: () => string; off
: () => string; on
: () => string; reload
: () => string; remove
: (player
: Selector) => string }Type declaration
add: (player: Selector) => string
list: () => string
off: () => string
on: () => string
reload: () => string
remove: (player: Selector) => string
worldborder
worldborder: { add: { (distance: number): string; (distance: number, time: number): string }; center: { (): string; (location?: string): string }; damage: { amount: (damage: number) => string; buffer: (distance: number) => string }; get: () => string; set: { (distance: number): string; (distance: number, time: number): string }; warning: { distance: (distance: number) => string; time: (time: number) => string } }
Type declaration
add: { (distance: number): string; (distance: number, time: number): string }
- (distance: number): string
- (distance: number, time: number): string
Parameters
Returns string
Parameters
distance: number
time: number
Returns string
center: { (): string; (location?: string): string }
- (): string
- (location?: string): string
Returns string
Parameters
Optional location: string
Returns string
damage: { amount: (damage: number) => string; buffer: (distance: number) => string }
amount: (damage: number) => string
buffer: (distance: number) => string
- (distance: number): string
get: () => string
set: { (distance: number): string; (distance: number, time: number): string }
- (distance: number): string
- (distance: number, time: number): string
Parameters
Returns string
Parameters
distance: number
time: number
Returns string
warning: { distance: (distance: number) => string; time: (time: number) => string }
distance: (distance: number) => string
- (distance: number): string
time: (time: number) => string
xp
xp
: { add
: { (player
: Selector, count
: number): string; (player
: Selector, count
: number, type
: XpType): string }; query
: { (player
: Selector): string; (player
: Selector, type
: XpType): string }; set
: { (player
: Selector, count
: number): string; (player
: Selector, count
: number, type
: XpType): string } }Type declaration
add: { (player: Selector, count: number): string; (player: Selector, count: number, type: XpType): string }
- (player: Selector, count: number): string
- (player: Selector, count: number, type: XpType): string
Parameters
Returns string
Parameters
count: number
type: XpType
Returns string
query: { (player: Selector): string; (player: Selector, type: XpType): string }
Parameters
Returns string
Parameters
Returns string
set: { (player: Selector, count: number): string; (player: Selector, count: number, type: XpType): string }
- (player: Selector, count: number): string
- (player: Selector, count: number, type: XpType): string
Parameters
Returns string
Parameters
count: number
type: XpType
Returns string
创建一个新的Boss栏。