block
Edits a block at the specified world coordinates.
Example:
world.edit {
block(100, 64, 200) {
type = Material.DIAMOND_BLOCK
}
}Content copied to clipboard
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
Edits a block at the specified location.
Example:
world.edit {
block(someLocation) {
type = Material.STONE
}
}Content copied to clipboard
Parameters
location
The location of the block
action
The action to apply to the block