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
25 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
0answers
9 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.
0
votes
0answers
11 views

Max 1 entity per block

So when I break an oak_log block I summon an area_effect_cloud with the tag of B.Spawn now I use this command to summon a 3x3 area_effect_cloud square around the [tag=B.Spawn] entity execute at @e[...
0
votes
0answers
25 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 ...
1
vote
2answers
17 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
36 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 ...
-1
votes
0answers
53 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?
1
vote
1answer
43 views

Give all items infinite durability on startup in Minecraft 1.12.2

So i'm a user from Terraria, which has both no durability and no hunger (Hunger Strike fixed this). The only things i've seen to avail is for server creators in which case you can use a command for an ...
1
vote
1answer
18 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
vote
1answer
20 views

How do I clone something to the coordinates of a player? 1.12.2

I am making a map in 1.12.2, I want to make it so when you trow a specific item on the ground there will be a pillar placed on those coordinates. Can someone help me? (I already have the dropping ...
1
vote
1answer
30 views

How do I clone something to the coordinates of a player?

I want to make a map that if you trow an item on the ground, a pillar will spawn there. But I don't know how to make the pillar spawn there. I don't know if this is even possible with the /clone ...
1
vote
0answers
35 views

How can I make pumpkin heads show different HUDs when equipped?

It is possible to have an overlay applied to your screen when you put a pumpkin on your head. But can you have more than one of these custom overlays? Perhaps by using a texture pack or maybe ...
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
2answers
35 views

How do you switch places with a named mob with commands?

How do you switch places with a mob in Minecraft?
-4
votes
0answers
25 views

What is wrong with this command [closed]

What is wrong here? Im trying to test if player have potion of swifitness II in inventory execute as @a[nbt={Inventory:[{id:"minecraft:potion",tag:{Potion:"minecraft:strong_swiftness"}}]}] pls help
2
votes
1answer
24 views

How do I combine text inputs in JSON?

I want to combine some text and then a score from a scoreboard but I cannot get this to work. This is what I have currently: /tellraw @a {"text":"test","score":{"name":"player","objective":"...
1
vote
1answer
22 views

I would like to bind a command to a key [closed]

I looked up ways to bind keys to commands in minecraft, but came up empty. I would like to bind a key in a command block that gives the effect "levitation 255" so you would press a key and glide for a ...
0
votes
1answer
16 views

How do i summon a falling command block with two different tile entity data [closed]

how would i add another command or setting to my falling block like making it always active and repeating
1
vote
0answers
17 views

Adventure mode in minecraft pocket edition [duplicate]

How can you make a pickaxe that can break only certain blocks in mcpe? What is the command for that?
-1
votes
0answers
30 views

Minecraft Inventory:{[slot:100,id:netherite_boots}] 1.15 [closed]

If I do execute if entity @p[nbt={SelectedItem:{id:"minecraft:netherite_sword",Count:1b,tag:{display:{Name:"{\"text\":\"Weatherite Sword\",\"color\":\"cyan\"}"},Unbreakable:1b}}}] On a Repeating ...
2
votes
1answer
27 views

How to make scoreboard show teams instead of players?

I am trying to make it to where points for teams are shown in the scoreboard but I can only manage to get player names on there, what command do I use? On 1.16
1
vote
1answer
39 views

Command Blocks with preset commands [duplicate]

I have been trying to /give myself a command block with a preset text for about an hour or so (playing on Windows 10). My current attempt is as follows: /give @p stone 1 0 {"can_place_on":{"blocks":["...
-2
votes
0answers
38 views

/give command doesn't work [closed]

How do you get the command /give @s enchanted_book{StoredEnchantments:[{id:"minecraft:sharpness",lvl:32767s}]} to work in Minecraft 1.15?
1
vote
1answer
22 views

How to give a shield with a banner and a name?

I'm trying to give a shield that has a name and a pattern, but I can't combine the two nbt tags correctly. Either one works or neither works. Here's an example of a command I've been trying (I'm in 1....
1
vote
1answer
73 views

How do I kill a specific dropped item in a specific area? [duplicate]

I need to detect and kill sand (only sand) as an item drop in a specific area. I can detect and kill sand if it’s dropped anywhere using a lengthy command, but it doesn’t include the part where it ...
3
votes
1answer
141 views

How to delay or slowly loop commands?

I found 11 questions like this on gamingSE already, but none of them have proper and up-to-date answers. So I'm creating this Q&A: How do you either activate a command x seconds/minutes/hours/… ...
0
votes
0answers
23 views

Why does this work perfectly without distance=10 but with it, it doesnt work? [1.14] [duplicate]

So, I'm trying to get a command to work but with the distance=10 in the run effect give @e[type=creeper,distance=10] 1 2, it just doesn't work. why? Full Command: execute as @p[nbt={SelectedItem:{id:"...
0
votes
1answer
89 views

How can I get a sword with sharpness 1000? [duplicate]

I'd like to create a sharpness 1000 sword - I've seen my friends do it but they won't tell me how they were able to get this to work. I have also tried many methods on YouTube but they all don't work ...
0
votes
0answers
13 views

In Minecraft Bedrock Edition, how would I specify larger, zoomed- out maps in a /clear command [duplicate]

I am making a pvp survival world on Minecraft BEDROCK EDITION. I don't want players to be able to see where everyone is in a huge area with huge maps, but I also would like it if they could see people ...
3
votes
1answer
32 views

Minecraft Prevention of Motion of Objects not Affected by Motion Tag

I have made, using scoreboards, a chestplate that makes a variety of projectiles stop moving around it. The problem is a select few items: All types of fireballs (Fireball, Small Fireball, Dragon ...
-1
votes
0answers
26 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
0answers
18 views

How can I destroy specific items in Minecraft? [duplicate]

I want to delete a certain item, but keep other items. I don't know how to do it, though. Does anyone know what command I can use?
-1
votes
1answer
33 views

How to detect if a player has killed a mob? Minecraft 1.15.2

So I am making a function for a video, and I need a way to set a player's score to 1 when they kill a bat. I was thinking I could just summon an invisible armor stand on every bat in the overworld, ...
-1
votes
1answer
25 views

I can't use the can break command [duplicate]

I used the /give @p diamond_axe 1 0 {Can Destroy:oak}. And it said "* missing '}' line 1, Colem 2. There are no colems. WHY WON'T IT WORK!!!
2
votes
2answers
75 views

Minecraft World Loaded Detection Using Redstone (Save file load detection)

I've been trying to search for an answer to this question for some time now (World Load Detection / Chunk Load Detection / Join World / etc) However, despite my effort, I've been unable to find a ...
0
votes
1answer
29 views

Is there a quicker alternative for the [name=!] command?

I’m trying to make a multiplayer mini-game map. The solo player can activate command blocks to give harmful effects to everyone but themself. I’m using the [name=!] command, but I was wondering if ...
-1
votes
0answers
63 views

Annoying Game-Breaking Bug [duplicate]

I have made a PVP map that took an EXTREMELY long time to make. Lots of time, lots of effort, and I was finally finished and ready to show it to my friends. Then, I suddenly got glitched and ...
0
votes
2answers
52 views

The paragraph symbol to change text color in Minecraft won't appear

So I've recently been working on a world and using the command blocks to add special effects and such, and I've had no issues with anything. Then I log off to eat dinner last night and then log back ...
0
votes
0answers
28 views

Minecraft Delayed Repeating Commands [duplicate]

I play Minecraft 1.12.2 Java edition. I made a command block that basically shows a welcome intro (ex: Welcome to the world! Please ask for creative mode.) I want it to repeat about every 30 seconds. ...
-1
votes
1answer
35 views

How do I execute if there are no non-player mobs in an area?

I am attempting to create a wave survival game, in which zombies and other mobs are fought and killed until there are none left, and another wave is started right after their deaths. I cannot figure ...
1
vote
0answers
28 views

Minecraft replaceitem same amount [duplicate]

I'm wondering if there's a way to /replaceitem the same amount as a previous execute if command, so basically I am trying to make my own blocks in a datapack that is craftable, so I've made crafting ...
0
votes
0answers
21 views

How to turn cheats on or off in minecraft [duplicate]

I need to turn cheats on in Minecraft Java Edition and keep it on even when I quit and rejoin the game.
4
votes
1answer
76 views

Custom tellraw url in Minecraft

I need to have a commandblock output a clickable url to the chat with the playername inside of it and some scoreboard variables. Example: http://example.com/?player=<INSERT PLAYERNAME HERE>&...
2
votes
1answer
35 views

How to make snowballs invisible?

So I'm trying to implement, mostly for entertainment sake, but also for a potential "magic" system later on in the game, a way to make snowballs invisible while in the air. I'm on Minecraft: Bedrock ...
-1
votes
0answers
24 views

minecraft command block error [duplicate]

Can someone tell me what I’m doing wrong I keep getting this error.
2
votes
0answers
35 views

Which command can I set so that when someone dies a /title appears? [duplicate]

I am attempting to make a command that triggers when someone dies on my server. When someone dies, a /title command should run. All the other answers I've found are for version 1.12, and I need an ...
3
votes
1answer
36 views

Is there a way to spawn mobs with unique names?

I'm an avid Command Block user for Minecraft: Bedrock Edition and I'm currently diving into a system for a Boss Spawner for what's essentially an RPG-style dungeon with a Boss Spawner and boss at the ...
2
votes
1answer
50 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 ...
2
votes
1answer
23 views

How to get a block with NBT on xbox?

I have tried to use pick block on xbox but it will not get the data saved for what I pick even with other buttons.
0
votes
1answer
34 views

In Minecraft, How to create floating grass with command blocks

I am trying to build a puzzle map for some of my friends and having an issue with making floating grass/flowers with command blocks. I can easily place 1 standing on its own ( https://i.stack.imgur....

1 2 3 4 5 67