Minecart With Command Block
Original Title:Minecart With Command Block
Languages:
- Chinese: 命令方块矿车
- English: Minecart With Command Block
Parent Title:
我的世界, Minecraft, マインクラフト
In Minecraft, the Minecart with Command Block is a special type of minecart that combines the functionality of a regular minecart and a command block. Similar to regular command blocks, it cannot be crafted and can only be obtained using the `/give` command or external tools. The Minecart with Command Block can be placed on rails and moves like a normal minecart. Its unique feature is that when the minecart moves on an activator rail, it executes a preset command. This allows for many automation and complex mechanisms. While it visually contains an impulse command block, it functions more like a repeating command block, executing the command once every four game ticks, which is five times per second. The command execution coordinates of the command block minecart change with the minecart's movement. Relative coordinates can be used in the commands, such as "~6 ~2 ~0" which represents the location 6 blocks south and 2 blocks above the minecart's current location. Comparators can read the execution results of command block minecarts. It was first introduced in version 1.7.2. It can be used both as a mobile command block and to execute various commands to create complex game mechanics. Notably, breaking a command block minecart only yields a regular minecart; the command block is lost.