Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/replcraft/lib/client.ts>Client#setBlock

A library to control special structures on the ReplCraft Minecraft server
Latest
method Client.prototype.setBlock
import { Client } from "https://deno.land/x/replcraft@v1.1.0/lib/client.ts";

Set the state of the block at the specified location inside of the structure.

Parameters

unnamed 0: Location

Location of the block to set the state of

block: Block | null

State of the new block

optional
source: Location
optional
target: Location

Returns

Promise<void>