Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Command

Hierarchy

Index

Constructors

constructor

Properties

Private #context

#context: File<{}>

Private Readonly #target

#target: Selector

Accessors

advancement

  • get advancement(): Advancement

attribute

  • get attribute(): Attribute

bossbar

  • get bossbar(): Bossbar

context

  • get context(): File<{}>

data

  • get data(): Data

datapack

  • get datapack(): Datapack

effect

  • get effect(): Effect

execute

  • get execute(): Execute

experience

  • get experience(): Experience

forceload

  • get forceload(): Forceload

gamerule

  • get gamerule(): GameRule

loot

  • get loot(): Loot

recipe

  • get recipe(): Recipe

replaceitem

  • get replaceitem(): ReplaceItem

schedule

  • get schedule(): Schedule

tag

  • get tag(): Tag

team

  • get team(): Team

time

  • get time(): Time

title

  • get title(): Title

trigger

  • get trigger(): Trigger

weather

  • get weather(): Weather

whitelist

  • get whitelist(): WhiteList

worldborder

  • get worldborder(): WorldBorder

Methods

$function

ban

banIp

  • banIp(ip: string, reason?: string): Command

banList

  • banList(type?: BanTargetType): Command

clear

  • clear(item: string, maxCount: number): Command

clone

  • clone(from: string, to: string, dist: string): Command
  • clone(from: string, to: string, dist: string, maskMode: MaskMode): Command
  • clone(from: string, to: string, dist: string, maskMode: MaskMode, cloneMode: CloneMode): Command
  • clone(from: string, to: string, dist: string, maskMode: MaskMode, cloneMode: CloneMode, blockId: string): Command

debug

defaultgamemode

  • defaultgamemode(mode: GameMode): Command

deop

difficulty

  • difficulty(mode: GameMode): Command

enchant

  • enchant(enchantId: EnchantmentId, level: number): Command

fill

  • fill(from: string, to: string, blockId: BlockItemId): Command
  • fill(from: string, to: string, blockId: BlockItemId, mode: FillMode): Command
  • fill(from: string, to: string, blockId: BlockItemId, replaceBlockId: string): Command

gamemode

kick

kill

list

locate

  • locate(structure: StructureType): Command

locatebiome

  • locatebiome(biomeId: BiomeId): Command

me

msg

objective

op

pardon

pardonIp

particle

  • particle(particleId: ParticleIdType, location: string): Command
  • particle(particleId: ParticleIdType, location: string, delta: string): Command
  • particle(particleId: ParticleIdType, location: string, delta: string, speed: number): Command
  • particle(particleId: ParticleIdType, location: string, delta: string, speed: number, count: number): Command
  • particle(particleId: ParticleIdType, location: string, delta: string, speed: number, count: number, mode: VisibleMode): Command

playsound

  • playsound(soundPath: string, source: string): Command
  • playsound(soundPath: string, source: string, location: string): Command
  • playsound(soundPath: string, source: string, location: string, volume: number): Command
  • playsound(soundPath: string, source: string, location: string, volume: number, tone: number): Command
  • playsound(soundPath: string, source: string, location: string, volume: number, tone: number, minVolume: number): Command

publish

reload

save

saveAll

saveOff

saveOn

say

scoreboard

seed

  • seed(): void

setblock

  • setblock(location: string, blockId: string): Command
  • setblock(location: string, blockId: string, mode: SetblockMode): Command

setidletimeout

  • setidletimeout(minute: number): Command

setworldspawn

  • setworldspawn(location?: string): Command

spawnpoint

  • spawnpoint(location: string): Command

spectate

spreadplayers

  • spreadplayers(location: string, spreadDistance: number, maxRange: number, respectTeams: boolean): Command

stop

stopsound

  • stopsound(source: string): Command
  • stopsound(source: SoundType, soundPath: string): Command

summon

  • summon(nbt: Entity, location?: string): Command

teammsg

teleport

tell

  • tell(message: string): void

tellraw

tm

tp

w

Generated using TypeDoc