Questions tagged [minecraft-commands]

Anything related to the usage of commands or command blocks in the game Minecraft. If you're building a redstone device without commands, use the minecraft-redstone tag instead.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

Generate a command block with variable data

I'm trying to setblock a command block with variable data in it. I want to make a variable sized array with an armor stand, and read a custom tag at a variable position. This position should be stored ...
0
votes
0answers
18 views

(Java Minecraft 1.14.3) How to get out of a command block loop that keeps killing me? [duplicate]

I was playing in my survival world and I set up a command block to kill all animals, and me being the idiot I am instantly decided to hook it up to a redstone clock. I can't get into the world anymore ...
0
votes
1answer
33 views

How to give a named item! [duplicate]

I have been trying to use the /give command to give a named book but I can't seem to give it. I keep on getting the output of * Line 1, Column 2 Missing '}' or object member name. Please help!
1
vote
1answer
124 views

(Java Minecraft 1.14) How to make a non-block light source without mods?

As the title says, I would like to make a light source that I can summon into the world without using setblock or optifine's dynamic lights option. I tried using the minecraft:flash particle, the ...
0
votes
2answers
67 views

How can I find all of my wolves? [duplicate]

The previous solution here, no longer is accurate for the Java version of Minecraft. I am running the command on a server and trying to use my UUID. Unfortunately when I try the solution that was ...
-1
votes
1answer
57 views

How do I teleport all nearby entities within a certain radius?

Could someone tell me how I can teleport all entities in a 5x5 block range to a certain location, for example to -2697 80 -3401. I want to teleport a cat, a horse, and a villager to my original house.
0
votes
1answer
56 views

How to make this unbreakable - Minecraft 1.14.2 replaceitem Command

I have the replaceitem entity @a container.0 crossbow{display:{Name:"\"Paintball Cannon\"",Lore:["\"Put the fireworks in your offhand, and watch them go BOOM!\""]},Enchantments:[{id:quick_charge,lvl:...
-1
votes
1answer
62 views

Why is Minecraft giving me a 'data tag parsing failed' error?

I've been trying to work on a map for some time now, but a lot of commands involving things like command signs with formatted text or armorstands refuse to work. Take my most recent test, where I ...
-1
votes
1answer
72 views

(Minecraft) How to color and remove emphasis on item names?

I am currently making a remake of the Cobalt Shield in Minecraft 1.14.3, but I do not know how to change the custom item name's formatting in-game. Can someone help me figure out how to color the ...
3
votes
3answers
160 views

(Java Minecraft 1.14.3) Can a bossbar show different values to different players?

I would like to use a bossbar, with value set with execute store result bossbar, to hold the 'mana' value for each player in my datapack (which is held in a scoreboard so it can be manipulated in the ...
3
votes
0answers
22 views

How do I play a specific song on a command block without it playing other songs instead? [duplicate]

I'm trying to select a certain song to play on a command block, but when I type in something like "/playsound music.game.creative @p", it will play a different song everytime I activate the command. ...
1
vote
1answer
347 views

(Java Minecraft 1.14.3) How to detect a player holding right click?

I would like to run a function whenever a player is charging a bow, essentially using the bow as a held right click detector. I thought to use SelectedItem and some nbt tag to do this, but the wiki ...
-1
votes
2answers
47 views

/say command (how to name the command block)

I want to have a command block named the same as the nearest player. I t tried naming it @p, but when I ran the command, it stayed [@p] (message). What should I do?
4
votes
2answers
99 views

How to gather entities into sets?

Imagine that one day you decided to make an army of Mecha Combiner Robots in minecraft using commands. Each robot is made of 5 armor stands, CustomNamed mechahead, mechabody etc... Then you spawn a ...
0
votes
0answers
41 views

Minecraft Command working in text chat but not in command block 1.14+

I have a command in a command block that doesn't work. However, it works fine when I put it into text chat. Here is the command: playsound minecraft:ambient.cave block @a[x=-190,y=78,z=196,distance=...
-1
votes
1answer
42 views

How can I set a command block to /say something when a player stands on a certain set of coordinates? [duplicate]

Sorry for the simple question, but I can't find this anywhere after quite a few searches. I have a statue on my server and I would like it if text came up as a caption for any player approaching it on ...
0
votes
1answer
177 views

Why does my /fill command output “That position is not loaded”?

I am creating a type of adventure map. Once you enter the map, you step on some pressure plates that are supposed to seamlessly close the wall behind you. For some reason this command does not work ...
-2
votes
1answer
27 views

Replace item (mcpe)

I want to replace an equipped leather cap with a glass block. I tried /replaceitem entity @s slot.armor.head glass, but it didn’t work.
2
votes
1answer
56 views

Syntax error unexpected?

Can someone tell me what I’m doing wrong? Did I type this wrong? This is the command that I try to execute: /testfor @a[score_keycard_min=1,r=3] This is the error that I get: Syntax error: ...
1
vote
1answer
23 views

Difficulty with Motion/Pos etc. NBT manipulations [duplicate]

I'm fairly (but not completely) new to the revised command block functionalities and functions themselves but I think I've got a pretty competent understanding to get me by. Basically, I'm trying to ...
-2
votes
2answers
44 views

Minecraft Triggers Help [duplicate]

Whenever a trigger command happens it shows in chat "Triggered objective name here" i was wondering if there was a way to make this message not show but not disable sendCommandFeedback. Would be very ...
4
votes
2answers
637 views

Why can't I paste § into a Minecraft command?

According to https://minecraft.gamepedia.com/Formatting_codes, using §1 in an item's name should make the text colored dark blue. However, when I copy-paste a command like this one into chat: /give @...
4
votes
1answer
58 views

(Java Minecraft 1.14) how to access a written book's contents?

I am currently modifying a datapack that changes the skullowner (tag) of a player_head to a written book's title to get that player's head skin. execute as @e[type=item,nbt={Item:{id:"minecraft:...
1
vote
1answer
46 views

Where is the rest of the /scoreboard commands in mcpe

I’m trying to make a pvp map but when I try to add a scoreboard objective there is only dummy.
1
vote
1answer
71 views

How to make loot tables work in 1.14?

I've been trying to set up a loot table for a chest. For some reason it doesn't work. I put the .json file into "datapacks/loottables/data/minecraft/loot_tables/chests/". There is a "pack.mcmeta" file ...
-2
votes
1answer
89 views

How do I detect when I look away?

How do I make it so that Redstone will activate when I look away from a particular object? I am expecting command blocks to be used. 1.12+
-2
votes
1answer
67 views

Give a specific team an item

I'm trying to make a minigame where when someone presses a button they join a team and teleport somewhere. I then want a chain command block to give them a book, but I want a specific team to get that ...
0
votes
0answers
16 views

Is there a way I can enchant/name items using /give In Minecraft Xbox One? [duplicate]

I want to use a command block with a command that uses /give to give the player who presses it a iron sword with a name and enchantment. Can I do that in Minecraft Xbox One? I've already seen a lot of ...
-2
votes
4answers
134 views

How do you clear someone's inventory upon spawn?

I'm trying to start a server that clears your inventory when spawning without pressure plates. Please help.
-3
votes
2answers
79 views

How can I make the player teleport a certain amount of blocks?

I want to make a sort of elevator in Minecraft with a command block. You step into a small room, press the button and get sent a few blocks up to a room above the current room. Is there a way to send ...
-1
votes
1answer
48 views

How to show multiple objectives for multiple players in tab in minecraft

My brother has a Minecraft server and he wants to show multiple scores for each player in the tab menu (setdisplay list). Is this possible to set up in vanilla Minecraft and how would one go about ...
0
votes
1answer
43 views

CanBreak and CanPlaceOn (mcpe)

I don’t know how these work. I want a iron shovel that can break dirt and grass and planks that can be placed on dirt. How would I do this. Are the commands different on pocket edition? Because I ...
-2
votes
1answer
41 views

Can command blocks allow objects to be placed on blocks other than what's allowed otherwise?

e.g. Allowing tall grass to be placed on leave blocks, letting wheat seeds be placed on normal dirt (not farmland), letting sugarcane be placed on blocks not adjacent to water. Is this possible with ...
-1
votes
1answer
47 views

How can I get the Player Score to show in a custom book?

I'm creating a map that has some sort of RPG statistics, and I want them to be shown in a book for the player to see his personal stats. Is it possible to do that? And, if so, do the stats update ...
0
votes
1answer
126 views

Removing name plates in 1.14.3? [closed]

Is there any way in 1.14.3 that I can remove the nametag in Minecraft? I did it before in 1.14.2, but I can't now. Has anyone had anymore luck?
-1
votes
1answer
76 views

How to combine NBT tags in two different commands?

Can you help me to add one command to other one? I can do them separated but I can't put them together. Below are the commands /give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"]} /give @p ...
3
votes
1answer
61 views

How can I use a datapack to remove a block's default behavior?

I want to script custom behavior for a sponge in a datapack I'm writing, and I also want to remove the default "absorbing" behavior. If I were to type /datapack disable vanilla I noticed that ...
-1
votes
1answer
61 views

How do I run a command when I'm facing a certain direction? [1.14]

I was told to try /execute if entity[y_rotation=85..95] run [command], but this only seems to work in 1.13. What command do I need to use when a player is facing north or west in 1.14(.3)?
1
vote
1answer
71 views

Summoning a horse that has dyed horse armor [duplicate]

This is my current command: /summon horse ~ ~3 ~4 {Tame:1, SaddleItem:{id:saddle,Count:1}, ArmorItem:{id:leather_horse_armor,display:{color:3949738},Count:1}} What's wrong with it?
1
vote
2answers
96 views

Potion effects on armor

I would like to give anyone wearing a diamond helmet named “scuba” the potion effects night vision and water breathing. What would be the command(s) to achieve this effect on Pocket Edition?
0
votes
1answer
43 views

Minecraft timed command

I currently run a minecraft server along with some other people, with the new addition to Discord nitro server boosting we'd like to give people who boost our discord a reward. The plan is to make a ...
0
votes
1answer
55 views

Minecraft Command Block keeps killing me [duplicate]

I was working on a build in a superflat world in Minecraft 1.14.2 but the slimes kept annoying me. I had forgotten that you can set it so that entities do not spawn, so I tried using a command block ...
2
votes
2answers
266 views

(Java Minecraft 1.14.2) How to detect a player changing the direction they are looking in?

I know this may not be possible, but just for kicks I'm trying to write a datapack which lets you unlock abilities, such as starting a fire or summoning lightning somewhere, without any carrots on ...
0
votes
1answer
94 views

How do i turn myself invisible including armor and items im holding?

im making a map and for it to work i used some commands to give the player a câmera system to use , but the system teleports the player into the câmera spots for it to watch . The problem is that the ...
1
vote
1answer
92 views

(Minecraft Java 1.14) How are bossbars ordered, and can I make sure one of them always stays at the top?

I want to write a datapack which has several different features which use bossbars. I need one of the bossbars to always be at the top of the list onscreen, so the one highest on the screen, while ...
2
votes
2answers
191 views

How can i make a ridable mob?

I'm trying to find some commands or data to find out how to make something ridable, for example, a ridable ravager. (I use Java)
2
votes
0answers
42 views

Minecraft new 1.14.2 tag display name detection command [duplicate]

I'm creating a command to switch between cameras using the testfor command to identify which camera the player is holding. My "cameras" are items with custom names 1,2,3,4, etc. This is the code i am ...
3
votes
2answers
79 views

How would I fix my locked door

I've made these commands to lock a door and make it only able to open if a user is holding an item called "Hotel Master Key". This summons an armor stand, and I have placed it in front of the door ...
-1
votes
2answers
36 views

Command for detecting coordinates of a player then granting said player night vision

I'm trying to figure out a command that detects if any player is on a certain coordinate, or in the vicinity of it, and if a player is detected, it gives them night vision. What do I do to get this to ...
4
votes
1answer
104 views

How to make a wolf angry at a nearby player

I am in 1.14 and I want to summon in wolves that are angry. summon wolf ~ ~ ~ {Angry:1} Doesn't work, since the wolf must have a specific player to be angry at, which is stored in UUID's I believe. ...