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.

Filter by
Sorted by
Tagged with
-4
votes
1answer
830 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 ...
4
votes
3answers
37k 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
14k 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
502 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 ...
3
votes
1answer
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
3answers
6k 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
178 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
68k 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. ...
8
votes
2answers
6k 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
714 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
16k 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 ...
15
votes
8answers
26k 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
4k 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 ...
7
votes
1answer
6k 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
866 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
33k 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 ...
23
votes
3answers
24k 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
15k 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
7answers
148k 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
17k 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
4answers
11k 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
60k 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 ...
4
votes
6answers
61k 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
360 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
377 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
33k 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 ...
12
votes
1answer
59k 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
4answers
34k 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
8k 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
3k 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 /...
-4
votes
1answer
398 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.
9
votes
4answers
4k 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 ...
8
votes
2answers
6k 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 ...
6
votes
1answer
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 ...
1
vote
3answers
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 ...
4
votes
2answers
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 ...
4
votes
1answer
603 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 @...
13
votes
8answers
21k 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 ...
3
votes
4answers
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 ...
6
votes
7answers
5k 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 ...
-3
votes
1answer
13k views

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

I want to know all the commands for singleplayer minecraft without mods
6
votes
5answers
55k 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,...
11
votes
2answers
4k 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 ...
-3
votes
2answers
10k 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 /...
38
votes
2answers
1.6m 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 ...