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. Always use this tag together with the "minecraft-java-edition" or "minecraft-bedrock-edition" tag.

Filter by
Sorted by
Tagged with
2
votes
1answer
208 views

Minecraft java: How to summon a custom splash potion

So the problem I am currently having is that I do not know the nbt to summon a custom splash potion in MCJE 1.16. I tried /summon splash_potion. This only summoned a uncraftable splash potion. I was ...
10
votes
1answer
1k views

Is there a way to target only undead mobs in a command?

I want to give undead mobs in a certain radius instant health potions, but I don't know how to only target undead mobs. effect give @e[distance=1..7, type=undead] minecraft:instant_health 7 10 But ...
2
votes
2answers
41 views

Minecraft bedrock items quantity selector

I have an automatic dropper in Minecraft that drops diamond ores. These diamond ores will be teleported to a specific position when a player mines a diamond there. I made some experiments on it. I ...
3
votes
1answer
142 views

How do I teleport players when they fall into a certain area in Minecraft?

For an upcoming parkour event in our server, I wanted to do a system with command blocks in which if a player falls to a certain Y coordinate (e.g y=134), they get teleported back to the spawn. I've ...
4
votes
2answers
312 views

How can I add display names with spaces on the scoreboard? [duplicate]

today i was making a scoreboard sidebar for my java server and i wanted to make a name with spaces, i don't know how to do that so i added "_". But it looks horrible, so how can i add spaces ...
1
vote
0answers
70 views

Minecraft Bedrock minecart train

I ran into some hastle myself trying to do this today: I've been planning on creating an amusement park on minecraft bedrock. For this there of course needs to be rollercoasters. Is there a way to ...
2
votes
1answer
617 views

How to make mobs change textures based on their custom name

I have been trying for the past day to figure out how to make it so that when a vindicator is named "Enchanter", it switches its textures. None of the tutorials I have watched work. I've ...
0
votes
1answer
59 views

Lowering Ticks Per Second Without Mods

I've been looking into Minecraft speedrunning categories and discovered TASing. While looking into how they make these speedruns I learned that they use mods to make the tick speed slower to allow for ...
0
votes
0answers
45 views

How can I make some blocks unbreakable in Minecraft but some aren't? [duplicate]

So I want to build a map where the blocks in spawn can't be broken but if you place a block you can break that block but you still can't break the default blocks kind of like BedWars on Hypixel. I ...
0
votes
1answer
53 views

Minecraft Server crashing overnight (using too many threads?) [closed]

Okay, i can't seem to find any articles related to my problem, so i'm asking here. So, i have a google cloud VM, which has one core and one thread (checked with lscpu | egrep 'Model name|Socket|Thread|...
0
votes
1answer
64 views

How do i make it say Hi in chat on Minecraft? [duplicate]

How do i make it say Hi in chat on Minecraft? i put /tellraw @a "Hi" in a command block and it works. but i wanna make it say it every 30 minutes. Any help please?
2
votes
2answers
71 views

How can I give points when someone is standing near an item using Minecraft commands?

I'm making a kit pvp and am using scoreboard as my points. How do I make it so when a player is standing near an item, it gives them 1 point then the item disappears?
1
vote
1answer
59 views

Can I exclude a player within a radius from a game-mode change?

I know you can change all players to the 'adventure' game mode within a certain radius, but is there a way to exclude certain players from this? The server I'm in is vanilla, with 0 plug-ins/mods and ...
2
votes
1answer
69 views

Why do my friends' and my pets keep despawning?

So, I spawn some zombie Piglins and/or Slimes because they're cute. I name them, give them some potion effects to make them pretty much immune to receiving damage, and for the zombie Piglins give it ...
0
votes
0answers
32 views

Minecraft Java Commands read from Json file

So I have a json file and I would like to read it with Minecraft commands, such as displaying the message inside of the json file. How could I do this with Minecraft 1.16?
0
votes
1answer
37 views

How can I make a command have escape codes inside a command with escape codes?

So basically I am trying to make a one-command-creation, which is where you have an entire project inside one long command. I already asked a question on here which explains how the one command works, ...
1
vote
0answers
40 views

Using a (minecraft) plugin, how can I modify the maximum durability of an Item? (Commands work as well)

I've been trying to make a plugin with custom recipes (I have that part, thank you very much) to create some pickaxes with insane durability, but I don't want it to be unbreakable, since that breaks ...
1
vote
1answer
461 views

Minecraft 1.16.5 - Teleport a player to a given location if on given coordinates

I already tried this link and many other, but it doesn't work. I think it's because I use a newer version and the commands are not the same. I want to teleport every player to 83 15 -177 if he is on ...
0
votes
1answer
46 views

What does the value tag do in raw JSON text format?

The value component was recently introduced. What does it do? tellraw @p {"rawtext":[{"score":["name":"name_ph","objective":"obj_ph","...
0
votes
1answer
35 views

How can you show text in-game?

I downloaded a Minecraft map but when I open the the doors there is a text that comes on the screen that says "open and close". How do they do this? Do they use commands?
3
votes
3answers
101 views

How do I kill all mobs in a world without being in it?

I used a command block that was set to repeat with the command /summon slime and accidentally turned on a lever next to it. Now my screen is full of slimes, the world is lagging, and I can't turn off ...
4
votes
1answer
70 views

How do I use quotes in an extremely nested command?

Basically, I'm trying to make a "One command creation", which is, if you don't know, when you have an entire creation/project in one long command. My creation makes a box, and then puts ...
7
votes
2answers
1k views

How to stop grass spreading

I'm trying to make Minecraft Dungeons in vanilla Minecraft but I just realised something: "Since grass spreads, how am I going to keep the dirt as dirt?". Is there something I can do to keep ...
1
vote
0answers
34 views

How do you delete items in “invisible” slots of shulkers with commands?

When you generate a shulker with stacked items that are supposed to be unstackable inside, then break it, the items separate, and while 27 of them remain visible, the other 37 items (provided that you ...
2
votes
1answer
131 views

How do you stop a creeper from exploding via commands?

I have built a structure in creative mode that is filled with creepers. The problem is I want to go to survival mode without blowing up the structure or myself. I don't know anything about commands ...
0
votes
2answers
178 views

How do I set a glitched text on a sing in Minecraft?

So now I know how to send a gliched text using the /tellraw command, and I also wanted to use that text on sings. So i searched it up and i found a command,( /setblock ~ ~ ~ standing_sign 0 replace {...
3
votes
1answer
80 views

Only arrows with names fly straight

Does anyone know how to make only named arrows fly without an arc in Minecraft? I have the command: execute as @e[type=arrow] run data merge @s {NoGravity:1b} working great, but I'm trying to make ...
2
votes
0answers
61 views

How to teleport every player to a different location?

I’m working on a Minecraft map. My plan is to teleport everybody (at the "event") to a different location. So the problem is that I cannot do: /minecraft:tp @a[team=event] ~ ~ ~ because it ...
2
votes
1answer
41 views

Keep minecraft book opened after click event

I am creating a tabletop RPG map and I'm using books to display the player's current status, but as soon as the player activates a click event on the book the book closes. This is a problem because ...
1
vote
2answers
86 views

How can I give myself certain potions via commands?

I am making an RPG server and so I'm also making shops where you use points to get items, everything is working but the potions, I tried to look up how to give potions with command block but every ...
1
vote
1answer
35 views

How can I setblock of a button that is always pushed?

I'm trying to make a button that is always pushed for building purposes, how would I do this?
0
votes
0answers
16 views

How do I detect when a player kills a mob in Minecraft using commands? [duplicate]

I'm making a Minecraft challenge video, and I want to make a data pack that has a function that executes a command when a player kills a mob. How could I do this?
0
votes
2answers
50 views

Minecraft: determine where a filled map is located (cord range) without having to go there

F3+H turns on tooltips and lets you see the ID (even if you renamed the map) when you hover over the map but I can't find anything that tells where a filled map* is located. I'm trying to understand ...
3
votes
2answers
141 views

How to hide functions from the autofill menu in Minecraft Bedrock Edition?

I'm creating several functions in a behavior pack for Minecraft Bedrock Edition, and I'd like to be able to hide some of them from the autofill/autocomplete menu that lists functions when you first ...
0
votes
0answers
31 views

How do you rotate armor stand limbs specific degrees

I'm trying to rotate the armor stand's limbs by certain degrees but I can't figure out how. Example of intended result: being able to make the arms spin in circles
0
votes
1answer
232 views

How do modified mob's knockback in minecraft?

i really mant to play minecraft with mobs that has 1.000.000 knockbacks, it sounds cool and fun. so how do i can change mob's knockback? need third party app to mod the world or just use commands ...
-1
votes
1answer
81 views

How do I give myself a Netherite pickaxe on Minecraft with high enchantment levels on the 1.17 snapshots? [duplicate]

I know I have to use the /give command, but what do I put after the netherite_pickaxe part? I am using the new 1.17 snapshots.
1
vote
1answer
44 views

Can't firgure out what's wrong with my Minecraft command

I was gonna do a battle with my friends with commands when in my head I thought of a command that will summon a lightning and arrow on a snowball named 'h' I did the command Repeating Command Block 1: ...
1
vote
1answer
71 views

How do I make a player die when they step off a certain block?

I keep finding things for when people step on a block, but I need for when they step off a block. I'm trying to make a command set on 1.16 where if a player were to no longer step on 1 of 2 specified ...
0
votes
1answer
39 views

How to check for minimum amount of items in Player Inventory?

For starters I am aware that a similar thread already exists, however it does not answer my question as well as being outdated. Reference: Testing for a minimum amount of items in a players inventory ...
-1
votes
1answer
75 views

How does the angry_at piglin nbt work?

I am planning to do a manhunt with lots of things as twists (Video title would be:"Minecraft Manhunt but Buttons, Pressure plates, and Trapdoors are OP) so if you hold a blackstone button, it ...
2
votes
0answers
36 views

How to spawn a mob that takes extra knockback regardless the weapon used?

I am planning to do a manhunt with lots of things as twists (Video title would be:"Minecraft Manhunt but Buttons, Pressure plates, and Trapdoors are OP) so if you hold a blackstone button, it ...
0
votes
1answer
64 views

Why is it bad practice to test for item names?

I've heard that testing for item names and lores in Minecraft JE is bad practice. For example, the following commands are not good: execute if entity @e[nbt={Inventory:[{tag:{display:{Name:'[{"...
0
votes
0answers
26 views

How to detect if player is wearing specific armor with nbt?

So I am trying to detect if the player is wearing a specific set of custom armor. I have a command that is not working. Here it is: execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:...
0
votes
2answers
47 views

Minecraft java command block reply “you don't have enough money”

I'm making a Minecraft virtual market and, here are my commands for command blocks. First command block: Impulse, Unconditional, Needs Redstone /tellraw @p {"text":"Succesfully purchase ...
0
votes
1answer
34 views

How do you teleport an item using a command block when the item is in a certain spot?

I am making a one block skyblock that is going very well except the items fall off the edge when they shouldn't because a command block should teleport the item to the infinity block, but they aren't. ...
2
votes
1answer
54 views

How do I make a tellraw command say someone's name?

I need help here, I am making a map called "The Firing". I want it to say: Welcome to The Firing, [USERNAME] What I had was /tellraw @a {"rawtext":[{"text":"Welcome ...
0
votes
1answer
742 views

How can I remove the death counter on my server?

I want to remove the death counter at the top of the tab menu and also remove the death counter at the side of the screen. How can I do that?
1
vote
2answers
77 views

How do I make items run commands?

I want to make a carrots on sticks run commands, but I want different carrots on sticks to have different names and run different commands. Is this possible?
1
vote
1answer
68 views

How can I give players custom names?

How can I give someone on my Minecraft server a custom name that replaces their own username in that game?

1 2 3
4
5
89