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
0
votes
1answer
59 views

Can I make the tellraw command read from a JSON file?

I have some files of JSON chat data in a file with a code editor. I would like to have Minecraft read my file and output it as a chat component. I have wrote some pseudocode do show what I mean: ...
1
vote
1answer
28 views

How do I make summoned falling_blocks look like a block other than sand?

I have a 2x3 area that I want to be Magenta Carpet on Minecraft Realms (1.15.2/vanilla) Java 1.8.0_51. My goal is to have a fake floor that somebody falls through. /summon minecraft:falling_block -...
0
votes
1answer
19 views

How to constantly count the numbers of players within an arena?

I'm using Minecraft Java version 1.12.2. I have a fake player called Alive that shows the amount of players still active inside the arena. When a player loses a round that counter will lower by 1. ...
2
votes
1answer
34 views

Maximum 1 entity per block

So when I break an oak_log block I summon an area_effect_cloud with the tag of B.Spawn at the block I jus broke. now I use this command to summon a 3x3x3 area_effect_cloud cube around the [tag=B....
3
votes
1answer
37 views

Minecraft 1.14.4 dynamical sized integer array

I'm trying to make a dynamical sized integer array in Minecraft 1.14.4. I've already tried different ways, but the problem was with all of those solutions, that I had to summon one entity for each ...
-1
votes
0answers
14 views

I want to be able to get sand that can only be placed on stone bricks in minecraft education edition [duplicate]

I am making a Redstone puzzle map and I don't want the player to place the sand on the wrong spot
1
vote
1answer
27 views

/tp command not working

So I Am making A Minecraft adventure map. I want to make a guardian type thing (an armor stand with a custom head and armor) that constantly floats 3 blocks Above you and 1 block along the X axis. I ...
-1
votes
1answer
35 views

Minecraft Bedrock. Need help with command blocks not working after a certain range away from players

I am on Minecraft BEDROCK EDITION. I was wondering if there is any way to keep my command blocks running even if the closest player is thousands of blocks away. I am trying to make a pvp world where ...
-1
votes
3answers
34 views

Teleporting mobs 1.12.2

I want to make a map where mobs will follow / tp to you, is there an way to do this with commandblocks?? I am making the map in 1.12.2 because I am more familiar with command.
-2
votes
1answer
746 views

How to make a button disappear and display text after being pressed?

I have noticed in some maps they have it so once the player presses the button The button disappears and then some text comes up. I was wondering how to do that.
0
votes
1answer
497 views

Is it possible to remove a scoreboard score by a scoreboard score?

The question I'm asking might be confusing but I'll give an example: /scoreboard players remove @p score score So it possible to do something like this?
1
vote
1answer
57 views

How would you /effect someone with chainmail boots with only 1 command block?

I am making a Hide and Seek map on one of my friends realms, and I want to make certain boots give different effects (such as diamond boots give speed). I have something with two command blocks right ...
0
votes
1answer
17 views

Minecraft, how to use the give command to give enchanted items in Minecraft PS4 edition [duplicate]

I tried doing /give @p diamond_sword 1 0 {ench:[{Id:16,lvl:1}]} but it insists that there is a missing “}” or object member name
-1
votes
1answer
57 views

How can I tell the differences between male and female villagers?

I wanna breed my villagers but I cant find a female villager. Do they have any notable differences in the way they look? How can I spawn the different genders of villager?
-1
votes
0answers
32 views

'Unexpected White Concrete' error when I try to fill with white concrete? [closed]

I am trying to fill an area with white concrete but it's not working. This is the error message I'm getting: What do I do to fix this?
1
vote
3answers
8k views

Is it possible to disable crafting recipes in Minecraft for certain items and not disable others?

At the moment, I am making a map and eventually I want the player to only craft a certain item and disable them from crafting anything else possible. If I can't find a solution, I'll just make a ...
0
votes
0answers
15 views

Get an Armor Stand DATA with an execute if command block [closed]

I'm trying as hard as I can to get an entity's nbt in an "execute if" command on a command block. But I don't know how to do this and it's been 2 hours of trying yet. What I want is for the player to ...
1
vote
1answer
727 views

Help Minecraft 1.14 pre-release 5 commands

I got bored of Minecraft so this is what I'm doing for a solution. The command in theory is supposed to slow me down whenever I touch air. The command I am trying is the following: /execute if block ...
0
votes
1answer
19 views

How do I get barrier blocks in bedrock edition?

I'm trying to create my own minecraft server and I need barrier blocks to prevent players from going to certain places. I already know how to get command blocks but I don't know the command to get ...
-1
votes
0answers
10 views

Command on dropped item? [duplicate]

I want to make it so when you drop a specific item (a normal item not with a custom name) there will he an command execute, can someone pls help me with this :( I have already watched so many youtube ...
1
vote
2answers
28 views

In Minecraft can you use an array in a /fill command? [closed]

So I was trying to replace any stone or air in a 2x6x1 square in-front of me. This is the command I am using. /Fill 64 13 87 67 16 90 coal_ore 0 replace {stone air} I am just getting into ...
-1
votes
0answers
11 views

How do i set a drop command to a specific item

I now have this /execute at @e[type=item,nbt={OnGround:1b}] run clone [pillar corner xyz] [pillar opposite corner xyz] ~ ~ ~ But I want to make if you drop a spruce_fencde it will go off Can anyone ...
4
votes
1answer
30 views

Levitation Effect Not Consistent

I am currently using minecraft 1.14.4, and when I apply levitation to a group of armorstands with shulkers riding them, they all start levitating at different times. The command I am using: /...
1
vote
1answer
35 views

Minecraft: button that can only be used once?

I’m making a puzzle map with similar structure to Portal, where you get a cube and you put it on a button, etc. But for some puzzles, I want the block to be summoned by pushing a button, but I don’t ...
0
votes
1answer
47 views

How to /tp only players in survival?

Let's say 3 people are in survival, and 2 people are in creative, What command can I use so it will only TP the people in survival ?
4
votes
3answers
11k views

My name includes space - How do I enter my username when typing command?

My username in Minecraft is sun solar arrow. This name includes spaces. Situation - When I want to get OP privilege, a user who has OP privilege will enter: /op sun solar arrow But my username ...
1
vote
1answer
24 views

How to summon fishes with delay after player passes through a location in the sea?

I'm using Minecraft Education Edition. I want to summon 3 to 5 fish whenever a player comes closer to a location in the sea and I want it to put some delay for summoning too, for example: 3 seconds. ...
-1
votes
0answers
26 views

How do i clone myself in Minecraft [closed]

Is there a way I can clone myself in Minecraft? I dont need it to move at all, I just want it to stand still. I’ve heard that I could put my head on a zombie, but I dont know how to do that, and even ...
1
vote
1answer
38 views

Help With Custom Commands on villigers with a custom item 1.15.2

I was trying to get an emerald with a custom color added to it and have a villager sell the emerald. I was doing well getting both to spawn but when I tried to combine the two it didn't work. Can you ...
0
votes
2answers
2k views

How do I use the testfor command to work on a scoreboard Bedrock edition

I'm trying to make a shop in Minecraft and I have the scoreboard and sell commands down but I cant get my buy option to work. I tried using /testfor @p[score_Coin_min=2] to activate the blocks ...
-1
votes
1answer
44 views

Npcs talk using /say

Ok, so I've searched the web everywhere for this. EVERYWHERE. I'm in my creative world on an Apple iPad in Minecraft-PE trying to make a map. When I do /say in a command block for example: /say Hello ...
0
votes
1answer
2k views

Replace one item in a chest

I am working on a chest menu. In the chest I have 2 full sets of armor. When someone clicks one part of the armor it must be replaced with enchanted armor. I tried /blockdata 6 11 -13 {Items:[0:{},1:{}...
0
votes
2answers
604 views

Using spreadplayers to tp them to armorstand in unloaded chunk

I'm making a new public server. Right now, I have a book with set home / go home / tp to Spawn functionality. The set home uses a trigger that places an invisible armor stand named Home (and deletes ...
10
votes
2answers
971 views

Detect lightning strikes

I'm trying to add some custom mob conversions like those of villagers/witches and pigs/pigmen (but here it is a block that turns into an mob, not a mob to a mob). What I can't seem to figure out about ...
2
votes
1answer
151 views

How to GET minecraft world spawn with commands?

I would like something opposite to /setworldspawn, a command that would return me current world spawn location. I tried getting SpawnX, SpawnY and SpawnZ nbt data from a non-existing player, but it ...
-1
votes
0answers
66 views

The command '/kill @e[type=Bat]' doesn't work [closed]

I'm trying to kill bats and the command I'm trying to use, /kill @e[type=Bat], doesn't work - it just kills me and not the bats. What am I doing wrong?
5
votes
3answers
1k views

Copying & pasting multiple commands to Minecraft terminal

I wanted to compose a bunch of commands in an external editor and then paste them all to execute in the Minecraft console (chat window). But if you paste multiple lines, it seems to just ignore the ...
1
vote
1answer
1k views

Can I make a death chat say a different name then the person who killed them?

I wanted to make a Mafia map, but when the Mafia kills somebody, it will show the player's name so everybody now knows that the Mafia is that player. In the chat, is there any way to have it say "...
-5
votes
0answers
69 views

How do I check if a player is at specific coordinates? [duplicate]

I need to check if a player is at these exact coordinates: -682, 4, -188 How do I do this?
1
vote
1answer
43 views

How to track players? [closed]

I have seen Dream and GeorgeNotFound's videos filming a minecraft manhunt event. I wish to replicate this but i'm not sure how to command a tracking device? In windows 10 edition by the way. Video ...
2
votes
1answer
51 views

Explosive Lightning?

I want it so that when lightning strikes the ground, it explodes the ground, how can I do this with just command blocks without using behavior packs or mods? Even if the command is long, I would ...
1
vote
1answer
10k views

How to rotate big structures 90 degrees in Minecraft Pc

I have a big sculpture in Minecraft on my computer and wanted to clone it so I did it cloned but it's the wrong way. Could someone tell me a command to rotate it 90 degrees?
0
votes
1answer
215 views

Motion data tag only for X, Y and Z

Is it possible to change the motion for a only one direction? I tried for example: Motion[0:1d,1:~,2:,~], but it didn't work.
1
vote
1answer
672 views

How would I put a random player within a 300 block radius into a team

I am working on a murder mystery map for my minecraft server and I want to make it so one person in the lobby is randomly selected to join the murder scoreboard team, one randomly selected person to ...
4
votes
2answers
3k views

Command to spawn in-game Player head?

I want to spawn a player head in my custom Minecraft map I'm making, but the problem is, the username has to be defined to give the actual player's head: /give @p minecraft:skull 1 3 {SkullOwner:"<...
0
votes
1answer
151 views

Faster reacting Comparator

I am making a fully working FNAF 2 Minecraft multi-player gamemode! I plan to publish it when I am completely done and fixed all bugs. This isn't a bug, it's just that I have the right idea, but I don'...
1
vote
2answers
78 views

Having trouble testing for mobs with command blocks

I'm trying to create a pokeball in Minecraft but I was wondering if there is any way for the command block to test for all mobs in a certain radius and give a different output depending on the mob ...
1
vote
2answers
24 views

How does one give a player a named and enchanted item in MCPE (current version)? [duplicate]

I’m building a multiplayer hide-and-seek map, and I want to give seekers an instant-kill weapon named “Boop Stick” (don’t ask). (note that I’m using a placeholder item in the image) I keep getting ...
1
vote
1answer
171 views

How do I use the “SelectedItem” tag to check for a player in this command?

I am trying to make this command work : /execute as @a[nbt={SelectedItem:[{id:"minecraft:grass_block",tag:{display:{Name:"{\"text\":\"GRASS3x3\"}"}}}]}] run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 It works when ...
-1
votes
1answer
416 views

Scoreboard Player First Join

I want to make a scoreboard on my server that broadcasts a message to players who join the server for the first time, but I don't know what the scoreboard is. If you don't know what I'm talking about ...

1 2 3 4 5 67