So I'm making a small adventure horror map, and there's suppose to be a death scene where the player steps on a pressure plate and a vine comes and kills them, but I want the command block to not only do /kill @p , but I also want it to say words at the same time the person dies. Is there any possible way to do this?
Yes, you can.
- First, get a command block:
- Then, dig a 3x2 (with 2 being the amount of command blocks, edit this for yourself) hole
- Put command blocks at the bottom (and edit the commands).
- Put redstones on the Command Blocks by crouching (default: Shift).
- Close the top of it with a block and add a pressure plate.
- Step on it. And you are done
In newer versions of Minecraft, you can create command chains using command blocks. When the first command block is powered, all subsequent command blocks in that chain will run their commands. The advantage is that the commands will always execute in the same order you want them to, but on the same game tick, which means they will all execute at the same time.
There are two main types of command chains: impulse command chains, and repeating command chains. Impulse command chains run once when activated, while repeating command chains will keep running over and over again until their input is turned off.
- Choose which type of command chain you would like. If you would like an impulse command chain, type
/give @s command_blockin the chat. If you would like a repeating command chain, type
/give @s repeating_command_blockin the chat.
- In Minecraft 1.11 and below, you will need to replace
@swith your Minecraft username.
- Make sure you are facing the correct direction. You need to be facing opposite the direction your chain is going in when you place the command blocks in.
- Place your first command block on the ground. It will face towards you, similar to how pistons face towards you. Enter the first command of your chain into the command block.
- No matter which command chain you are using, all subsequent commands in your chain use chain command blocks. Type
/give @s chain_command_blockin the chat to get one.
- Place the chain command block adjacent to the first block so that the arrow on the 1st command block points at this new command block. Remember, when placing the command block you must face opposite the direction you want the chain to go after that step!
Here are examples of where to place your next command block. Hover your mouse over the image:
- Keep placing chain command blocks to extend your chain to as long a length as you wish! Sequencing is important, so enter your commands in the order you would like them to run. (In your case, this probably won't matter.)
Note: If you're reading this from one of my other posts, note that I refer to each step being one command block in the chain, and that the impulse/repeat command block at the start counts as the 1st step, with each subsequent chain command block being 2nd step, 3rd step, and so on.