Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [minecraft-commands]

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

0
votes
1answer
30 views

Minecraft teleport 1.13 from xyz to xyz

Lets say i have a command block at x100 y80 z100 running /execute if entity @e[distance=..6,x=10.5,y=8,z=10.5] How do I teleport the entity that is being detected to x20 y8 z20 (The player/entity ...
0
votes
0answers
11 views

Minecraft 1.10.2 Glass Pane CanBreak Command [duplicate]

I'm making a minecraft map in 1.10.2, and I need to make a stick break a certain colour of glass pane. I have tried many different ways of the command, but it either just breaks all stained glass pane ...
-1
votes
1answer
21 views

how do i execute a command at an entity with a certain nbt data

I am trying to execute a test command where every single creeper with a walkspeed of 0 spawned in runs a command to summon a zombie directly at the creeper with the NBT data I specified. Commands I ...
0
votes
1answer
14 views

Using execute command to teleport a player under a certain height

I am trying to make a parkour map and I want to add checkpoints not by killing them, but by detecting when they go below a certain height. I am currently using this command: /execute @a[r=68] ~ ~ ~ ...
-1
votes
1answer
32 views

How do you remove a player's score when they leave?

So, I have a queue system and I want to detect when a player leaves, and when they leave their score on a scoreboard is reset. I have no clue on how to do this and could not find it anywhere, and I ...
0
votes
1answer
44 views

How do you find a player with a score in 1.13.1?

Say there was a scoreboard objective called money, and say they had 1 money. How do I see if a player has at least 1 money? as in /testfor @a[score_money_min=1], except using /execute or something in ...
-1
votes
1answer
46 views

Tp From Relative Position to Another Relative Position

Forgive me if this was already answered, but I couldn't find a similar question. In 1.12.2 I'd like to teleport a player from (relative position to command block) to (another relative position to ...
0
votes
0answers
23 views

custom items that gives effect [duplicate]

is there any way to get some special items that gives effects when held in hand or wprn on? i saw many videos on Youtube and some answers here but all then was using a repeating command block to give ...
-3
votes
2answers
32 views

How do I add names before/after other player's names when they talk? [on hold]

I'll give you an example, we've got a guy named Jess. When he talks in chat it shows "<Jess>[anyformoftexthere]: [any message here]"
-2
votes
0answers
25 views

Target Players Outside Volume

Working on a spleef arena for a server. I want to give players a named diamond shovel when they enter the cuboid volume of the arena, but remove the shovel when they leave the arena. I need the ...
-3
votes
0answers
24 views

How to count how many players there are in a map

The question might be simple but I'm talking Commands here... So I'm making this map and I need to count how many players there are, this is for the win system detection as one player needs to kill ...
-1
votes
0answers
20 views

I'm Bedrock-Edition How can I target the same player a previous command block targeted

So, I have been scouring the internet to find this answer to no avail. To be more specific on what I'm asking, I'm trying to replace an item in someone's inventory (let's say, a crafting table) and ...
-1
votes
0answers
23 views

Minecraft bedrock edition(the newer one on Xbox one) command: how to test for item in players inventory, IF that player is in a certain radius

On the newer of the two minecraft versions on Xbox one (bedrock edition I believe?) How do I test if a player has a certain item/amount of said item in their inventory IF that player is within radius ...
-1
votes
0answers
46 views

Don't know what's wrong with this data pack for minecraft 1.13.2

I have been trying to create a data pack for MC 1.13.2 and have been unable to get the functions to respond how I want them too... the issue lies with the functions in my next folder and my mine_item....
0
votes
1answer
33 views

Fixing Remote End Gateway Portals in Minecraft Survival 1.13+

I was cleaning up an older world that I play on with my kids, and removed all of the End Island chunks via MCEdit. After going back through our End gateway, we still teleport to the same remote Island,...
-2
votes
0answers
44 views

Need help with NPC talking Minecraft 1.13 [closed]

I am new to Minecraft and would like to program a NPC which I have given a name/tag to talk. I would like the NPC to talk when a player gets within a specific distance. I am using vanilla Minecraft ...
-2
votes
0answers
23 views

Testing for armor with custom name and tags in 1.13

I've tried using this command line to test for custom armor I made but it isn't working. Help pls? /tag @a[nbt={Inventory:[{Slot:102b,id:"minecraft:iron_chestplate",tag:{display:{Name:"Heavy Vest"},...
-1
votes
0answers
42 views

Is it possible to summon a villager, who is selling a written book? (1.13.1)

I was wondering if it was possible to have a villager trade a written book with custom text and formatting? If so, and how to do it? I was able to get a command to summon a book and a villager (using ...
-1
votes
1answer
41 views

Minecraft 1.13 how to detect players at a certain Y coordinate? [duplicate]

I've seen a lot of tutorials for detecting the player at certain X,Y,Z coordinates, but I want to detect only the player's Y coordinate. In this situation I want to detect the player at Y level 18. I ...
-1
votes
1answer
33 views

How do I compare blocks in Minecraft 1.13?

In versions, prior to 1.13 if you wanted to compare two blocks you could use the /testforblocks command but in 1.13 the command was removed. I want to compare two dispensers to detect if the player ...
-1
votes
0answers
15 views

Summoning Items With Custom Names

/summon minecraft:item -143.0 92 1077.0 {Item:{id:"cobblestone",Count:1b}} I need to make it so that the item will have a custom name. Version: 1.12.2 on a server and Essentials installed
-1
votes
0answers
40 views

MCPE: Give skull command not working [duplicate]

I was playing around on Minecraft Pocket Edition with an idea I had for something and I wanted a custom head. I looked up “chest” on minecraft-heads.com and picked one I liked. Here’s the code: give @...
0
votes
0answers
5 views

Cant figure out how to get items placed on specific blocks 1.13

I understand how commands changed in 1.13, but i need to find out a way to get items to be placed on specific blocks in adventure mode, i tried to find a way to get it to work but all of the tutorials ...
-2
votes
1answer
37 views

How to put text in a player's chat box in Minecraft 1.13?

Basically, I want to have this text appear in chat: "Click Me!" When the text is clicked, I want a command to appear in the player's chat box (by chat box I mean the place where you type stuff in chat)...
-3
votes
0answers
19 views

How do I make a mob go to specific spot using commands in 1.13

so I have a question how the heck do I make a mob go to specific coordinates using commands (in 1.13) but not teleporting walking, please
-2
votes
1answer
23 views

How can I make a killcounter?

Win. 10 edition just got a scoreboard command, and I have no idea how to use it. Can someone tell me how to make a scoreboard that keeps track of each players kills? I’m making a pvp arena and this ...
0
votes
0answers
30 views

Minecraft - How to swap an item between slots? [duplicate]

Is there a way in Minecraft, using command blocks, to swap an item from slot to slot while keeping all its nbt data? Example, swap 3 stone blocks with custom lore from the second hotbar slot with 4 ...
0
votes
1answer
11 views

/testfor values

In MCPE/Bedrock, the commands sort of appear as you type them, giving you options to choose from. I typed in /testfor @p[r=3, and then, these appeared: C Dx Dy L Lm M Name R Rm Rx Rxm Ry Rym Type X Y ...
-5
votes
0answers
35 views

How do I make mobs placeable in adventure mode on Win 10?

I'm making a fighting game on Minecraft Win 10 and I want to give everybody a shulker that can be placed on obsidian or barriers without being in survival.(PLEASE don't curse im Christian)
0
votes
0answers
31 views

How can I use /replaceitem without it destroying anything?

I know it's possible to "lock" slots of a players inventory, by using /replaceitem with a barrier, but the problem I've found is that if a player tries to put an item in the same slot as a barrier ...
1
vote
3answers
117 views

Does a Gold Axe mine faster than a Diamond Axe in Minecraft?

I have been looking around on a lot of Minecraft websites, and I have seen that Gold tools, as crappy as they are, work faster than Diamond tools on some blocks. Does anyone know if this is actually ...
-2
votes
0answers
25 views

Using the execute command to kill the player after they touch water in 1.13.1 [duplicate]

I'm making a deathrun for my friend and i'm wondering how i would use the /execute command. I want to kill the player as soon as they touch water but am unable to do it because of the command change.
0
votes
0answers
27 views

Minecraft 1.13 Testfor Only 1 player in a certain area

So, I've been trying but I don't know how to do this; make a command that tests for only 1 player left in a certain area. I'm in 1.13, so I can't use /testfor, and I don't know how to use /execute. ...
-1
votes
1answer
58 views

Clearing a Custom Lore Item from inventory Minecraft 1.13

I'm at my wit's end on this one. I've prowled here for solutions and found parts that helped do what I needed but it gets stuck on this specific part. I am trying to create a string of command blocks ...
-3
votes
0answers
24 views

I have a problem with the Commands in Minecraft (execute/scoreboard)

I want to make a Command, how make a score 1 higher as soon as someone pick up an specific Item from the ground. After a little bit of testing I desidet to look into the Minecraft Wiki, but I can't ...
-1
votes
0answers
15 views

Remove then replace items from chest. (Minecraft) with command blocks [duplicate]

So in mcpe I’m making a up to date Diversity map. And I’ve studied a little bit about command blocks but how I’m still confused, im trying to make it so when a player puts a wool piece into a chest it ...
0
votes
2answers
62 views

How to programmatically move items inside an inventory?

How do you use commands to move items inside inventories from one slot to another? Using /replaceitem can only delete items and re-create them with fixed properties. Using /data merge block ...
-1
votes
0answers
19 views

Minecraft Scoreboard money system help!

So I’m on bedrock edition and I am making a city realm problem is I want to use the new scoreboards so people are able to have negative money I have a really genius way off connecting everything to do ...
-1
votes
0answers
27 views

When I type a command with“()”,”{}”,”[ ]” it doesn’t work

If I type the command: /give @p leather_helmet 1 0 {display:{color:9844224}} It won’t work. Am I doing something wrong or using the wrong bracket? I don’t know.
0
votes
2answers
43 views

How to teleport an arrow to another entitiy within a radius in Minecraft 1.13?

I am trying to update (from 1.12 to 1.13) my cannon system in which if a monster not on team "good" comes within a 4 block radius of the command block, the cannon will fire arrows. Also, if those ...
-1
votes
1answer
25 views

Minecraft command block targeting

How do I select multiple targets with one command block without using @e[type=!player]? For instance: /execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute.... Does this make the ...
0
votes
1answer
30 views

How to force a mob to rotate towards the player

I need a command that will cause a mob to rotate towards the nearest player. Instantly would be preferable, but I'll do whatever works. I know you can set rotation of a mob if you tp it, but I need a ...
-1
votes
0answers
16 views

How do I stop a endless teleport loop caused by a repeating command block on Minecraft iPad v1.6.1? [duplicate]

I used a command block on Minecraft (iPad) v1.6.1. I put the command /tp @a... and I got stuck in a endless loop? I tried teleporting to a different place far away but I was teleported to the same ...
-1
votes
0answers
39 views

How to make a TP wand with a carrot on a stick

I have a server that has a very good chance to crash but... I want to make a Tp wand for a boss battle that is me, but cant go in the chat and do it I searched and I found out that using a stick (...
-1
votes
0answers
20 views

Help with items - minecraft

So, I'm working on a map, and I wanted to be able to switch between a riptide trident and a loyalty trident using by dropping the item. so, I made this basic command, put it in a repeat command block ...
-1
votes
0answers
35 views

How do I test when a player selects a named item in Minecraft 1.13? [duplicate]

I am trying to detect when a player selects (holds) a named item in Minecraft 1.13. I have been trying to find a way to do this for ages, but I was unsuccessful. Note that the command has to be ...
-1
votes
1answer
27 views

How to detect minecraft item (any fern) in correct item frame and in correct rotation (1.13)

I would like some help in the use of command block on my adventure map. I would like to know the "execute if" command needed to detect if a fern placed at a item frame at a specific position is ...
-1
votes
1answer
85 views

What happened to the “give skull” command in Minecraft? [duplicate]

I just got Minecraft Bedrock Edition, and I wanted to Make a map for a Minecraft YouTuber and put his head in the dedication, but both of the the "give skull" commands (/give @p minecraft:skull 1 3 {...
2
votes
1answer
46 views

Minecraft Command NBT Array Add

I'm having (for example) a entity (Drop) with this NBT: {Item:{tag:{display:{Lore:["test1"]}},id:"minecraft:bread"}} I'm trying to add a new lore: /data merge entity @e[type=item,tag=myDrop] {Item:...
-3
votes
1answer
38 views

How do i test if there are no blocks above player?

The command should be simple but i can't figure it out basically i want it so that if a player is stanting under a block the command will not activate but if the player has only air blocks above him ...