block

abstract fun block(x: Int, y: Int, z: Int, action: BlockEditor.() -> Unit)

Edits a block at the specified world coordinates.

Example:

world.edit {
block(100, 64, 200) {
type = Material.DIAMOND_BLOCK
}
}

Parameters

x

The block X coordinate

y

The block Y coordinate

z

The block Z coordinate

action

The action to apply to the block

See also


abstract fun block(location: Location, action: BlockEditor.() -> Unit)

Edits a block at the specified location.

Example:

world.edit {
block(someLocation) {
type = Material.STONE
}
}

Parameters

location

The location of the block

action

The action to apply to the block

See also