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.

520 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
-3
votes
1answer
685 views

How do i detect if a dummy command has a certain score in 1.9?

I have been trying to figure out recently how to test if a team and or player has a certain score like 3 or 5 or something. If someone could tell me how that would be great!
-3
votes
1answer
108 views

How would I testfor players scoreboard amount in a specific location?

I have been trying to find a way to testfor a player with a score of 1 in a z.y.z.r location. what I've tried was /testfor @p[X,Y,Z,R,score_Var_min=1,score_Var=1] but it doesn't seem to want to work.
-3
votes
2answers
864 views

How to automatically rename SPECIFIC item in hand in minecraft?

Im trying to find command to rename handheld item(s) to something without giving another item(s). For example rename "Seed"(s) to "123".
-4
votes
2answers
284 views

How do I execute a command if only one player is present on a scoreboard

I'm playing on bedrock and I'm making a UHC map. I have a scoreboard set up where it lists everyone still alive, and once people die they get taken off the scoreboard. I want a command to test when ...
-4
votes
2answers
48 views

This is what is written in the datapack function:

execute if entity @a[scores={InShopMenu=1,PlayerSlot=0}] run tp @a ~ ~ ~ -125 2.5 execute if entity @a[scores={InShopMenu=1,PlayerSlot=1}] run tp @a ~ ~ ~ -112 3 execute if entity @a[scores={...
-4
votes
1answer
923 views

how do I use the /particle effect in Minecraft education edition

exactly as the title said I was wondering if the /particle effect could be used in education edition. If it could be then I'd like to know how to use it. I can never figure out the string thing.
-4
votes
2answers
1k views

How to detect if a person score hits 0?

I'm making a PVP server on Xbox One, and I need a command to put into a command block to detect if a person hits the score of 0 because 0 means that they left the game, and I need a way to delete that ...
-4
votes
1answer
131 views

Minecraft execute syntax

I have this command running in a command block set to always active and unconditional: execute as myusername if entity @e[type=chicken,distance=..5] run say chicken nearby but it doesn't detect ...
-4
votes
1answer
544 views

Minecraft - Giving one level of experience for every mob that is killed

I am currently building a minigame in 1.12 with only command blocks. I need to know how to give a player 1L of experience for every zombie that they kill. For instance, when a person kills one zombie, ...
-4
votes
1answer
5k views

How to set a command block with a command inside using a worldedit command

I’ve been making a server, and I can’t get the worldprotect mod to do block-break deny, so I’ve been trying to set a lot of command blocks manually, and then I got lazy. I’ve been trying to find an ...
-4
votes
1answer
332 views

Command to make player wear skeleton head

I am making a map where you get chased by another player and I want the killer to be invisible (already figured that out) and I want him to wear a skeleton head. How do I do that with command blocks?...
-4
votes
1answer
543 views

Is it possible to summon a zombie with a custom sign in 1.9?

I want to summon a zombie holding a clickable sign that is guaranteed to drop, here's the command that'd give the sign to a player: /give @p minecraft:sign 1 0 {BlockEntityTag:{Text1:"[{\"text\":\"\",...
-4
votes
1answer
251 views

Minecraft 1.8.9 how do you give yourself -1 of an item?

I need to have a dispenser able to dispense an infinite amount of Splash Potion of Harming II, and from what I can see the best way is getting a -1 stack of the item, but I can't figure out how.
-4
votes
3answers
940 views

How to make mobs levitate?

I'm making a map for my friends, and I want to create a 5x5 area where you see sheep go up then down over and over again. How would I accomplish this?
-5
votes
2answers
1k views

How do I pose an armorstand in my hand

I want to be able to pose the armor stand, but so its still in the item form, so when I place it its ready posed, and don't say 'You cant` Because you can. I've seen it before, I have an item in my ...
-5
votes
1answer
905 views

How do I enable command blocks on a Forge-based server

I'm trying to enable command blocks on a server I set up. I've been trying to find a command or something to get it to work but nothing IS working. I tried gamerules but that didn't work either. Help ...
-5
votes
1answer
448 views

How to make color changing lights with playerheads in minecraft?

So i basically want a command that will make this Yellow Stage Light repeatedly, forever, turn into this Blue Stage Light going back and forth between them I already have a circuit built at the ...
-5
votes
1answer
941 views

How do I kill only sheep with /kill?

I need to get rid of a lot of sheep. I've tried to kill them all with /kill @e[Type=Sheep] but it doesn't kill them all and my world lags, a lot. I'm on version 1.8.3.
-6
votes
2answers
63 views

minecraft Command Block kill

Im the admin on a server and want to make a command block that turns it to day, but also have it that if anyone else right clicks on it, it kills them?
-6
votes
1answer
501 views

Command Blocks Mob Land Filler

I made a TNT cannon in superflat and now there is obviously a large hole in the world. I would like a system that will fill in the area, but I don't know how to use command blocks very well. I don't ...

1
7 8 9 10
11