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], [minecraft-bedrock-edition], or [minecraft-education-edition] tag.

Filter by
Sorted by
Tagged with
2 votes
1 answer
795 views

Differentiate between data tags in custom villager trading

How do/can I make it so that when making custom villager summon commands to spawn in villagers with certain trades such as this one: /summon Villager ~ ~1 ~ {Offers:{Recipes:[{buy:{id:5,Damage:2,...
user avatar
0 votes
1 answer
150 views

Getting a command from a command block to tp me if my score is min and near coordinates to different coordinates

I want a command that does tp @pwith the args: -a certain coord location -with a decent radius near it -only if the score of Death is at least 1 ----teleports you to different coordinates Here is ...
user avatar
  • 9
1 vote
2 answers
486 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 ...
user avatar
  • 11
1 vote
3 answers
607 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 ...
user avatar
2 votes
2 answers
6k views

Can I replace a mob with another one, via command?

Is there a command that can convert//replace a cow with a mooshroom? Replace a pig with a Pigman? etc. Removes one mob and replaces it with another? I couldn't find any such command on the wiki, has ...
user avatar
11 votes
3 answers
60k 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 ...
user avatar
1 vote
3 answers
5k views

Custom Player Heads not working on Bukkit server

I am running a Spigot MC server and I want to get custom player heads, as per here. This is all over the web, but I cannot get it working in my Server! When I run the command that is needed /give ...
user avatar
1 vote
1 answer
9k views

Is it possible to give multiple potion effects with one command block?

Is it possible to give multiple potion effects with one command block? For example, I have command block hooked up to a pressure plate and I want it to give a player Slowness 255 and Jump Boost 150, ...
user avatar
1 vote
1 answer
3k 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 /...
user avatar
  • 243
12 votes
1 answer
71k views

Using /setblock, how do I set a command block with a prefilled command?

Using /setblock, I'd like to set a command block with a command already pre-filled inside of it. My current code looks like this, but it doesn't seem to work: setblock <x> <y> <z> ...
user avatar
  • 297
2 votes
1 answer
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 ...
user avatar
6 votes
3 answers
23k views

Can command blocks teleport the a person closest to a set of coords instead of the command block itself?

I'm trying to build a teleport system in Minecraft, but the command blocks that have the teleport command (/tp @p x y z) are far away from the pressure plate I use to activate it. I use this world ...
user avatar
  • 61
2 votes
1 answer
755 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 -> /...
user avatar
2 votes
4 answers
50k 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?
user avatar
  • 21
2 votes
2 answers
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 "...
user avatar
3 votes
1 answer
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 /...
user avatar
  • 501
14 votes
1 answer
106k views

Custom names and lores in Minecraft 1.7.2?

I have heard it was possible to change the names and lores of Minecraft items WITHOUT the use of third-party programs like MCEdit. Given the things that my friends have told me, and from the ...
user avatar
  • 501
5 votes
4 answers
98k views

What can I use the /testfor command In Minecraft

I found the /testfor command today in Minecraft, but when I use it in a command block it says Usage: /testfor <player> and when I do that it then says /testfor must be used by command blocks ...
user avatar
-4 votes
1 answer
411 views

What is Every Single Command in Minecraft [duplicate]

I would like to know how what the commands in minecraft are that includes cheats. The help command does not state every command.
user avatar
11 votes
5 answers
7k views

Automatically running a Minecraft command

Is there a way to automatically run a Minecraft command when starting a new game, loading an existing world, joining a server, or re-spawning? For example, is there a way to automatically enable ...
user avatar
  • 3,921
7 votes
4 answers
18k views

How to use commands in Minecraft Demo version

How do I use commands in Minecraft Demo Version? Every time I try to use a command, it says, You do not have permission to use this command. How can I disable that and get to use commands?
user avatar
8 votes
2 answers
7k views

Selecting previous target in a second command block

I'm trying to make a system that prevents players from using certain items. In one command block, I have the following command clear @a diamond_sword executing constantly through a clock. Off the ...
user avatar
  • 83
4 votes
2 answers
64k views

How do I use /setblock and what are the possible options?

The Minecraft command /setblock is very exciting but poorly documented. How do I use the command? For example to set a yellow stained glass at a certain location? To create a chest full of enchanted ...
user avatar
  • 22.2k
2 votes
2 answers
3k views

How can I teleport one player to a random other player using a potion as the trigger?

I am making a Minecraft map. I want to make it that when someone uses a certain potion, that same person teleports to a random user on the map. I can't use the @p thing because the other players might ...
user avatar
3 votes
4 answers
145k views

Does Minecraft PE have commands?

Are there any commands in Minecraft Pocket Edition? I'm looking for both singleplayer and multiplayer commands including admin commands.
user avatar
  • 511
6 votes
1 answer
2k views

How do command blocks work?

I'm trying to get started using command blocks. I can't seem to figure out how to do basic things, such as changing game modes, sending messages, and giving items to people using the block ID. Nothing ...
user avatar
2 votes
4 answers
23k views

How do I make nicknames using command blocks?

I'm making a server and an adventure map and I wanted to create a class system with command blocks that shows a nickname like "warrior", "archer", and stuff like that, but I don't know how. I know ...
user avatar
  • 21
1 vote
3 answers
2k views

/testfor command not working (13w36b)

So I'm working on this new Minecraft project and it involves a lot of command blocks and dummy variables. For some reason, this one does not want to work and I do not understand why. In the image, you ...
user avatar
3 votes
2 answers
20k views

Can I use a command to display/announce the time?

I would like to be able to say the current time in game. Is this possible? I have tried things like /say &t, /say @t, etc. I would just like to announce the current time.
user avatar
4 votes
2 answers
4k views

MC Command blocks - teams!

I successfully registered teams (Red, Blue). I want to add players to the team. It currently is 3v3 map, where you need to have 6 players to play otherwise the game wont start at all. So i tried ...
user avatar
  • 545
12 votes
4 answers
19k views

Can I use command blocks to teleport a player who died?

I need to detect if a player has died and teleport that one to location XY and give the other team a point. I can detect if a player has died with testfor @a[score_HEALTH=1] applied to a redstone ...
user avatar
  • 545
4 votes
1 answer
647 views

Output power if X players in radius Y around the command block

I'm new to Command Blocks in Minecraft and want to solve this problem: If X players in radius Y around the command block, then output power. I read a bit about testfor and tried things like testfor @...
user avatar
  • 545
-5 votes
6 answers
24k views

Is there a nuke command in Minecraft?

Is there a command that destroys everything (trees hills) within a certain radius? I want to create an online world but I always seem to have the spawnpoint in a bunch of trees. Is there like a /nuke ...
user avatar
  • 8,229
1 vote
4 answers
44k views

How do I enter commands?

I have tried all the cheats it gives you but none of them work. Do you need to keep the < or [? Do you need to add spaces? How do you change your game mode?
user avatar
14 votes
8 answers
31k views

How can I use Command Blocks to keep players from placing blocks on a vanilla server?

I want to know how to keep players from placing blocks in a certain area on my Minecraft server using Command Blocks. I already know how to keep them from breaking anything via [effect player 'mining ...
user avatar
3 votes
4 answers
7k views

Testfor command not working with radius

I'm trying to make a redstone signal out of a command block when a player is in the radius of 3, so I made a commandblock with the text: testfor @a[r=3]. A redstone clock is bound to it, and gives it ...
user avatar
1 vote
2 answers
18k views

Minecraft server disconnect/quit command

I once disconnected from a server using a command. I don't remember what the command was and i need that command to setup something for my server. Does anyone know what's the command for disconnect/...
user avatar
  • 111
4 votes
7 answers
107k views

Is there a command to spawn blocks in the air with worldedit?

I went to the End and it was empty. So I fell, switched to creative mode and flew to avoid dying. I need to make a floating block to 1) build from and 2) give me a visual point of reference to search ...
user avatar
3 votes
6 answers
229k views

How do I slash command spawn Mobs?

How do I spawn mobs via a command in Minecraft 1.5? I keep doing the command "/spawn 99 1" (Iron Golem) but I just get a message that says that it isn't a valid command. How do I do it?
user avatar
  • 37
6 votes
7 answers
6k views

Order of command block execution if triggered at the same time?

If I make some Command Blocks with commands (let's say say whatever), connect them with redstone dust (you can place redstone dust on Command Blocks by holding Shift), then produce a redstone signal ...
user avatar
  • 2,616
-3 votes
1 answer
14k views

What are all the commands for singleplayer minecraft? [duplicate]

I want to know all the commands for singleplayer minecraft without mods
user avatar
2 votes
1 answer
1k views

Why don't vanilla Minecraft "Exp Shops" work when Single Player Commands is installed?

An Exp Shop is a button that, when pressed, will give you items in exchange for a set amount of exp. You build one by placing a button on a wall, and putting two repeaters and command blocks behind it....
user avatar
  • 450
6 votes
5 answers
58k views

What are the commands for the LAN world?

I've figured out that if you do /spawnpoint it changes your spawnpoint for the LAN world. So every time I die, I spawn where I want to. And I don't have to use my bed! I'd like to learn other commands,...
user avatar
  • 69
18 votes
1 answer
589k views

What are all the gamerule commands in Minecraft?

I want to know what are the gamerule commands in Minecraft, and what do they do? I want to have special stuff without using mods and plugins!
user avatar
11 votes
2 answers
5k views

Minecraft command block logging

I had just updated my friend's minecraft server to the beta build of bukkit (1.4.6 R0.1). This restored all of the plugins that weren't available when it was vanilla. However, the internet (and its ...
user avatar
-3 votes
2 answers
13k views

What's the minimum requirement for /sethome command in single player on OS X

I have Minecraft 1.4.5 installed on OS X. I can connect to other servers, and I can play Single-player, but I cannot run many commands in Single-player mode. I would like to run the commands /...
user avatar
45 votes
2 answers
1.7m views

Keep items in inventory on death in Minecraft

I once played a vanilla Minecraft adventure map (called "Herobrine's Mansion") that prevented the player from losing their items on death. Which commands can be used to prevent the player from losing ...
user avatar
20 votes
3 answers
783k views

Teleport to spawn in Minecraft creative mode

When in Minecraft creative mode, there are times when I need to return to the spawn point. Are there any commands (in vanilla Minecraft) that you can use to quickly teleport back to spawn?
user avatar
6 votes
1 answer
5k views

Why can't I craft anything with items from cheats?

I wanted to do some testing with the Nether so I made a fresh world on Survival, with cheats enabled. I used the following command to give myself 64 diamonds: /give [me] 264 64 264 But for some ...
user avatar
  • 8,482
6 votes
4 answers
94k views

What exact command can I put in a command block to set all players to Adventure Mode?

I need everyone playing the map to be automatically set to adventure mode. How? What is the command?
user avatar