Name | ModifyBlock |
Syntax | modifyblock [<location>|.../<ellipsoid>/<cuboid>] [<material>|...] (no_physics/naturally:<tool>) (delayed) (<script>) (<percent chance>|...) (source:<player>) (max_delay_ms:<#>) |
Short Description | Modifies blocks. |
Full Description | Changes blocks in the world based on the criteria given.
Use 'no_physics' to place the blocks without physics taking over the modified blocks. This is useful for block types such as portals or water. This does NOT control physics for an extended period of time. Specify (<percent chance>|...) to give a chance of each material being placed (in any material at all). Use 'naturally:' when setting a block to air to break it naturally, meaning that it will drop items. Specify the tool item that should be used for calculating drops. Use 'delayed' to make the modifyblock slowly edit blocks at a time pace roughly equivalent to the server's limits. Optionally, specify 'max_delay_ms' to control how many milliseconds the 'delayed' set can run for in any given tick (defaults to 50). Note that specifying a list of locations will take more time in parsing than in the actual block modification. Optionally, specify a script to be ran after the delayed edits finish. (Doesn't fire if delayed is not set.) Optionally, specify a source player. When set, Bukkit events will fire that identify that player as the source of a change, and potentially cancel the change. The source argument might cause weird interoperation with other plugins, use with caution. The modifyblock command is ~waitable. Refer to ~waitable. |
Related Tags | <LocationTag.material> Returns the material of the block at the location.
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | setblock, changeblock, placeblock, breakblock |
Group | world |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/world/ModifyBlockCommand.java#L62 |