Questions tagged [minecraft-commands]

Anything related to the usage of commands, command blocks and functions in the Minecraft game series. If you're building a redstone device without commands, use the "minecraft-redstone" tag instead. Always use this tag together with the "minecraft-java-edition" or "minecraft-bedrock-edition" tag.

Filter by
Sorted by
Tagged with
6
votes
3answers
6k views

How can I receive a success output signal from command block on a fill clock?

I have a setup like this: In which the yellow command blocks are a standard 20Hz /fill clock, and the blue is a command such as, for example: /spreadplayers ~ ~ 10 20 false @p[r=5] My problem, ...
6
votes
4answers
92k views

Check if player has item, if so remove it

I'm messing around with command blocks, and I'm wanting to try and make an XP vending machine. My idea is if you click a button with a Diamond in your hand, 1 diamond gets removed and you get x amount ...
2
votes
1answer
728 views

How do I set up command blocks to teleport the winning team?

Summary: I am making a mini game in Minecraft where you kill the other teams which you can select from either a wolf or ocelot (it's already tamed). Question: How can I set it up to teleport all the ...
2
votes
4answers
1k views

Use a command block to “Sense” a player in a certain area

On my friends and my server, we have a skyblock map. My issue is when somebody joins they spawn above the Void. What I need is for a command block to determine if a player is near the Void and send a ...
5
votes
4answers
61k views

How do I craft command blocks?

I went to my friends house, and he was playing Minecraft on the PC. He showed me a command block, but when I went home and opened Minecraft pocket edition, I went to the crafting table but I could not ...
-4
votes
1answer
852 views

How can I show the leader's health of each team and make it say the other team won

I'm making a Minecraft mini-game called "Clan Wars". You have to try to kill the other team's leader then you team wins! The problem is I would like the scoreboard to show the leaders' health and ...
1
vote
3answers
4k views

How can I make a fake name when I use command blocks?

I'm trying to make a mini game but I want it so that when you press a button over a command block it will say "BOB welcome", so 'bob' instead of the @a or @p sign and then followed by the message. All ...
6
votes
3answers
48k views

Is there a way to display a player name in /tellraw command?

like the title says, I'm looking for a way to display a player name in a /tellraw command which is run by a command block. Example: /tellraw @a {"text":"","extra":[{"text":"A player has won the game!"...
0
votes
1answer
1k views

Execute command relative to block

Is it possible to execute commands relative to a block? For example, if I have a stone block and I want to execute a particle command at it, how can I do that? I do know how to use the execute command,...
2
votes
3answers
15k views

How to use a command block to welcome new players on a server in Minecraft?

Ok, so me and my friend own a server, it uses Minecraft 1.6.4. What I can't seem to figure out, is how to welcome new users to the server by saying Welcome USER To Northwood, when they join.
-1
votes
1answer
505 views

minecraft help with commands

If I make teams with command blocks how do I make the command blocks divide up the teams evenly. Another thing is how do I make it check if there's one team alive. Example: Blue and red Blue is ...
4
votes
2answers
14k views

How to testfor blocks not people

how do I testfor blocks? like if I put down stone near a command block with a comparator attached to it and it will activate a piston connected by the comparator on the command block? please answer.
4
votes
1answer
490 views

Minecraft Arrow Targets [duplicate]

I'm Trying to make a door that opens when you shoot an arrow in the middle, but I can't find a way to add coordinates to the parameters. Is there a way? (the current working command is /testfor @e[...
1
vote
1answer
1k views

Inflict damage when player is hit by minecart

Is it possible to test when a player gets hit by a minecart, then inflict damage on the person hit by the minecart based on the speed of the minecart? If testing for the speed of the minecart isn't ...
4
votes
3answers
7k views

What is the command to make a command block emit a redstone signal after 20 mins [duplicate]

How can I make a command block emit a redstone signal after 20 mins. I want it to emit a redstone signal after 20 mins to power another command block that will have /tp to send all players to a ...
3
votes
1answer
180 views

Teleporting certain people

I am creating a server were there is a jail. I need to have certain people (cops) be able to shoot them or something like that and be teleported to the jail. I just don't know how to make this work. ...
18
votes
2answers
101k views

How to disable command block logging into the log files in minecraft

Hi, I have a single player world which is opened to LAN to let my friends play while I am AFK. I have a lot of command blocks running in that world and those commands are all logged in the log files. ...
1
vote
2answers
47k views

Summoning PrimedTnt with custom fuselengths

How can I summon PrimedTnt with a custom fuse length? I know I have to add some attributes to it, but I'm not sure as to how I can do that. Does anyone know? Also, is there a way to turn TNT explosion ...
1
vote
4answers
16k views

Execute fill command relative to player

How can I execute the fill command relative to the player? If you are wondering why I am asking this, and for more information, reference my earlier question here: How to make a block disappear after ...
9
votes
2answers
9k views

How to make a block disappear after a certain period of time

So I am making a 'magic trail', which is essentially wherever you walk and jump, a block will be placed below you. Unfortunately, the trail will always stick around and never go away. After a while ...
3
votes
2answers
751 views

Making a command block with a command block [duplicate]

I am trying to make a spaceship that can go up and down basically. When it goes up, I want the command block to have a command. That's where I ran into a problem; I couldn't find a way to move a ...
1
vote
5answers
20k views

How to make a command block say something only once in Minecraft?

I am creating an adventure map and needed to know how to make a command block only say something once in the chat menu. PS: I would like this to be under my floor because it is supposed to be an NPC ...
17
votes
9answers
36k views

How do I select all but two types of entities in Minecraft with the type selector?

I've asked this question towards a developer for Minecraft and I thought I'd ask here too since they might not see the question. How do I select all but two types of entities in Minecraft? For ...
0
votes
3answers
8k views

Giving player extra hearts

Is there a way that I can give a player extra hearts? For example, if you've ever played mineplex hunger games, you know that you get 8 extra hearts to start out with. Is there anyway I can acheive ...
0
votes
1answer
1k views

Freezing all mobs, testing for a player in a boat, then unfreezing all mobs

Is there a way that I can freeze all mobs using a command, then test for a player getting on a boat, then unfreeze all the entities? If you are curious as to why I would be wondering this, here is a ...
2
votes
2answers
17k views

Can i use the /testfor command to check for certain words in chat?

I want to be able to detect if a certain word in chat is said like: Console: Please say yes to be teleported or no to remain Player1: yes Player1 teleported to [insert random coordinates here] ...
7
votes
1answer
7k views

Using a command to test when a player eats something [duplicate]

Is there some kind of command that I could use to test when the player eats something, then after the player has eaten that thing, give them 2 hearts? I have a feeling it might be a testfor command.......
-4
votes
1answer
888 views

Is the /explode cheat real

I was looking up cheats for minecraft and found a cheat that exploded yourself (\explode) Next time I played I tried it and it didn't work all it said was Unkown command. Try /help for a list of ...
3
votes
3answers
39k views

How to use setblock command for placing stone button on the left side of the command block

I tried to use the command setblock ~1 ~ ~ stone_button but then it places a button on air. I'm running Minecraft 14w11b snapshot from the 1.8 snapshots. Does someone know how to fix this? Pictures ...
1
vote
2answers
5k views

Using scoreboard objectives as arguments for commands

Is there any way to use scoreboard objectives as arguments for commands? For example, say I have a command block that should teleport a player to a location based on their score. tp Notch ...
25
votes
3answers
38k views

I have little fighting skill. How can I get rid of a Wither?

I have set up a Minecraft server for my 5-year-old son and a friend of his. They use it in creative mode to build stuff. Today, my son copied instructions he saw in a YouTube video and created a ...
11
votes
7answers
26k views

I've lost a command block, how can I find it?

I've placed a command block making it day all the time. I want to turn it off, but I've lost it. What's the quickest way to find it?
3
votes
8answers
216k views

How do you apply potion effects to players?

I'm developing a minigame server. I just need to know what commands to use, via command block, to give players special effects infinitely such as: speed boost, regeneration, or jump boost. I know it's ...
0
votes
2answers
1k views

Modded Minecraft COFH skin set

I have recently installed the Monster FTB pack on my server. In 1.5.2 (Unleashed) we were able to use the command /cofh skin set When we use the command on the server, a message appears that the ...
-1
votes
3answers
19k views

How do you install custom commands in Minecraft?

I would like to know how to install additional commands besides the standard ones, such as these: /spawn player's spawn to spawn /jail player spawns to a jail /kit ...
2
votes
6answers
20k views

Is it possible to spawn mobs in random places?

I was wondering if it is possible for you to make a command block spawn hostile mobs in random places in a specified area? I need the mobs spawned on different Y coordinates too because you need to ...
5
votes
2answers
81k views

Is it possible to add multiple enchantments in one try?

I'm making a mini game (bomb squad) and the armor needs to be enchanted. I know that armor can be enchanted through command blocks and that is what I intend to do. I am wondering if it is possible to ...
0
votes
1answer
12k views

Minecraft command block specifiers “[Data value] [Data tag]”? [duplicate]

When using command blocks some commands ask for [Data value] and [Data tag]. I know what Data values are. But what are Data tags? How do translate the Data specifications that I need into "command ...
0
votes
1answer
6k views

Can I use /testfor on zombies?

I know how to use the /testfor parameters in a command block to scan for players. But I need to test for zombies. Can you test for things that aren't players? If so then what else can I test for and ...
2
votes
6answers
64k views

is it possible to spawn wither skeletons using commands?

The annoying thing about wither skeletons is: There is no way I know of to spawn them in the overworld! I have determined that there is no way to spawn wither skeletons in the overworld without ...
1
vote
2answers
434 views

Minecraft server spawn command

What command do I use to spawn to a different area in my Minecraft server? I spawned on a island and there is no land near? I really need help and my friends want to join and they are getting ...
1
vote
3answers
501 views

How do I know how many items were cleared with the clear command?

When I have a command block and use the clear command, there is a way to know the amount of items were cleared? For example, the command: clear theplayer minecraft:stone How do I know how much ...
11
votes
3answers
54k views

How do I choose what horse I spawn?

There are summon commands for mobs in Minecraft, ie; /summon EntityHorse ~ ~ ~ {Type:4,Tame:1} Summons a Tamed Skeleton horse with full health. So my real question here is: What are the specifics ...
1
vote
1answer
2k views

Is there a way to constantly track one players jumping activity

I made these commands this command sets a ver to count all jumps by all players /scoreboard objectives add didjump stat.jump particular player Jumps this command sets up a var to use as a display /...
12
votes
1answer
68k views

How to set a command block with a command inside using the setblock command

Does someone know how to set a command block with a command inside using the setblock command? I have created this code /setblock <x> <y> <z> command_block {TileEntityData:{Command:"...
2
votes
1answer
2k views

How do I get the @a player selector to work with the /effect command on a Bukkit server?

I'm trying to use the /effect command to play around with giving everyone on my server a jump boost. The problem is that I can't seem to get the @a player selector to work. Is this because I'm using ...
2
votes
1answer
752 views

Scoreboard and testfor issues using commandblocks

I'm building on a map in Minecraft, where a player (myself for example) will press a button and his status changes into "The Player is ready for the game to begin". So, press button -> /...
2
votes
4answers
47k views

What command do I put into a command block that can set the spawn of the nearest player to a different specific location? [duplicate]

I want to use the command block to set the nearest player's spawn to a specific location, how to I do it? And will the player spawn there if he dies?
2
votes
2answers
9k views

Why Isn't The /playsound Command Working In 1.7.2?

I am currently playing Minecraft 1.7.2 and am using a command block in a roller-coaster. I am trying to make a command block play the sound "moan1" from the "resources" folder in the directory "...
3
votes
1answer
4k views

Is it possible to check for an injured player in Minecraft?

I am creating a mini-game in Minecraft, where I must check to see if the player is injured. The injured player will then be given an item. My guess is that the command would look something like /...