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.

-1
votes
1answer
19 views

Command block to fill a chest with a book specific text 1.13.2

I'm working on a small adventure map for friend and I'm curious if there is a possibility to fill a chest with book with specific text everytime the player opens this chest? Mc 1.13.2 vanilla
-2
votes
1answer
25 views

How to make a world only consists of one kind of block?

I want to have a world made of like stone or similar material and carve it out. How can I generate a world that only has stone?
1
vote
2answers
34 views

Does forceloading chunks put a lot of stress on the server

For a project on a minecraft server I used the new /forceload command to keep some chunks loaded. There is probably about 10 chunks not counting the spawn chunks that are forceloaded. I've also ...
-3
votes
1answer
61 views

Making a bow shoot more than one arrow at once

How can I make a bow that shoots 5 arrows with 1 shot? In general, how can I make a bow that shoots more arrows in a single shot than the normal bow?
-3
votes
0answers
34 views

Need to accomplish some very specific tasks for an adventure map in minecraft, help with any one would be amazing as I'm at a complete loss. *long* [on hold]

I need to preface this with the statement that I understand the rules of this app and I know that this seems broad. But unless you understand the full picture, you don't understand why I can't use ...
-1
votes
1answer
28 views

Are there commands that can give players permissions like “can open containers” or "can build/mine

I'm making an adventure map. One of the players is supposed to be the host and the other 3-5 Are meant to have limited permissions. The goal is to make command blocks so there's a self destructing ...
1
vote
1answer
54 views

Talking to moving NPCs in Minecraft 1.13 (Java edition)

Context: In order to trigger a chat message "from" NPCs - say villagers - when approaching them, I am using an always-active repeat-command block (A), a redstone-signal-sensitive impulse-command ...
0
votes
2answers
49 views

How do I escape a ton of entities crashing my game

So I was making a command with arrows and I accidentally made them duplicate every tick. Now they are crashing my game every time I join my world. Is there any way I can remove all the arrows? I've ...
-2
votes
0answers
30 views

How do i exit a command block death loop in a snapshot [duplicate]

While making a minecraft world I accidentally put a kill command on a repeat command block. Is there anyway to get out of this loop. I cannot export to a server as the server crashes when given the ...
0
votes
1answer
42 views

Make hole with snowballs in Minecraft 1.13.2

How can I make it so when a snowball hits snow the snow disappears? I am in 1.13.2 and trying to make a snowball spleef game. /execute at @e[type=snowball,tag=ground] run fill ~ ~ ~ ~ ~ ~ snow ...
-1
votes
1answer
24 views

Command for filling storage with items..? [closed]

Is there a command for filling any storage unit with items? If so, please let me know.
-2
votes
1answer
27 views

Placing blocks on specific blocks only [duplicate]

I have one question. I have been creating some maps lately and I want to have a lever only place able on white wool. though I am always watching and reading tutorials on how to, but they don't seem to ...
-4
votes
0answers
16 views

Is there any way that i can test if a block is in a large area [duplicate]

So i have a large area of different blocks and I want a command to trigger when one or more of the blocks is air. I've tried using the /execute if blocks but it only triggered when all of the blocks ...
-1
votes
1answer
48 views

Why is minecraft telling me to put a close curly bracket in a quote?

So i've indented my command (the command was generated by a program im making to execute multiple commands in one command) and it keeps telling me to put a '}' after the Command:\\" but that segment ...
-3
votes
0answers
18 views

My MC Xbox Command isn't working [duplicate]

im trying to enchant my stick in Minecraft Xbox One Edition and the command i keep putting would give me this message:" *Line 1, Column 2 Missing '}' or object member name." This is the command if ...
1
vote
0answers
31 views

How to test for any mob death w/o scoreboard

I'm currently working on a simple thing where whenever an entity near me dies, it gives me an item. I can do all of this, save for test when an entity dies. On research, many solutions are there for ...
0
votes
0answers
14 views

Custom villager trade tables cannot show up

I'm trying to get custom trades with villagers. I'm using 1.12, but I can't seem to get the trade table to show up in the GUI. This is the command I used: /summon minecraft:villager ~ ~ ~ {...
1
vote
1answer
53 views

how do i make it so that my diamond sword can give player potion effects?

How do i put potion effects on my sword? like in factions when you hit a player they get wither, poision, slowness, weakness, blindness, etc. ive looked on the internet for commands. i also tried to ...
3
votes
2answers
52 views

Long Minecraft Delays (1.12.2) [duplicate]

I have looked around the internet for methods of having big redstone delays (Up to 5 or 7 minutes), and multiple of these delays in a row, each delay sending a redstone signal to a command block then ...
-2
votes
0answers
39 views

How to give nearby armor stands invunerability?

If I have placed a bunch of armor stands down, is there a way to give them invulnerability without spawning them with invulnerability?
0
votes
1answer
51 views

What command can I use to locate tnt in a players inventory(PE)

I want to make something in Minecraft with security doors but I can’t find out how to locate a specific item in a players inventory shulker box, ender chest, or hand. I need assistance to find the ...
0
votes
1answer
39 views

How do I test for when someone kills all of the zombies in an area?

I have been trying to make a minecraft map in windows 10 edition but I can't get the setbock command to work if all of the mobs in the area have been killed.
-1
votes
0answers
23 views

How do I exit an endless command block-induced death loop without downloading software? [duplicate]

When making a Minecraft world, I had the idea to kill the player when their Y position is 4 on a "Doesn't need Redstone", repeating command block. However, it didn't work and I am stuck in an endless ...
0
votes
1answer
30 views

tellraw problem with portuguese and spanish text

always when the message contains some accent in some letter, it returns an error in json instead of working. Text Example: ýay Result: [RCON] Invalid chat component: End of input at line 1 column ...
-1
votes
1answer
41 views

How do I summon an armor stand with a steve head, leather armor, and posable body parts?

I'm trying to make an animation with armor stands, and I currently have this command: /summon armor_stand -375.5 37 -599.5 {ShowArms:1,NoBasePlate:1,ArmorItems:[{id:leather_boots,Count:1b},{id:...
1
vote
2answers
76 views

Is there a command that automatically kills players who use specific commands?

I want to prevent my friends from using the commands /give and /gamemode, however I wish to allow them to use commands such as /tp. How could I prevent them from using these commands, without turning ...
0
votes
0answers
17 views

Minecraft 1.14 Villager IDs [duplicate]

Before 1.14 you could specify the villager's profession in a command with the tag Profession, like /summon minecraft:villager {Profession:(Number from 1-5)}. In 1.14 instead of 5 professions there are ...
0
votes
2answers
74 views

How do I force a particular gamemode only within a radius? [duplicate]

I want to execute a command in which within a certain radius, players will always be in adventure mode, once outside of that radius, they will be in survival. The command I am trying to use is /...
-1
votes
1answer
21 views

Command is spawning multiple mobs at the same time 1.13.2

My summon command summons a random amount of mobs: /execute as @e[tag=testercom] at @e[tag=testercom] if block ~ ~ ~ lime_concrete run summon armor_stand ~ ~ ~ {Tags:["testercom","lime"]} Why is ...
-3
votes
1answer
31 views

How do you use the new ^ system? [closed]

How is this system different than the old one? Also, what new capabilities does it bring?
-2
votes
1answer
35 views

Why do the bats keep appearing in Minecraft PE when I’ve used the kill command?

Minecraft PE? Yes, yes I know. Anyways, I’ve had this issue a while back (on a different device and world) and stopped playing for a while but it’s reoccurred! I’ve used the kill command (/kill @e [...
-1
votes
1answer
32 views

Spawn baby villager command issue

On Minecraft I am trying to spawn a baby villager. I’m using /summon villager ~ ~ ~ {Age:-2000000000} but it isn’t working. What is my error?
-1
votes
0answers
17 views

Head that rotates toward me?

I was wondering if I could make a head rotate towards me(Im using the steve head). I'm trying to make a camera that follows you... I'm using mcpe/windows 10 edition. Any suggestions?
-1
votes
1answer
88 views

Minecraft, how to summon specific villager in 18w50a?

I tried every command I could find on the internet and none of them works. -.- I want a toolsmith but: /summon minecraft:villager ~ ~ ~ {Profession:3, Career:3} spawns just a random villager....
-2
votes
0answers
32 views

How to change nbt-tag

I need to change some nbt tags of a player item. How can this be done? I know there is a command /data but I could not do it. For example, I need to change the author's tag from the written book that ...
-1
votes
0answers
22 views

How to execute commands relative to one coordinate

For example: I have a chain of blocks. The first block is a repeater, it determines the presence of a player on a specific place. He has next command: /execute positioned ~-2 ~-0.5 ~1 run execute if ...
0
votes
2answers
38 views

Making mob(s) revolve around the player

I'm currently working on adding various kinds of special effects and items in minecraft, through command blocks, and have just encountered an obstacle I can't think of a way to bypass. My idea was to ...
-2
votes
1answer
33 views

How to use /setblock to set a command block down with a command pre written inside of it Minecraft 1.13

I might be the only one who hates this new 1.13 update because Mojang messed with the commands waaay too much. Anyways, I want to set down a command block with a command I've written inside of it ...
-2
votes
0answers
29 views

How to make text show up in the middle of the screen in Minecraft?

I'm aware there are already several discussions on this topic. However, I have looked at all of the ones I could find and nothing has worked. This is generally referred to as the /title command. It's ...
-1
votes
1answer
50 views

How to summon minecraft zombie with armor in 1.13.2

I have no idea how to summon mobs or zombies more specifically with armor and swords. I use the command /summon minecraft:zombie ~ ~ ~ {Equipment:[{id:267}]} for an iron sword or replacing the id with ...
-2
votes
0answers
25 views

So I'm trying to do a infested mechanic

I'm trying to make a mechanic that when I kill a mob other enemies are summoned but I have absolutely no idea of how to test for the mob's death.
-2
votes
0answers
30 views

Give everyone glowing after they throw an item

With command blocks, how do I make it so when someone throws a stone hoe called Glow It gives everyone in a radius of 200 blocks a glowing effect?
-1
votes
1answer
21 views

I'm trying to change the mob's weapon if the player is near but it wont change

Everything seems fine as far as the command goes but the weapon of the enemy won't change so I don't know what happens... execute at @e[type=minecraft:skeleton,name="Soldier"] if entity @a[distance=...
0
votes
1answer
42 views

How detect a fake player with the highest score in a scoreboard in Minecraft 1.13?

In a minigame I created, I have a scoreboard dummy objective called "Gold" and two fake players called "Team_Red" and "Team_Green" that are holding the scores for team "Red" and team "Green" ...
-2
votes
1answer
24 views

Can you execute a /fill command based on another player's coordinates?

I'm looking for a way to make a fill command that fills where another player is. I know you can do it to your own coordinates using the ~ ~ ~ keys, but can you do it to another player/entity? I'm not ...
-2
votes
0answers
30 views

How to detect which player killed the ender dragon in minecraft 1.8?

So, I am making a game for myself and group of friends, and the objective is to kill the Ender Dragon first. However, I am not sure how to detect which player killed the Dragon, and how to create a ...
-2
votes
0answers
32 views

How Do I Get A ArmorStand To Wear A Custom Head?

I get my custom heads from https://freshcoal.com/maincollection.php and i was wondering if you could use the "Camera" on the "Devices" tab and put it on an armorstand. Heres the command to give you ...
-1
votes
0answers
14 views

Minecraft Xbox: Text in chat when leaving spawn area - command blocks

I've made it where members who are in survival mode will automatically be placed in adventure mode while in spawn coordinates. However, I'm having trouble with something... When the command runs to ...
-2
votes
1answer
46 views

Detect 64 specific items in the inventory

I need help for detecting 64 specific items in my inventory whether it's stack or not. This is the command I used: /execute if entity @a[nbt={Inventory:[{id:"minecraft:apple",Count:64b}]}] run (...
-3
votes
1answer
42 views

How do you create a timer (preferably ten minutes) that activates redstone every time it activates in Minecraft [closed]

Im just starting to use command blocks and im still figuring out how a lot of stuff works.