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
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
8k 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
895 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
40k 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
6k 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
39k 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 ...
12
votes
7answers
29k 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
226k 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
20k 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
22k 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
85k 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
450 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
529 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
57k 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
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 /...
12
votes
1answer
69k 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
753 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
48k 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 /...
-4
votes
1answer
408 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.
11
votes
5answers
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 ...
8
votes
2answers
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 ...
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 ...
12
votes
4answers
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 ...
4
votes
1answer
641 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 @...
14
votes
8answers
30k 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 ...
1
vote
2answers
17k 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/...
4
votes
7answers
101k 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 ...
6
votes
7answers
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 ...
-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
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,...
11
votes
2answers
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 ...
-3
votes
2answers
12k 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 /...
44
votes
2answers
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 ...
6
votes
6answers
116k views

How to kill someone in Minecraft using the console

In the server console I tried kill <playername> But I get [INFO] You must specify which player you wish to perform this action on. Is this even possible?
2
votes
1answer
4k views

Minecraft Single Player commands not working

So I'm on Mac OS X Lion and I tried to install single player commands. I have minecraft 1.2.5. I did the automatic install, it worked fine and now when I open minecraft a little thing come up at the ...
2
votes
1answer
3k views

Can I give other players powertools?

Can I give other players the use of powertools via the Essentials plugin for Bukkit? Not the command (/powertool), but the ability to use an item as a powertool. Ex: I assign the use of /spawn to a ...
4
votes
1answer
33k views

How to construct a //g command with WorldEdit in minecraft?

The WorldEdit Generation manual I'm looking for an example of how to construct an arbitrary 3D shape from formula to script. SK gives an example formula for a stone torus, which is as follows. //g ...
29
votes
5answers
239k views

Is it possible in Minecraft to switch over from survival to creative in single player?

This question is regarding the minecraft Beta 1.8 prerelease -- I have a beautiful house in single player survival which I'd like to record while flying. I want to be able to change the game mode of ...
11
votes
2answers
41k views

How do I spawn wolves?

How do I spawn wolves in singleplayer Minecraft using Single Player Commands; what command do I use?