Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
18 views

How to use datatags in trades?

I am making an adventure map and I need to make villagers who do not take damage and trade items with the CanDestroy and CanPlaceOn tags. How can I do that? All of my command generators don't allow ...
-5
votes
0answers
31 views

Will this command work?

I want a villiger that trades an iron pickaxe for a stone button that can be placed on a gold block. Will this work? /summon Villager ~ ~ ~ {CareerLevel:6,Offers:{Recipes:[{buy:{id:minecraft:...
0
votes
1answer
39 views

XP bar not resetting to zero after a snowball is thrown

I am trying to use the xp bar as a shot reloader where it gives a player a snowball when it reaches 1 xp level. It then stops adding xp points until the player throws the snowball, after which it will ...
1
vote
0answers
14 views

Distance command and tag command not working [duplicate]

I was experimenting with some command blocks and tried to make it so that when you had different colours of wool in a specific order in your inventory it would give you certain special abilities. The ...
-3
votes
0answers
25 views

Someone good at commands? [on hold]

Can someone help me creating the Roblox game "Natural disasters"? I'm decent at commands but I need someone who can help me create different maps and stuff like that, any help is helpful.
0
votes
1answer
13 views

How can I give players with a level above 200 an effect in Minecraft Bedrock Edition?

I have created a level system where you can level up. When a player reaches level 200, it should get an effect. This is my command: /effect @p[scores={Level=200}] jump_boost 1 1 true This effect ...
1
vote
1answer
42 views

I have a problem where I tag snowballs but the tag dissapears when the snowball is in the air

I am trying to make a cool minigame. In the minigame each player has snowballs and they can set up wool combinations in their inventory which will change their snowball abilities. So far my command ...
-1
votes
1answer
9 views

testfor wont recognize what its supposed to

I'm in 1.12.2. And here's the command I'm trying to do: testfor THE_ELEMENT_KING {inventory:[{id:"minecraft:diamond"}]} But even when I have a diamond in my inventory it says I didn't match the ...
1
vote
1answer
17 views

How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?

I'm working on a minigame in 1.13 and are trying to make a command that executes at a players position and spawns an area effect cloud there. I have managed that but I also need that area effect cloud ...
-4
votes
1answer
26 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 ...
-2
votes
0answers
20 views

Command block in minecraft to open door [on hold]

I'm trying to use a command block in minecraft to where the door at coordinants -165, 63, -359 is ONLY opened with the lever named "room 4 key" (the door has a sign saying room 4). What to command do ...
0
votes
0answers
21 views

“dataTag does not match for player” when using command blocks that light blocks on fire, 1.12 [on hold]

I am trying to follow this guide: How can I make a flame arrow set a block on fire? I have recreated the command_block/redstone set up perfectly and yet it won't work for some reason. The blocks in ...
-1
votes
1answer
26 views

Is it possible to hide hud with command block? [on hold]

Is it possible to hide hud with command block in minecraft?
2
votes
0answers
42 views

How to summon chest with button that can be placed on stone in minecraft?

I have a problem I want to create a chest that will have a button inside and this button can be placed on stone block. Can someone give me the command? I was trying this: (No Error) It was placing ...
0
votes
0answers
25 views

Command Block! I'd like to replace a block for another one, for a minute, so 600 ticks [closed]

Working on building a dungeon for a server. Basically, when 100 items (custom one,were on a modpacks that were making too) are dropped into a chest, a command block detects it: /testforblock X Y Z ...
-4
votes
1answer
47 views

How do you use the setblock command in Minecraft Windows 10 edition? [closed]

I am trying to use the setblock command, but it won't work. I tried set block x y z x y z, but it won't work.
1
vote
0answers
36 views

How do I remove torches upon death?

I'm trying to find a way to set up some command blocks in bedrock edition so that when a player dies, torches are cleared from a certain area. So far, I have this: All chain command (cc) blocks and ...
-1
votes
1answer
45 views

Custom Death Message not working

I'm making a custom map for Minecraft. In it, all players die by going into water. This is the command I have: /execute at @a[distance=..100] if block ~ ~ ~ water run tellraw @a {"text":"","color":"...
-1
votes
1answer
29 views

How to set a command block with a command inside using the setblock command Minecraft Bedrock Edition?

So i'm trying to use command blocks for my next creation but i'm making it so that command blocks make it for me when I press a button. However, I need to have a command that once placed in a command ...
0
votes
0answers
35 views

Minecraft 1.14 /give command with multiple NBT tags [duplicate]

I'm making a map in the 1.14 snapshot 19w09a where the player will be in adventure mode and needs to find a key to access the next room. I've been able to run the command successfully with: /give @p ...
2
votes
1answer
46 views

How to get player with highest, second highest, etc. score?

I'm trying to make an event for a server. The goal is simple, you have to do as many tasks as possible before the timer runs out. I already figured the timer out. However, here's the catch. I want to ...
0
votes
0answers
16 views

How can I summon a specific type of Villager (Windows 10) [duplicate]

I'm trying to make an automatic farm and I need to use a lot of farmer profession villagers to 'run' it. I'm in the Windows 10 version and the commands that I've seen haven't worked for me.
-4
votes
0answers
51 views

How to make players place a skeleton skull where they died [closed]

I am on the Minecraft Better Together version with a plan for a medieval hero theme, and it would be great to have players on death drop or place a skull that can be picked up to bring them back from ...
-3
votes
0answers
33 views

How do I set a block with text 1.14 snapshot? [closed]

I'm trying to set a block using a command with Minecraft 1.14. I've tried: setblock ~ ~1 ~ minecraft:oak_sign{BlockEntityTag:{Text2:"{\"text\":\"DIAMONDS!\",\"color\":\"dark_blue\",\"clickEvent\":{\"...
-1
votes
0answers
35 views

Placing a block using commands isn't working

execute @e[type=Bat,name=Dude,score_level_min=2260] ~ ~ ~ setblock ~-3 ~7 ~10 dirt I'm using the scoreboard obj for a one command and the name "Dude" too. Every other time I put it in a different ...
1
vote
1answer
65 views

How to fill an area with lava so that it doesn't flow? 1.13

I was wondering if it is possible to use the fill command in Minecraft 1.13 to make an area full of lava that won't flow. Simply using fill ~ ~ ~ ~10 ~ ~10 minecraft:lava doesn't work in this version ...
1
vote
0answers
33 views

my Minecraft /tp command thinks there are “no entities” on my team

I'm having a problem with command blocks and teams. I am using Minecraft 1.13.2 and I am on my own public server. I have a command block that puts me on a team "player". (player is the actual name, ...
-1
votes
0answers
32 views

Naming a item using command blocks [duplicate]

I tried to use /give @p structure_block 64 1 {display:{name:home}} but it just said 'line 1 column 2 missing block member name or }' what did I do wrong?
4
votes
1answer
52 views

How can I identify all players within a given radius of a player?

Version 1.13 I'm creating a spell book, and have two self heal spells that are working fine, but I'm hitting a wall trying to make a group heal. The working spell Heal 1 is a stack of six command ...
-4
votes
2answers
97 views

How do you make a block kill you in Minecraft 1.13?

I'm trying to make a block kill you when you touch it using command blocks in 1.13. I tried using answers, but when I put /execute, it's white, and when I put /execute @p it's red.
3
votes
1answer
51 views

“ench” NBT tag doesn't work in Minecraft 1.13

I want to get a bow with a top-level Power enchantment. A command similar to this worked before: /give @p minecraft:bow{ench:[{id:48,lvl:32767}]} ...But not in 1.13. Changing the ID to power didn't ...
-1
votes
1answer
35 views

Can you make an item teleport someone to spawn in Minecraft 1.13.2?

I run a realms server and I am trying to figure out if there is a way to teleport someone to spawn or their home if they use /drop an item. It looks like there is a way to do this on 1.8, but I am ...
2
votes
2answers
59 views

What am I doing wrong with my /give command?

I am working on an adventure mode map on the Nintendo Switch Bedrock Edition, and so I am trying to give myself a diamond pickaxe which can only break mob spawners and is unbreakable. I have currently:...
0
votes
0answers
25 views

How to team players with the first player they see?

I am making a game for a group of friends in 1.12.2, as not everyone likes 1.13, ad someone continuously crashes. One aspect of the gamemode is called "Love at first Sight" This is where, the first ...
2
votes
2answers
49 views

My /fill command won't work!

I'm building my house, and it uses petrified oak slabs on the upper part of the block. When I type in /fill 25 73 -355 -6 73 -324 petrified_oak_slab , it fills it a half of a block lower. When I tried ...
-1
votes
1answer
37 views

Teleporting to which direction I'm facing using command blocks in minecraft?

I would like to know what commands to put in when, for example, I want to teleport myself into y=11 but only when I'm facing north. and when I'm facing south I'll get teleported to y=-11 EDIT: Also,...
-2
votes
0answers
52 views

How to give the nearest player an item if their score is greater than or equal to 100

So, I'm working on a game, and I need to be able to give the nearest player a tripwire hook if the scoreboards value is greater than or equal to 100. This is what I have tried so far, I set the ...
0
votes
1answer
58 views

Can't use all commands on a Minecraft PE world

I have copied a survival world that had achievements on it to make a creative world because I liked the seed. I built a little village there and I now want to put in some command blocks. However, even ...
-1
votes
0answers
43 views

How to kill all mobs at same time in 1.13.2 (java)

It seems like killing all mobs with command doesn’t work anymore. In 1.12.2, I did /kill @e[type=!Player]. Now in 1.13.2, the command is changed, meaning I can’t do this anymore. What is the command ...
2
votes
1answer
47 views

Minecraft command block: allow user on server to spawn one animal (per user)

I'd like to create a quest where a user can activate a command block that will spawn one ocelot, but limit it so that each player can activate said command only once. I've got the command to spawn ...
-2
votes
0answers
39 views

(1.13) Detecting a specific item on the player's hand

I would like to know how to detect when a specific item with a specific name is being held by a player. I am in 19w07a, but I don't believe anything major has changed related to command syntax.
-4
votes
1answer
39 views

Use a execute command once

I understand commands but I am fairly new to the 1.13 changes. I am trying to make an AFK system within vanilla Minecraft. I want to use the /execute command to execute once. I want to detect when a ...
0
votes
0answers
81 views

Creating a double-jump mechanic in Minecraft using commands

I am trying to make double jumping, i.e. jumping again in midair but only once before you hit the ground again. Hitting the ground should reset you to allow another double jump to happen. What I've ...
3
votes
2answers
63 views

Is there a way to break (like with a pick) a block with a command?

I'm looking for a command that would (possibly indirectly) break a chosen (arbitrary type) block, as if hit by player with a hand long enough - dropping the item, dropping contents if it's a container,...
-3
votes
2answers
33 views

What is wrong with my /give command? 1.12.2

Something is wrong with my command. It is telling me Data tag parsing failed: Expected non-empty key at: {ench:{id:32,lvl:500},<--[HERE] Here is the command I input: /give @p diamond_pickaxe 1 0 {...
-1
votes
1answer
70 views

How to create a boss bar that counts up?

So, I'm creating a server on minecraft with a minigame. I have most of the stuff set up, I just need to know how to make a boss bar that counts up. So, I have my boss bar name as gen1, and I learned ...
-2
votes
2answers
37 views

I want to be able to have Levels as a currency in my realm

Is there a way to get the problem that players might die and loose their hard earned levels? I don't really want to use keep inventory. Is there a specific command?
0
votes
1answer
31 views

Spotting the coordinates where fireworks has light

I want to spot the coordinates when someone light a firework, and save the coordinates that firework has been lighted. I tried to use testfor, but I see that it has been removed on 1.13.2. I am new to ...
1
vote
2answers
44 views

Showing tellraw message but no scoreboard messages in chat (CommandBlock)

I have three following up commandblocks and an armorstand: Repeating one, unconditional, always active: scoreboard players add @e[type=armor_stand,r=5,score_time_min=1] time 1 Chained one, ...
0
votes
1answer
27 views

why does my scoreboard not work?

I'm working on a system to detect right clicks using a villager and than trigger several commands. I'm using an always active repeating commandblock to start a chain of commandblocks which run the ...