Skip to content

Instantly share code, notes, and snippets.

@inku25253
Last active August 16, 2022 13:47
Show Gist options
  • Save inku25253/372ecce8c3e7100d7cbd12c5895cc55c to your computer and use it in GitHub Desktop.
Save inku25253/372ecce8c3e7100d7cbd12c5895cc55c to your computer and use it in GitHub Desktop.
Bedrock Command model
import { command } from "../../";
import { McFunctionCaller } from "../../mcfunction";
import { Vector } from "../../vector";
import { Target } from "../../target";
import { RawMessage } from "../../rawMessage";
// Locate Command ======
export declare type Feature =
| "bastionremnant"
| "buriedtreasure"
| "endcity"
| "fortress"
| "mansion"
| "mineshaft"
| "monument"
| "pillageroutpost"
| "ruinedportal"
| "ruins"
| "shipwreck"
| "stronghold"
| "temple"
| "village";
export declare type Biome = string;
export declare type Structure = string;
// Locate Command ======
// Difficulty Command ======
export declare type Difficulty =
| "e"
| "easy"
| "h"
| "hard"
| "n"
| "normal"
| "p"
| "peaceful";
// Difficulty Command ======
// Clone Command =======
export declare type MaskMode = "masked" | "replace";
export declare type CloneMode = "force" | "move" | "normal";
// Clone Command =======
// Damage Command ======
export declare type DamageCause =
| "all"
| "anvil"
| "block-explosion"
| "charging"
| "contact"
| "drowning"
| "entity-attack"
| "entity-explosion"
| "fall"
| "Main"
| "Reduced"
| "falling_block"
| "fire"
| "fire_tick"
| "fireworks"
| "fire"
| "fly_into_wall"
| "freezing"
| "lava"
| "lightning"
| "magic"
| "magma"
| "override"
| "piston"
| "projectile"
| "stalactite"
| "stalagmite"
| "starve"
| "suffocation"
| "suicide"
| "temperature"
| "thorns"
| "void"
| "wither";
// Damage Command ======
// Fog Command =====
export declare type FogDelete = "pop" | "remove";
// Fog Command =====
// Gamemode Command ======
export declare type GameMode =
| "a"
| "adventure"
| "c"
| "creative"
| "d"
| "default"
| "s"
| "survival";
// Gamemode Command ======
// Gamerule Command ======
export declare type GameRule =
| "commandBlocksEnabled"
| "commandBlockOutput"
| "doDaylightCycle"
| "doEntityDrops"
| "doFireTick"
| "doInsomnia"
| "doImmediateRespawn"
| "doMobLoot"
| "doMobSpawning"
| "doTileDrops"
| "doWeatherCycle"
| "drowningDamage"
| "fallDamage"
| "fireDamage"
| "freezeDamage"
| "functionCommandLimit"
| "keepInventory"
| "maxCommandChainLength"
| "mobGriefing"
| "naturalRegeneration"
| "pvp"
| "randomTickSpeed"
| "sendCommandFeedback"
| "showCoordinates"
| "showDeathMessages"
| "spawnRadius"
| "tntExplodes"
| "showTags";
// Gamerule Command ======
// Mobevent Command ======
export declare type MobEvent =
| "events_enabled"
| "minecraft:ender_dragon_event"
| "minecraft:pillager_patrols_event"
| "minecraft:wandering_trader_event";
// Mobevent Command ======
// Music Command ======
export declare type MusicRepeatMode = "loop" | "play_once";
// Music Command ======
// ReplaceItem ======
export declare type ReplaceMode = "destroy" | "keep";
export declare type EntityEquipmentSlot =
| "slot.armor"
| "slot.armor.chest"
| "slot.armor.feet"
| "slot.armor.head"
| "slot.armor.legs"
| "slot.chest"
| "slot.enderchest"
| "slot.hotbar"
| "slot.inventory"
| "slot.saddle"
| "slot.weapon.mainhand"
| "slot.weapon.offhand";
// ReplaceItem ======
// Ride Command ======
export declare type TeleportRules = "teleport_ride" | "teleport_rider";
export declare type FillType = "if_group_fits" | "until_full";
export declare type RideRules =
| "no_ride_change"
| "reassign_rides"
| "skip_rides";
// Ride Command ======
// Save Command ======
export declare type SaveMode = "hold" | "query" | "resume";
// Save Command ======
// Structure Command ======
export declare type Rotation =
| "0_degrees"
| "180_degrees"
| "270_degrees"
| "90_degrees";
export declare type Mirror = "none" | "x" | "xz" | "z";
export declare type StructureSaveMode = "disk" | "memory";
export declare type StructureAnimationMode =
| "block_by_block"
| "layer_by_layer";
// Structure Command ======
// Tickingarea Command ======
export declare type AllDimensions = "all-dimensions";
// Tickingarea Command ======
// Time Command ======
export declare type TimeQuery = "day" | "daytime" | "gametime";
export declare type TimeSpec =
| "day"
| "midnight"
| "night"
| "noon"
| "sunrise"
| "sunset";
// Time Command ======
// Titleraw Command ======
export declare type TitleRawSet = "actionbar" | "subtitle" | "title";
// Titleraw Command ======
// Allowlist Command ======
export declare type AllowListAction =
| "add"
| "list"
| "off"
| "on"
| "reload"
| "remove";
// Allowlist Command ======
// Camerashake Command ======
export declare type CameraShakeType = "positional" | "rotational";
// Camerashake Command ======
// Scoreboard Command ======
export declare type operator =
| "+="
| "-="
| "*="
| "/="
| "%="
| "="
| "<"
| ">"
| "><";
// Scoreboard Command ======
// Permission Command ======
export declare type PermissionsAction = "reload" | string;
// Permission Command ======
export interface CommandRoot {
/** //allowlist */
allowlist?: model_allowlist;
/** //alwaysday */
alwaysday?: model_alwaysday;
/** //camerashake */
camerashake?: model_camerashake;
/** //changesetting */
changesetting?: model_changesetting;
/** //clear */
clear?: model_clear;
/** //clearspawnpoint */
clearspawnpoint?: model_clearspawnpoint;
/** //clone */
clone?: model_clone;
/** //connect */
connect?: model_connect;
/** //damage */
damage?: model_damage;
/** //daylock */
daylock?: model_daylock;
/** //deop */
deop?: model_deop;
/** //dialogue */
dialogue?: model_dialogue;
/** //difficulty */
difficulty?: model_difficulty;
/** //effect */
effect?: model_effect;
/** //enchant */
enchant?: model_enchant;
/** //event */
event?: model_event;
/** //execute */
execute?: model_execute;
/** //fill */
fill?: model_fill;
/** //fog */
fog?: model_fog;
/** //function */
function?: model_function;
/** //gamemode */
gamemode?: model_gamemode;
/** //gamerule */
gamerule?: model_gamerule;
/** //give */
give?: model_give;
/** //help */
help?: model_help;
/** //kick */
kick?: model_kick;
/** //kill */
kill?: model_kill;
/** //list */
list?: model_list;
/** //locate */
locate?: model_locate;
/** //loot */
loot?: model_loot;
/** //me */
me?: model_me;
/** //mobevent */
mobevent?: model_mobevent;
/** //msg */
msg?: model_msg;
/** //music */
music?: model_music;
/** //op */
op?: model_op;
/** //ops */
ops?: model_ops;
/** //particle */
particle?: model_particle;
/** //permission */
permission?: model_permission;
/** //playanimation */
playanimation?: model_playanimation;
/** //playsound */
playsound?: model_playsound;
/** //reload */
reload?: model_reload;
/** //replaceitem */
replaceitem?: model_replaceitem;
/** //ride */
ride?: model_ride;
/** //save */
save?: model_save;
/** //say */
say?: model_say;
/** //schedule */
schedule?: model_schedule;
/** //scoreboard */
scoreboard?: model_scoreboard;
/** //setblock */
setblock?: model_setblock;
/** //setmaxplayers */
setmaxplayers?: model_setmaxplayers;
/** //setworldspawn */
setworldspawn?: model_setworldspawn;
/** //spawnpoint */
spawnpoint?: model_spawnpoint;
/** //spreadplayers */
spreadplayers?: model_spreadplayers;
/** //stop */
stop?: model_stop;
/** //stopsound */
stopsound?: model_stopsound;
/** //structure */
structure?: model_structure;
/** //summon */
summon?: model_summon;
/** //tag */
tag?: model_tag;
/** //teleport */
teleport?: model_teleport;
/** //tell */
tell?: model_tell;
/** //tellraw */
tellraw?: model_tellraw;
/** //testfor */
testfor?: model_testfor;
/** //testforblock */
testforblock?: model_testforblock;
/** //testforblocks */
testforblocks?: model_testforblocks;
/** //tickingarea */
tickingarea?: model_tickingarea;
/** //time */
time?: model_time;
/** //title */
title?: model_title;
/** //titleraw */
titleraw?: model_titleraw;
/** //toggledownfall */
toggledownfall?: model_toggledownfall;
/** //tp */
tp?: model_tp;
/** //w */
w?: model_w;
/** //weather */
weather?: model_weather;
/** //whitelist */
whitelist?: model_whitelist;
/** //wsserver */
wsserver?: model_wsserver;
/** //xp */
xp?: model_xp;
}
export interface model_allowlist {
/** /allowlist <action: AllowListAction> [name: string] */
name?: string;
/** /allowlist <action: AllowListAction> */
action: AllowListAction;
}
export interface model_alwaysday {
/** /alwaysday [lock: Boolean] */
lock?: Boolean;
}
export interface model_camerashake_add {
/** /camerashake add <player: target> [intensity: float] [seconds: float] [shakeType: CameraShakeType] */
shakeType?: CameraShakeType;
/** /camerashake add <player: target> [intensity: float] [seconds: float] */
seconds?: number;
/** /camerashake add <player: target> [intensity: float] */
intensity?: number;
/** /camerashake add <player: target> */
player?: Target;
}
export interface model_camerashake_stop {
/** /camerashake stop [player: target] */
player?: Target;
}
export interface model_camerashake {
/** /camerashake add */
add?: model_camerashake_add;
/** /camerashake stop */
stop?: model_camerashake_stop;
}
export interface model_changesetting_allow_cheats {
/** /changesetting allow-cheats <value: Boolean> */
value?: Boolean;
}
export interface model_changesetting_difficulty {
/** /changesetting difficulty <value: int> */
value: Difficulty | number;
}
export interface model_changesetting {
/** /changesetting allow-cheats */
allow_cheats?: model_changesetting_allow_cheats;
/** /changesetting difficulty */
difficulty?: model_changesetting_difficulty;
}
export interface model_clear {
/** /clear [player: target] [itemName: Item] [data: int] [maxCount: int] */
maxCount?: number;
/** /clear [player: target] [itemName: Item] [data: int] */
data?: number;
/** /clear [player: target] [itemName: Item] */
itemName?: string;
/** /clear [player: target] */
player?: Target;
}
export interface model_clearspawnpoint {
/** /clearspawnpoint [player: target] */
player?: Target;
}
export interface model_clone_filtered {
/** /clone <begin: x y z> <end: x y z> <destination: x y z> filtered <cloneMode: CloneMode> <tileName: Block> <blockStates: block states> */
blockStates?: any;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> filtered <cloneMode: CloneMode> <tileName: Block> <tileData: int> */
tileData?: number;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> filtered <cloneMode: CloneMode> <tileName: Block> */
tileName?: string;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> filtered <cloneMode: CloneMode> */
cloneMode?: CloneMode;
}
export interface model_clone {
/** /clone <begin: x y z> <end: x y z> <destination: x y z> [maskMode: MaskMode] [cloneMode: CloneMode] */
cloneMode?: CloneMode;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> [maskMode: MaskMode] */
maskMode?: MaskMode;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> filtered */
filtered?: model_clone_filtered;
/** /clone <begin: x y z> <end: x y z> <destination: x y z> */
destination: Vector;
/** /clone <begin: x y z> <end: x y z> */
end: Vector;
/** /clone <begin: x y z> */
begin: Vector;
}
export interface model_connect {
/** /connect <serverUri: text> */
serverUri: string;
}
export interface model_damage_entity {
/** /damage <target: target> <amount: int> <cause: DamageCause> entity <damager: target> */
damager: Target;
}
export interface model_damage {
/** /damage <target: target> <amount: int> <cause: DamageCause> entity */
entity: model_damage_entity;
/** /damage <target: target> <amount: int> [cause: DamageCause] */
cause?: DamageCause;
/** /damage <target: target> <amount: int> */
amount: number;
/** /damage <target: target> */
target: Target;
}
export interface model_daylock {
/** /daylock [lock: Boolean] */
lock?: Boolean;
}
export interface model_deop {
/** /deop <player: target> */
player: Target;
}
export interface model_dialogue_change {
/** /dialogue change <npc: target> <sceneName: string> [players: target] */
players?: Target;
/** /dialogue change <npc: target> <sceneName: string> */
sceneName?: string;
/** /dialogue change <npc: target> */
npc?: Target;
}
export interface model_dialogue_open {
/** /dialogue open <npc: target> <player: target> [sceneName: string] */
sceneName?: string;
/** /dialogue open <npc: target> <player: target> */
player?: Target;
/** /dialogue open <npc: target> */
npc?: Target;
}
export interface model_dialogue {
/** /dialogue change */
change?: model_dialogue_change;
/** /dialogue open */
open?: model_dialogue_open;
}
export interface model_difficulty {
/** /difficulty <difficulty: int> */
difficulty: Difficulty | number;
}
export interface model_effect {
/** /effect <player: target> <effect: Effect> [seconds: int] [amplifier: int] [hideParticles: Boolean] */
hideParticles?: Boolean;
/** /effect <player: target> <effect: Effect> [seconds: int] [amplifier: int] */
amplifier?: number;
/** /effect <player: target> <effect: Effect> [seconds: int] */
seconds?: number;
/** /effect <player: target> <effect: Effect> */
effect?: string;
/** /effect <player: target> clear */
clear?: boolean;
/** /effect <player: target> */
player: Target;
}
export interface model_enchant {
/** /enchant <player: target> <enchantmentName: Enchant> [level: int] */
level?: number;
/** /enchant <player: target> <enchantmentId: int> */
enchantmentId?: number;
/** /enchant <player: target> <enchantmentName: Enchant> */
enchantmentName?: string;
/** /enchant <player: target> */
player: Target;
}
export interface model_event_entity {
/** /event entity <target: target> <eventName: string> */
eventName: string;
/** /event entity <target: target> */
target: Target;
}
export interface model_event {
/** /event entity */
entity: model_event_entity;
}
export interface model_execute_detect {
/** /execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> <data: int> <command: executeCommand> */
command?: (() => void) | CommandRoot;
/** /execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> <data: int> */
data?: number;
/** /execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> */
block?: string;
/** /execute <origin: target> <position: x y z> detect <detectPos: x y z> */
detectPos?: Vector;
}
export interface model_execute {
/** /execute <origin: target> <position: x y z> <command: executeCommand> */
command?: (() => void) | CommandRoot;
/** /execute <origin: target> <position: x y z> detect */
detect?: model_execute_detect;
/** /execute <origin: target> <position: x y z> */
position: Vector;
/** /execute <origin: target> */
origin: Target;
}
export interface model_fill_replace {
/** /fill <from: x y z> <to: x y z> <tileName: Block> <blockStates: block states> replace [replaceTileName: Block] [replaceBlockStates: block states] */
replaceBlockStates?: any;
/** /fill <from: x y z> <to: x y z> <tileName: Block> <tileData: int> replace [replaceTileName: Block] */
replaceTileName?: string;
/** /fill <from: x y z> <to: x y z> <tileName: Block> <tileData: int> replace [replaceTileName: Block] [replaceDataValue: int] */
replaceDataValue?: number;
}
export interface model_fill {
/** /fill <from: x y z> <to: x y z> <tileName: Block> <tileData: int> replace */
replace?: model_fill_replace;
/** /fill <from: x y z> <to: x y z> <tileName: Block> [blockStates: block states] */
blockStates?: any;
/** /fill <from: x y z> <to: x y z> <tileName: Block> [tileData: int] */
tileData?: number;
/** /fill <from: x y z> <to: x y z> <tileName: Block> [tileData: int] [oldBlockHandling: FillMode] */
oldBlockHandling?: FillMode;
/** /fill <from: x y z> <to: x y z> <tileName: Block> */
tileName: string;
/** /fill <from: x y z> <to: x y z> */
to: Vector;
/** /fill <from: x y z> */
from: Vector;
}
export interface model_fog_push {
/** /fog <victim: target> push <fogId: string> <userProvidedId: string> */
userProvidedId?: string;
/** /fog <victim: target> push <fogId: string> */
fogId?: string;
}
export interface model_fog {
/** /fog <victim: target> <mode: delete> <userProvidedId: string> */
userProvidedId?: string;
/** /fog <victim: target> <mode: delete> */
mode?: FogDelete;
/** /fog <victim: target> push */
push?: model_fog_push;
/** /fog <victim: target> */
victim: Target;
}
export interface model_function {
/** /function <name: filepath> */
name: McFunctionCaller | string;
}
export interface model_gamemode {
/** /gamemode <gameMode: int> [player: target] */
player?: Target;
/** /gamemode <gameMode: int> */
gameMode: GameMode | number;
}
export interface model_gamerule {
/** /gamerule <rule: IntGameRule> [value: int] */
value?: Boolean | number;
/** /gamerule <rule: IntGameRule> */
rule: GameRule | GameRule;
}
export interface model_give {
/** /give <player: target> <itemName: Item> [amount: int] [data: int] [components: json] */
components?: any;
/** /give <player: target> <itemName: Item> [amount: int] [data: int] */
data?: number;
/** /give <player: target> <itemName: Item> [amount: int] */
amount?: number;
/** /give <player: target> <itemName: Item> */
itemName: string;
/** /give <player: target> */
player: Target;
}
export interface model_help {
/** /help <page: int> */
page?: number;
/** /help [command: CommandName] */
command?: string;
}
export interface model_kick {
/** /kick <name: target> <reason: message> */
reason: string;
/** /kick <name: target> */
name: Target;
}
export interface model_kill {
/** /kill [target: target] */
target?: Target;
}
export interface model_list {}
export interface model_locate_biome {
/** /locate biome <biome: Biome> */
biome?: Biome;
}
export interface model_locate_structure {
/** /locate structure <structure: Structure> [useNewChunksOnly: Boolean] */
useNewChunksOnly?: Boolean;
/** /locate structure <structure: Structure> */
structure?: Structure;
}
export interface model_locate {
/** /locate <feature: Structure> [useNewChunksOnly: Boolean] */
useNewChunksOnly?: Boolean;
/** /locate <feature: Structure> */
feature?: Structure;
/** /locate biome */
biome?: model_locate_biome;
/** /locate structure */
structure?: model_locate_structure;
}
export interface model_loot_give_kill {
/** /loot give <players: target> kill <entity: target> <tool: string> */
tool?: string;
/** /loot give <players: target> kill <entity: target> */
entity?: Target;
}
export interface model_loot_give_loot {
/** /loot give <players: target> loot <loot_table: string> <tool: string> */
tool?: string;
/** /loot give <players: target> loot <loot_table: string> */
loot_table?: string;
}
export interface model_loot_give {
/** /loot give <players: target> kill */
kill?: model_loot_give_kill;
/** /loot give <players: target> loot */
loot?: model_loot_give_loot;
/** /loot give <players: target> */
players?: Target;
}
export interface model_loot_insert_kill {
/** /loot insert <position: x y z> kill <entity: target> <tool: string> */
tool?: string;
/** /loot insert <position: x y z> kill <entity: target> */
entity?: Target;
}
export interface model_loot_insert_loot {
/** /loot insert <position: x y z> loot <loot_table: string> <tool: string> */
tool?: string;
/** /loot insert <position: x y z> loot <loot_table: string> */
loot_table?: string;
}
export interface model_loot_insert {
/** /loot insert <position: x y z> kill */
kill?: model_loot_insert_kill;
/** /loot insert <position: x y z> loot */
loot?: model_loot_insert_loot;
/** /loot insert <position: x y z> */
position?: Vector;
}
export interface model_loot_replace_entity_kill {
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> kill <entity: target> <tool: string> */
tool?: string;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> kill <entity: target> */
entity?: Target;
}
export interface model_loot_replace_entity_loot {
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> loot <loot_table: string> <tool: string> */
tool?: string;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> loot <loot_table: string> */
loot_table?: string;
}
export interface model_loot_replace_entity {
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> kill */
kill?: model_loot_replace_entity_kill;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> loot */
loot?: model_loot_replace_entity_loot;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> <count: int> */
count?: number;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> */
slotId?: number;
/** /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> */
slotType?: EntityEquipmentSlot;
/** /loot replace entity <entity: target> */
entity?: Target;
}
export interface model_loot_replace {
/** /loot replace entity */
entity?: model_loot_replace_entity;
}
export interface model_loot_spawn_kill {
/** /loot spawn <position: x y z> kill <entity: target> <tool: string> */
tool?: string;
/** /loot spawn <position: x y z> kill <entity: target> */
entity?: Target;
}
export interface model_loot_spawn_loot {
/** /loot spawn <position: x y z> loot <loot_table: string> <tool> */
tool?: boolean;
/** /loot spawn <position: x y z> loot <loot_table: string> */
loot_table?: string;
}
export interface model_loot_spawn {
/** /loot spawn <position: x y z> kill */
kill?: model_loot_spawn_kill;
/** /loot spawn <position: x y z> loot */
loot?: model_loot_spawn_loot;
/** /loot spawn <position: x y z> */
position?: Vector;
}
export interface model_loot {
/** /loot give */
give?: model_loot_give;
/** /loot insert */
insert?: model_loot_insert;
/** /loot replace */
replace?: model_loot_replace;
/** /loot spawn */
spawn?: model_loot_spawn;
}
export interface model_me {
/** /me <message: message> */
message: string;
}
export interface model_mobevent {
/** /mobevent <event: MobEvent> [value: Boolean] */
value?: Boolean;
/** /mobevent <event: MobEvent> */
event: MobEvent;
}
export interface model_msg {
/** /msg <target: target> <message: message> */
message: string;
/** /msg <target: target> */
target: Target;
}
export interface model_music_play {
/** /music play <trackName: string> [volume: float] [fadeSeconds: float] [repeatMode: MusicRepeatMode] */
repeatMode?: MusicRepeatMode;
/** /music play <trackName: string> [volume: float] [fadeSeconds: float] */
fadeSeconds?: number;
/** /music play <trackName: string> [volume: float] */
volume?: number;
/** /music play <trackName: string> */
trackName?: string;
}
export interface model_music_queue {
/** /music queue <trackName: string> [volume: float] [fadeSeconds: float] [repeatMode: MusicRepeatMode] */
repeatMode?: MusicRepeatMode;
/** /music queue <trackName: string> [volume: float] [fadeSeconds: float] */
fadeSeconds?: number;
/** /music queue <trackName: string> [volume: float] */
volume?: number;
/** /music queue <trackName: string> */
trackName?: string;
}
export interface model_music_stop {
/** /music stop [fadeSeconds: float] */
fadeSeconds?: number;
}
export interface model_music_volume {
/** /music volume <volume: float> */
volume?: number;
}
export interface model_music {
/** /music play */
play?: model_music_play;
/** /music queue */
queue?: model_music_queue;
/** /music stop */
stop?: model_music_stop;
/** /music volume */
volume?: model_music_volume;
}
export interface model_op {
/** /op <player: target> */
player: Target;
}
export interface model_ops {
/** /ops <action: PermissionsAction> */
action: PermissionsAction;
}
export interface model_particle {
/** /particle <effect: string> [position: x y z] */
position?: Vector;
/** /particle <effect: string> */
effect: string;
}
export interface model_permission {
/** /permission <action: PermissionsAction> */
action: PermissionsAction;
}
export interface model_playanimation {
/** /playanimation <entity: target> <animation: string> [next_state: string] [blend_out_time: float] [stop_expression: string] [controller: string] */
controller?: string;
/** /playanimation <entity: target> <animation: string> [next_state: string] [blend_out_time: float] [stop_expression: string] */
stop_expression?: string;
/** /playanimation <entity: target> <animation: string> [next_state: string] [blend_out_time: float] */
blend_out_time?: number;
/** /playanimation <entity: target> <animation: string> [next_state: string] */
next_state?: string;
/** /playanimation <entity: target> <animation: string> */
animation: string;
/** /playanimation <entity: target> */
entity: Target;
}
export interface model_playsound {
/** /playsound <sound: string> [player: target] [position: x y z] [volume: float] [pitch: float] [minimumVolume: float] */
minimumVolume?: number;
/** /playsound <sound: string> [player: target] [position: x y z] [volume: float] [pitch: float] */
pitch?: number;
/** /playsound <sound: string> [player: target] [position: x y z] [volume: float] */
volume?: number;
/** /playsound <sound: string> [player: target] [position: x y z] */
position?: Vector;
/** /playsound <sound: string> [player: target] */
player?: Target;
/** /playsound <sound: string> */
sound: string;
}
export interface model_reload {}
export interface model_replaceitem_block_slot_container {
/** /replaceitem block <position: x y z> slot.container <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] [data: int] [components: json] */
components?: any;
/** /replaceitem block <position: x y z> slot.container <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] [data: int] */
data?: number;
/** /replaceitem block <position: x y z> slot.container <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] */
amount?: number;
/** /replaceitem block <position: x y z> slot.container <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> */
itemName?: string;
/** /replaceitem block <position: x y z> slot.container <slotId: int> <oldItemHandling: ReplaceMode> */
oldItemHandling?: ReplaceMode;
/** /replaceitem block <position: x y z> slot.container <slotId: int> */
slotId?: number;
}
export interface model_replaceitem_block {
/** /replaceitem block <position: x y z> slot.container */
slot_container?: model_replaceitem_block_slot_container;
/** /replaceitem block <position: x y z> */
position?: Vector;
}
export interface model_replaceitem_entity {
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] [data: int] [components: json] */
components?: any;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] [data: int] */
data?: number;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] */
amount?: number;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> */
itemName?: string;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> */
oldItemHandling?: ReplaceMode;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> */
slotId?: number;
/** /replaceitem entity <target: target> <slotType: EntityEquipmentSlot> */
slotType?: EntityEquipmentSlot;
/** /replaceitem entity <target: target> */
target?: Target;
}
export interface model_replaceitem {
/** /replaceitem block */
block?: model_replaceitem_block;
/** /replaceitem entity */
entity?: model_replaceitem_entity;
}
export interface model_ride_start_riding {
/** /ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType] */
howToFill?: FillType;
/** /ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] */
teleportRules?: TeleportRules;
/** /ride <riders: target> start_riding <ride: target> */
ride?: Target;
}
export interface model_ride_summon_ride {
/** /ride <riders: target> summon_ride <entityType: EntityType> [rideRules: RideRules] [spawnEvent: string] [nameTag: string] */
nameTag?: string;
/** /ride <riders: target> summon_ride <entityType: EntityType> [rideRules: RideRules] [spawnEvent: string] */
spawnEvent?: string;
/** /ride <riders: target> summon_ride <entityType: EntityType> [rideRules: RideRules] */
rideRules?: RideRules;
/** /ride <riders: target> summon_ride <entityType: EntityType> */
entityType?: string;
}
export interface model_ride_summon_rider {
/** /ride <rides: target> summon_rider <entityType: EntityType> [spawnEvent: string] [nameTag: string] */
nameTag?: string;
/** /ride <rides: target> summon_rider <entityType: EntityType> [spawnEvent: string] */
spawnEvent?: string;
/** /ride <rides: target> summon_rider <entityType: EntityType> */
entityType?: string;
}
export interface model_ride {
/** /ride <riders: target> start_riding */
start_riding?: model_ride_start_riding;
/** /ride <riders: target> stop_riding */
stop_riding?: boolean;
/** /ride <riders: target> summon_ride */
summon_ride?: model_ride_summon_ride;
/** /ride <riders: target> */
riders?: Target;
/** /ride <rides: target> evict_riders */
evict_riders?: boolean;
/** /ride <rides: target> summon_rider */
summon_rider?: model_ride_summon_rider;
/** /ride <rides: target> */
rides?: Target;
}
export interface model_save {
/** /save <mode: SaveMode> */
mode: SaveMode;
}
export interface model_say {
/** /say <message: message> */
message: string;
}
export interface model_schedule_on_area_loaded_add_circle {
/** /schedule on_area_loaded add circle <center: x y z> <radius: int> <function: filepath> */
function?: McFunctionCaller | string;
/** /schedule on_area_loaded add circle <center: x y z> <radius: int> */
radius?: number;
/** /schedule on_area_loaded add circle <center: x y z> */
center?: Vector;
}
export interface model_schedule_on_area_loaded_add_tickingarea {
/** /schedule on_area_loaded add tickingarea <name: string> <function: filepath> */
function?: McFunctionCaller | string;
/** /schedule on_area_loaded add tickingarea <name: string> */
name?: string;
}
export interface model_schedule_on_area_loaded_add {
/** /schedule on_area_loaded add <from: x y z> <to: x y z> <function: filepath> */
function?: McFunctionCaller | string;
/** /schedule on_area_loaded add <from: x y z> <to: x y z> */
to?: Vector;
/** /schedule on_area_loaded add <from: x y z> */
from?: Vector;
/** /schedule on_area_loaded add circle */
circle?: model_schedule_on_area_loaded_add_circle;
/** /schedule on_area_loaded add tickingarea */
tickingarea?: model_schedule_on_area_loaded_add_tickingarea;
}
export interface model_schedule_on_area_loaded {
/** /schedule on_area_loaded add */
add: model_schedule_on_area_loaded_add;
}
export interface model_schedule {
/** /schedule on_area_loaded */
on_area_loaded: model_schedule_on_area_loaded;
}
export interface model_scoreboard_objectives_add_dummy {
/** /scoreboard objectives add <objective: string> dummy [displayName: string] */
displayName?: string;
}
export interface model_scoreboard_objectives_add {
/** /scoreboard objectives add <objective: string> dummy */
dummy?: model_scoreboard_objectives_add_dummy;
/** /scoreboard objectives add <objective: string> */
objective?: string;
}
export interface model_scoreboard_objectives_remove {
/** /scoreboard objectives remove <objective: string> */
objective?: string;
}
export interface model_scoreboard_objectives_setdisplay_list_sidebar {
/** /scoreboard objectives setdisplay <list|sidebar> [objective: string] [ascending|descending] */
ascending?: boolean;
/** /scoreboard objectives setdisplay <list|sidebar> [objective: string] [ascending|descending] */
descending?: boolean;
/** /scoreboard objectives setdisplay <list|sidebar> [objective: string] */
objective?: string;
}
export interface model_scoreboard_objectives_setdisplay_belowname {
/** /scoreboard objectives setdisplay belowname [objective: string] */
objective?: string;
}
export interface model_scoreboard_objectives_setdisplay {
/** /scoreboard objectives setdisplay <list|sidebar> */
list?: model_scoreboard_objectives_setdisplay_list_sidebar;
/** /scoreboard objectives setdisplay <list|sidebar> */
sidebar?: model_scoreboard_objectives_setdisplay_list_sidebar;
/** /scoreboard objectives setdisplay belowname */
belowname?: model_scoreboard_objectives_setdisplay_belowname;
}
export interface model_scoreboard_objectives {
/** /scoreboard objectives add */
add?: model_scoreboard_objectives_add;
/** /scoreboard objectives list */
list?: boolean;
/** /scoreboard objectives remove */
remove?: model_scoreboard_objectives_remove;
/** /scoreboard objectives setdisplay */
setdisplay?: model_scoreboard_objectives_setdisplay;
}
export interface model_scoreboard_players_add_remove_set {
/** /scoreboard players <add|remove|set> <player: target> <objective: string> <count: int> */
count?: number;
/** /scoreboard players <add|remove|set> <player: target> <objective: string> */
objective?: string;
/** /scoreboard players <add|remove|set> <player: target> */
player?: Target;
}
export interface model_scoreboard_players_list {
/** /scoreboard players list [playername: target] */
playername?: Target;
}
export interface model_scoreboard_players_operation {
/** /scoreboard players operation <targetName: target> <targetObjective: string> <operation: operator> <selector: target> <objective: string> */
objective?: string;
/** /scoreboard players operation <targetName: target> <targetObjective: string> <operation: operator> <selector: target> */
selector?: Target;
/** /scoreboard players operation <targetName: target> <targetObjective: string> <operation: operator> */
operation?: operator;
/** /scoreboard players operation <targetName: target> <targetObjective: string> */
targetObjective?: string;
/** /scoreboard players operation <targetName: target> */
targetName?: Target;
}
export interface model_scoreboard_players_random {
/** /scoreboard players random <player: target> <objective: string> <min: int> <max: int> */
max?: number;
/** /scoreboard players random <player: target> <objective: string> <min: int> */
min?: number;
/** /scoreboard players random <player: target> <objective: string> */
objective?: string;
/** /scoreboard players random <player: target> */
player?: Target;
}
export interface model_scoreboard_players_reset {
/** /scoreboard players reset <player: target> [objective: string] */
objective?: string;
/** /scoreboard players reset <player: target> */
player?: Target;
}
export interface model_scoreboard_players_test {
/** /scoreboard players test <player: target> <objective: string> <min: wildcard int> [max: wildcard int] */
max?: "*" | number;
/** /scoreboard players test <player: target> <objective: string> <min: wildcard int> */
min?: "*" | number;
/** /scoreboard players test <player: target> <objective: string> */
objective?: string;
/** /scoreboard players test <player: target> */
player?: Target;
}
export interface model_scoreboard_players {
/** /scoreboard players <add|remove|set> */
add?: model_scoreboard_players_add_remove_set;
/** /scoreboard players <add|remove|set> */
remove?: model_scoreboard_players_add_remove_set;
/** /scoreboard players <add|remove|set> */
set?: model_scoreboard_players_add_remove_set;
/** /scoreboard players list */
list?: model_scoreboard_players_list;
/** /scoreboard players operation */
operation?: model_scoreboard_players_operation;
/** /scoreboard players random */
random?: model_scoreboard_players_random;
/** /scoreboard players reset */
reset?: model_scoreboard_players_reset;
/** /scoreboard players test */
test?: model_scoreboard_players_test;
}
export interface model_scoreboard {
/** /scoreboard objectives */
objectives?: model_scoreboard_objectives;
/** /scoreboard players */
players?: model_scoreboard_players;
}
export interface model_setblock {
/** /setblock <position: x y z> <tileName: Block> [tileData: int] [replace|destroy|keep] */
replace?: boolean;
/** /setblock <position: x y z> <tileName: Block> [tileData: int] [replace|destroy|keep] */
destroy?: boolean;
/** /setblock <position: x y z> <tileName: Block> [tileData: int] [replace|destroy|keep] */
keep?: boolean;
/** /setblock <position: x y z> <tileName: Block> [blockStates: block states] */
blockStates?: any;
/** /setblock <position: x y z> <tileName: Block> [tileData: int] */
tileData?: number;
/** /setblock <position: x y z> <tileName: Block> */
tileName: string;
/** /setblock <position: x y z> */
position: Vector;
}
export interface model_setmaxplayers {
/** /setmaxplayers <maxPlayers: int> */
maxPlayers: number;
}
export interface model_setworldspawn {
/** /setworldspawn [spawnPoint: x y z] */
spawnPoint?: Vector;
}
export interface model_spawnpoint {
/** /spawnpoint [player: target] [spawnPos: x y z] */
spawnPos?: Vector;
/** /spawnpoint [player: target] */
player?: Target;
}
export interface model_spreadplayers {
/** /spreadplayers <x: value> <z: value> <spreadDistance: float> <maxRange: float> <victim: target> */
victim: Target;
/** /spreadplayers <x: value> <z: value> <spreadDistance: float> <maxRange: float> */
maxRange: number;
/** /spreadplayers <x: value> <z: value> <spreadDistance: float> */
spreadDistance: number;
/** /spreadplayers <x: value> <z: value> */
z: number;
/** /spreadplayers <x: value> */
x: number;
}
export interface model_stop {}
export interface model_stopsound {
/** /stopsound <player: target> [sound: string] */
sound?: string;
/** /stopsound <player: target> */
player: Target;
}
export interface model_structure_delete {
/** /structure delete <name: string> */
name?: string;
}
export interface model_structure_load {
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [includeEntities: Boolean] [includeBlocks: Boolean] [integrity: float] [seed: string] */
seed?: string;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [includeEntities: Boolean] [includeBlocks: Boolean] [integrity: float] */
integrity?: number;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [includeEntities: Boolean] [includeBlocks: Boolean] */
includeBlocks?: Boolean;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [includeEntities: Boolean] */
includeEntities?: Boolean;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [animationMode: StructureAnimationMode] [animationSeconds: float] */
animationSeconds?: number;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [animationMode: StructureAnimationMode] */
animationMode?: StructureAnimationMode;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] */
mirror?: Mirror;
/** /structure load <name: string> <to: x y z> [rotation: Rotation] */
rotation?: Rotation;
/** /structure load <name: string> <to: x y z> */
to?: Vector;
/** /structure load <name: string> */
name?: string;
}
export interface model_structure_save {
/** /structure save <name: string> <from: x y z> <to: x y z> [includeEntities: Boolean] [saveMode: StructureSaveMode] [includeBlocks: Boolean] */
includeBlocks?: Boolean;
/** /structure save <name: string> <from: x y z> <to: x y z> [saveMode: StructureSaveMode] */
saveMode?: StructureSaveMode;
/** /structure save <name: string> <from: x y z> <to: x y z> [includeEntities: Boolean] */
includeEntities?: Boolean;
/** /structure save <name: string> <from: x y z> <to: x y z> */
to?: Vector;
/** /structure save <name: string> <from: x y z> */
from?: Vector;
/** /structure save <name: string> */
name?: string;
}
export interface model_structure {
/** /structure delete */
delete?: model_structure_delete;
/** /structure load */
load?: model_structure_load;
/** /structure save */
save?: model_structure_save;
}
export interface model_summon {
/** /summon <entityType: EntityType> [spawnPos: x y z] */
spawnPos?: Vector;
/** /summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] [nameTag: string] */
nameTag?: string;
/** /summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] */
spawnEvent?: string;
/** /summon <entityType: EntityType> */
entityType: string;
}
export interface model_tag_add_remove {
/** /tag <entity: target> <add|remove> <name: string> */
name?: string;
}
export interface model_tag {
/** /tag <entity: target> <add|remove> */
add?: model_tag_add_remove;
/** /tag <entity: target> <add|remove> */
remove?: model_tag_add_remove;
/** /tag <entity: target> list */
list?: boolean;
/** /tag <entity: target> */
entity: Target;
}
export interface model_teleport_facing {
/** /teleport <destination: x y z> facing <lookAtPosition: x y z> [checkForBlocks: Boolean] */
checkForBlocks?: Boolean;
/** /teleport <destination: x y z> facing <lookAtEntity: target> */
lookAtEntity?: Target;
/** /teleport <destination: x y z> facing <lookAtPosition: x y z> */
lookAtPosition?: Vector;
}
export interface model_teleport {
/** /teleport <destination: x y z> [yRot: value] [xRot: value] [checkForBlocks: Boolean] */
checkForBlocks?: Boolean;
/** /teleport <destination: x y z> */
destination?: Target | Vector;
/** /teleport <destination: x y z> [yRot: value] [xRot: value] */
xRot?: number;
/** /teleport <destination: x y z> [yRot: value] */
yRot?: number;
/** /teleport <destination: x y z> facing */
facing?: model_teleport_facing;
/** /teleport <victim: target> */
victim?: Target;
}
export interface model_tell {
/** /tell <target: target> <message: message> */
message: string;
/** /tell <target: target> */
target: Target;
}
export interface model_tellraw {
/** /tellraw <target: target> <raw json message: messageJson> */
raw_json_message: RawMessage;
/** /tellraw <target: target> */
target: Target;
}
export interface model_testfor {
/** /testfor <victim: target> */
victim: Target;
}
export interface model_testforblock {
/** /testforblock <position: x y z> <tileName: Block> [blockStates: block states] */
blockStates?: any;
/** /testforblock <position: x y z> <tileName: Block> [dataValue: int] */
dataValue?: number;
/** /testforblock <position: x y z> <tileName: Block> */
tileName: string;
/** /testforblock <position: x y z> */
position: Vector;
}
export interface model_testforblocks {
/** /testforblocks <begin: x y z> <end: x y z> <destination: x y z> [masked|all] */
masked?: boolean;
/** /testforblocks <begin: x y z> <end: x y z> <destination: x y z> [masked|all] */
all?: boolean;
/** /testforblocks <begin: x y z> <end: x y z> <destination: x y z> */
destination: Vector;
/** /testforblocks <begin: x y z> <end: x y z> */
end: Vector;
/** /testforblocks <begin: x y z> */
begin: Vector;
}
export interface model_tickingarea_add_circle {
/** /tickingarea add circle <center: x y z> <radius: int> [name: string] [preload: Boolean] */
preload?: Boolean;
/** /tickingarea add circle <center: x y z> <radius: int> [name: string] */
name?: string;
/** /tickingarea add circle <center: x y z> <radius: int> */
radius?: number;
/** /tickingarea add circle <center: x y z> */
center?: Vector;
}
export interface model_tickingarea_add {
/** /tickingarea add <from: x y z> <to: x y z> [name: string] [preload: Boolean] */
preload?: Boolean;
/** /tickingarea add <from: x y z> <to: x y z> [name: string] */
name?: string;
/** /tickingarea add <from: x y z> <to: x y z> */
to?: Vector;
/** /tickingarea add <from: x y z> */
from?: Vector;
/** /tickingarea add circle */
circle?: model_tickingarea_add_circle;
}
export interface model_tickingarea_list {
/** /tickingarea list [all-dimensions: AllDimensions] */
all_dimensions?: AllDimensions;
}
export interface model_tickingarea_preload {
/** /tickingarea preload <position: x y z> [preload: Boolean] */
preload?: Boolean;
/** /tickingarea preload <name: string> */
name?: string;
/** /tickingarea preload <position: x y z> */
position?: Vector;
}
export interface model_tickingarea_remove {
/** /tickingarea remove <name: string> */
name?: string;
/** /tickingarea remove <position: x y z> */
position?: Vector;
}
export interface model_tickingarea {
/** /tickingarea add */
add?: model_tickingarea_add;
/** /tickingarea list */
list?: model_tickingarea_list;
/** /tickingarea preload */
preload?: model_tickingarea_preload;
/** /tickingarea remove */
remove?: model_tickingarea_remove;
/** /tickingarea remove_all */
remove_all?: boolean;
}
export interface model_time_add {
/** /time add <amount: int> */
amount?: number;
}
export interface model_time_query {
/** /time query <time: TimeQuery> */
time?: TimeQuery;
}
export interface model_time_set {
/** /time set <amount: int> */
amount?: number;
/** /time set <time: TimeSpec> */
time?: TimeSpec;
}
export interface model_time {
/** /time add */
add?: model_time_add;
/** /time query */
query?: model_time_query;
/** /time set */
set?: model_time_set;
}
export interface model_title_title_subtitle_actionbar {
/** /title <player: target> <title|subtitle|actionbar> <titleText: message> */
titleText?: string;
}
export interface model_title_times {
/** /title <player: target> times <fadeIn: int> <stay: int> <fadeOut: int> */
fadeOut?: number;
/** /title <player: target> times <fadeIn: int> <stay: int> */
stay?: number;
/** /title <player: target> times <fadeIn: int> */
fadeIn?: number;
}
export interface model_title {
/** /title <player: target> <title|subtitle|actionbar> */
title?: model_title_title_subtitle_actionbar;
/** /title <player: target> <title|subtitle|actionbar> */
subtitle?: model_title_title_subtitle_actionbar;
/** /title <player: target> <title|subtitle|actionbar> */
actionbar?: model_title_title_subtitle_actionbar;
/** /title <player: target> clear */
clear?: boolean;
/** /title <player: target> reset */
reset?: boolean;
/** /title <player: target> times */
times?: model_title_times;
/** /title <player: target> */
player: Target;
}
export interface model_titleraw_times {
/** /titleraw <player: target> times <fadeIn: int> <stay: int> <fadeOut: int> */
fadeOut?: number;
/** /titleraw <player: target> times <fadeIn: int> <stay: int> */
stay?: number;
/** /titleraw <player: target> times <fadeIn: int> */
fadeIn?: number;
}
export interface model_titleraw {
/** /titleraw <player: target> <titleLocation: TitleRawSet> <raw json titleText: messageJson> */
raw_json_titleText?: RawMessage;
/** /titleraw <player: target> <titleLocation: TitleRawSet> */
titleLocation?: TitleRawSet;
/** /titleraw <player: target> clear */
clear?: boolean;
/** /titleraw <player: target> reset */
reset?: boolean;
/** /titleraw <player: target> times */
times?: model_titleraw_times;
/** /titleraw <player: target> */
player: Target;
}
export interface model_toggledownfall {}
export interface model_tp_facing {
/** /tp <destination: x y z> facing <lookAtPosition: x y z> [checkForBlocks: Boolean] */
checkForBlocks?: Boolean;
/** /tp <destination: x y z> facing <lookAtEntity: target> */
lookAtEntity?: Target;
/** /tp <destination: x y z> facing <lookAtPosition: x y z> */
lookAtPosition?: Vector;
}
export interface model_tp {
/** /tp <destination: x y z> [yRot: value] [xRot: value] [checkForBlocks: Boolean] */
checkForBlocks?: Boolean;
/** /tp <destination: x y z> */
destination?: Target | Vector;
/** /tp <destination: x y z> [yRot: value] [xRot: value] */
xRot?: number;
/** /tp <destination: x y z> [yRot: value] */
yRot?: number;
/** /tp <destination: x y z> facing */
facing?: model_tp_facing;
/** /tp <victim: target> */
victim?: Target;
}
export interface model_w {
/** /w <target: target> <message: message> */
message: string;
/** /w <target: target> */
target: Target;
}
export interface model_weather_clear_rain_thunder {
/** /weather <clear|rain|thunder> [duration: int] */
duration?: number;
}
export interface model_weather {
/** /weather <clear|rain|thunder> */
clear?: model_weather_clear_rain_thunder;
/** /weather <clear|rain|thunder> */
rain?: model_weather_clear_rain_thunder;
/** /weather <clear|rain|thunder> */
thunder?: model_weather_clear_rain_thunder;
/** /weather query */
query?: boolean;
}
export interface model_whitelist {
/** /whitelist <action: AllowListAction> [name: string] */
name?: string;
/** /whitelist <action: AllowListAction> */
action: AllowListAction;
}
export interface model_wsserver {
/** /wsserver <serverUri: text> */
serverUri: string;
}
export interface model_xp_L {
/** /xp <amount: int> L [player: target] */
player?: Target;
}
export interface model_xp {
/** /xp <amount: int> [player: target] */
player?: Target;
/** /xp <amount: int> L */
L?: model_xp_L;
/** /xp <amount: int> */
amount: number;
}
export function allowlist(obj: model_allowlist) {
command({ allowlist: obj });
}
export function alwaysday(lock: Boolean) {
command({ alwaysday: { lock } });
}
export function camerashake(obj: model_camerashake) {
command({ camerashake: obj });
}
export function changesetting(obj: model_changesetting) {
command({ changesetting: obj });
}
export function clear(obj: model_clear) {
command({ clear: obj });
}
export function clearspawnpoint(player: Target) {
command({ clearspawnpoint: { player } });
}
export function clone(obj: model_clone) {
command({ clone: obj });
}
export function connect(serverUri: string) {
command({ connect: { serverUri } });
}
export function damage(obj: model_damage) {
command({ damage: obj });
}
export function daylock(lock: Boolean) {
command({ daylock: { lock } });
}
export function deop(player: Target) {
command({ deop: { player } });
}
export function dialogue(obj: model_dialogue) {
command({ dialogue: obj });
}
export function difficulty(difficulty: Difficulty | number) {
command({ difficulty: { difficulty } });
}
export function effect(obj: model_effect) {
command({ effect: obj });
}
export function enchant(obj: model_enchant) {
command({ enchant: obj });
}
export function event(entity: boolean) {
command({ event: { entity } });
}
export function execute(obj: model_execute) {
command({ execute: obj });
}
export function fill(obj: model_fill) {
command({ fill: obj });
}
export function fog(obj: model_fog) {
command({ fog: obj });
}
export function $function(name: McFunctionCaller | string) {
command({ function: { name } });
}
export function gamemode(obj: model_gamemode) {
command({ gamemode: obj });
}
export function gamerule(obj: model_gamerule) {
command({ gamerule: obj });
}
export function give(obj: model_give) {
command({ give: obj });
}
export function help(obj: model_help) {
command({ help: obj });
}
export function kick(obj: model_kick) {
command({ kick: obj });
}
export function kill(target: Target) {
command({ kill: { target } });
}
export function list() {
command({ list: {} });
}
export function locate(obj: model_locate) {
command({ locate: obj });
}
export function loot(obj: model_loot) {
command({ loot: obj });
}
export function me(message: string) {
command({ me: { message } });
}
export function mobevent(obj: model_mobevent) {
command({ mobevent: obj });
}
export function msg(obj: model_msg) {
command({ msg: obj });
}
export function music(obj: model_music) {
command({ music: obj });
}
export function op(player: Target) {
command({ op: { player } });
}
export function ops(action: PermissionsAction) {
command({ ops: { action } });
}
export function particle(obj: model_particle) {
command({ particle: obj });
}
export function permission(action: PermissionsAction) {
command({ permission: { action } });
}
export function playanimation(obj: model_playanimation) {
command({ playanimation: obj });
}
export function playsound(obj: model_playsound) {
command({ playsound: obj });
}
export function reload() {
command({ reload: {} });
}
export function replaceitem(obj: model_replaceitem) {
command({ replaceitem: obj });
}
export function ride(obj: model_ride) {
command({ ride: obj });
}
export function save(mode: SaveMode) {
command({ save: { mode } });
}
export function say(message: string) {
command({ say: { message } });
}
export function schedule(on_area_loaded: boolean) {
command({ schedule: { on_area_loaded } });
}
export function scoreboard(obj: model_scoreboard) {
command({ scoreboard: obj });
}
export function setblock(obj: model_setblock) {
command({ setblock: obj });
}
export function setmaxplayers(maxPlayers: number) {
command({ setmaxplayers: { maxPlayers } });
}
export function setworldspawn(spawnPoint: Vector) {
command({ setworldspawn: { spawnPoint } });
}
export function spawnpoint(obj: model_spawnpoint) {
command({ spawnpoint: obj });
}
export function spreadplayers(obj: model_spreadplayers) {
command({ spreadplayers: obj });
}
export function stop() {
command({ stop: {} });
}
export function stopsound(obj: model_stopsound) {
command({ stopsound: obj });
}
export function structure(obj: model_structure) {
command({ structure: obj });
}
export function summon(obj: model_summon) {
command({ summon: obj });
}
export function tag(obj: model_tag) {
command({ tag: obj });
}
export function teleport(obj: model_teleport) {
command({ teleport: obj });
}
export function tell(obj: model_tell) {
command({ tell: obj });
}
export function tellraw(obj: model_tellraw) {
command({ tellraw: obj });
}
export function testfor(victim: Target) {
command({ testfor: { victim } });
}
export function testforblock(obj: model_testforblock) {
command({ testforblock: obj });
}
export function testforblocks(obj: model_testforblocks) {
command({ testforblocks: obj });
}
export function tickingarea(obj: model_tickingarea) {
command({ tickingarea: obj });
}
export function time(obj: model_time) {
command({ time: obj });
}
export function title(obj: model_title) {
command({ title: obj });
}
export function titleraw(obj: model_titleraw) {
command({ titleraw: obj });
}
export function toggledownfall() {
command({ toggledownfall: {} });
}
export function tp(obj: model_tp) {
command({ tp: obj });
}
export function w(obj: model_w) {
command({ w: obj });
}
export function weather(obj: model_weather) {
command({ weather: obj });
}
export function whitelist(obj: model_whitelist) {
command({ whitelist: obj });
}
export function wsserver(serverUri: string) {
command({ wsserver: { serverUri } });
}
export function xp(obj: model_xp) {
command({ xp: obj });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment