Skip to content

Commit

Permalink
Updated setCommandBlock's 3rd argument (#3356)
Browse files Browse the repository at this point in the history
The 3rd argument is needed to set the options now
  • Loading branch information
FlooferLand committed Apr 28, 2024
1 parent 0bb2707 commit 04ad6db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,14 @@ export interface Bot extends TypedEmitter<BotEvents> {
times?: number
) => Promise<void>

setCommandBlock: (pos: Vec3, command: string, trackOutput: boolean) => void

export interface CommandBlockOptions {
mode: number,
trackOutput: boolean,
conditional: boolean,
alwaysActive: boolean
}
export function setCommandBlock(pos: Vec3, command: string, options: CommandBlockOptions) => void

clickWindow: (
slot: number,
Expand Down

0 comments on commit 04ad6db

Please sign in to comment.