

Using 'c', 'creative', 's', 'survival', 'a', 'adventure', '0', '1', or '2', the gamemode for the targeted player can change. Runs commands found in the corresponding function file. replace – Replace all blocks, with no dropping of current blocks.outline – Only replace the outer edge of region with specified block.keep – Only replace the air blocks in the fill region with the specified block.Drops all inner blocks as if they were mined, and replaced them with air blocks. hollow – Replace only the blocks on the outer edge of the region.destroy – Replace all blocks, drops blocks and contents as if mined with unenchanted diamond pickaxe or shovel.
#Command for 1.123 falling blocks how to#
The oldBlockHandling defines how to handle existing blocks in the region. fill įills the entire cube defined by from and to with the block named tileName (optionally specifying a tileData value). The last variant, with the detect string equal to "detect", the command is only executed if the condition, as if it was given to testforblock, is matched. In the latter two examples, the tile notation is used relative to the position of the origin target. The command in all examples can be any command (including the execute command it self), and are relative to the targeted player(s)/entities. Maximum level for a given encha ntment can't be bypassed.Įxecutes a command which can be linked to a target or a condition related to another block, as tested in the /testforblock command. effect Įnchant the item the targeted player(s) are holding, with the name (or numbered) enchantment at a given level. Gives or removes a status effect from a player. Values for int are: '0' for peaceful '1' for easy '2' for normal '3' for hard Revokes operator status for one or more players.
#Command for 1.123 falling blocks code#


If mask Mode is filtering, the tileName specifies the block to filter on. The maskMode defines how to handle destination blocks, and cloneMode defines handling of source. clone Ĭlones blocks from the cube defined by begin and end into the destination.

Sets /gamerule dodaylightcycle to false, and sets /time to 5000. This command requires Education Edition features enabled.
