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
0
votes
1answer
46 views

How to Summon a Rideable Phantom?

In Minecraft Bedrock Edition, I can't seem to summon a ridable phantom. I've watched some YouTube videos and tried all the commands that I found using Google, but it still doesn't work.
0
votes
1answer
85 views

How do I activate a command block by going near by at least 3 to 5 blocks [Minecraft 1.17]

I am a little confused with the execute command in command blocks. I have a server with Essentials and Worldedit plugins 1.17 and I want to activate command blocks by going near it as a jumpscare. I ...
0
votes
1answer
25 views

Adding distance in the data command makes the command fail

I'm trying to making the command block detect the dragon phase within 100 blocks using this command: execute store result score @a Dragon run data get entity @e[type=minecraft:ender_dragon,limit=1,...
1
vote
0answers
43 views

Force every edible item to be nonstackable

I'm creating a Minecraft server which incorporates realism, including spoiled food (see my other question). The drawback of this possible solution to this is that it requires items to be non-stackable....
3
votes
0answers
41 views

Testing the age of a certain item in ticks?

I'm developing a Minecraft server which incorporates realism using a command block network in the center of the map. I'm trying to simulate food spoiling via testing for the age of an item (i.e. if a ...
0
votes
0answers
27 views

Is it possible to make a food item that gives you a specified effect after eating in minecraft java? [duplicate]

The title speaks for itself. Im basically trying to make bread that you eat and then you get nausea and poison for 5 secs
3
votes
1answer
374 views

How does one summon specific tropical fish variants in Bedrock Edition?

I recently was on my world trying to summon specific tropical fish variants via some commands that I found online that were shown to work for Java Edition, however if I attempt to type that same ...
5
votes
1answer
189 views

Command Block Door

I have searched this forum and the internet, but all the proposed solutions don’t work for one reason or another. Since someone removed the “Minecraft PE” part of my title (Why?), I'm just going to ...
0
votes
1answer
68 views

I deleted the portal to the end city in minecraft

I was messing around with my minecraft world and accidentially deleted the portal on the main end island that leads to the first end city (don't ask me how) Does anyone know how I can put it back? Or ...
0
votes
1answer
19 views

How to get potions by /give in V1.17.10 Bedrock? [duplicate]

I need this for my Minecraft map, I tried /give @s potion_of_weakness and it didn't work.
0
votes
0answers
56 views

How do I remove armor stand arms on MCPE?

I play Minecraft Pocket Edition (Bedrock Edition) and I'm trying to do some Java builds. I need to remove the arms of the armor stands, but I can't find a command for it. Does anyone know a command to ...
1
vote
1answer
25 views

Is there a way to go beyond the tipped arrow limitations?

Is there a certain command to get some arrow such as maybe instant health 3 or more?
0
votes
0answers
19 views

Specific command to reset a players health back to a certain amount by hitting someone with an item

Me and my friends are trying to code tennis in mineraft, and one of the functions is a constant wither effect on the ball, which is a player, to act as some sort of "timer." Is it possible ...
0
votes
0answers
21 views

How to spawn TNT when a gold block is placed?

I am trying to make like an orbital strike by placing a gold block then about 50-70 block above it about 100 tnt spawns
1
vote
1answer
36 views

Any way to change the position of the /title command?

When using the /title command it displays right in the center, I was wondering if there was any to display it somewhat to the left or right. I have tried using invisible characters but Minecraft just ...
1
vote
1answer
44 views

My function isn't working can someone help me out

I'm making this parkour map with my friends on a server so I made a function for the checkpoints but only one of the commands is working, here is the function: playsound minecraft:entity.arrow....
0
votes
1answer
259 views

How can I change the color of my name? 1.17.1 [duplicate]

How do I change the color of my name? I've heard people saying something about /scoreboard teams add but I'm in 1.17.1 and it doesn't let me.
2
votes
0answers
63 views

Prevent people from using levers

I'm making a battlefield and want to include an area for "admins" and the like to enter and leave a certain area without others being able to do the same thing. I don't want to use commands ...
2
votes
1answer
74 views

(Minecraft Bedrock) Enchanting items in a custom crafting recipe

I have a bit of a problem. I would like to make a behavior pack where you can use a custom crafting recipe to craft items with enchantments on them. But I have not found any documentation or any ...
4
votes
1answer
124 views

How do I cover my entire world in water?

I want to cover my entire world in water and make it look like it’s flooded and the water has covered mountains and villages. Can someone give me a command to use?
3
votes
1answer
69 views

What is the lowest chance that can be represented by a predicate's random_chance condition?

(This question is tagged [minecraft-commands] because it involves predicates/advancements.) The Advancement Here is a custom advancement I made: { "display": { "icon": { ...
1
vote
0answers
27 views

How to add a lore to an item while holding it [closed]

Hi so I've been trying to find a way to add lore's to an item while holding it and not doing the /give command. Since I've installed a mod with a custom sword and I wanna edit the lore to it.
1
vote
1answer
132 views

How can I make a command block kick specific player on their death?

I am trying to make command blocks kick me when I die on a multiplayer server I own, running 1.17.1, I have been trying to figure this out for an hour now and still have not gotten this to work. ...
2
votes
0answers
32 views

Teleport entities on values saved in scoreboard

In Minecraft JE 1.16, I want to make an armor stand teleport to my position, but with an offset. I don't want to include Y position because Y position will change depending if there are blocks in the ...
0
votes
1answer
44 views

I'm trying to figure out how to turn a creation (designated area) into falling blocks with the correct blocks

I've found a YouTube video on how to make sand block entities look like glass, wool, or stairs, etc. I wanted to try and make some sort of creation with it, but the process I came up with involved ...
3
votes
1answer
82 views

How to make a mob spawner that spawns mobs at a specific coordinate?

I have noticed this method used in older maps, I am playing in 1.17.1, and I was wondering if there is any way to make a mob spawner spawn the entity, in my case, a piece of smooth stone, at a ...
1
vote
0answers
93 views

Custom recipes with item with custom NBT as output [duplicate]

I'm trying to make custom recipes for a datapack and have found out how, but not how to change the output to anything but a basic item. I want to output a carrot_on_a_stick with the custom NBT data of ...
2
votes
0answers
40 views

How would I test if my custom dimension exists?

I'm making a datapack that relies on a custom dimension. If the dimension hasn't loaded in, it will break things. When you add the datapack to a pre-existing world, then the dimension won't load until ...
0
votes
0answers
43 views

Changing Username with Commands (Minecraft)

On Hypixel, there's a "/nick" command that can change your username on the TAB and chat menu. I don't need the nametag changed, just the TAB name. I found a command for this by Phoenix SC, ...
1
vote
1answer
97 views

How do I make it that /trigger will only execute a command once?

So I am making a datapack for custom enchantments. I want to make it where every time I use /trigger , then the command will be executed once. However, at the same time the objective value used in /...
2
votes
0answers
19 views

How do I track player death in a specific area? [duplicate]

I want to make a shrine, in which you sacrifice yourself (die) to trigger Night/Day change For that I need to track player death in the area of that shrine, not anywhere else So far I've tried to ...
0
votes
1answer
101 views

Can Minecraft BE commands be converted to JE commands?

I'm trying to remake/translate a Bedrock Edition command into Java Edition, but it's not working: /execute @e[type=!armor_stand] ~ ~ ~ tp ^ ^ ^0.10 facing @e[name=blackhole,r=10] What am I doing ...
0
votes
1answer
34 views

Command to have lava increase creating a flood

Is there a command available to bedrock edtion that creates a lava flood? I want it where every 30 seconds the lava increase 1 block in height.
1
vote
1answer
73 views

How to remove a summoned potion?

I summoned a no gravity potion in my world and don't know how to remove it. Is there any command I can type to get it removed? I used this command to summon it: summon minecraft:potion ~ ~ ~ {...
1
vote
1answer
220 views

How can I replace blocks with air in Minecraft BE? [duplicate]

I filled up a house with light_block in minecraft-bedrock-edition and I need to replace them with air. Is there any possible command to do that? Note: I'm not against using a command block if needed. ...
0
votes
0answers
32 views

How can I make the position of one armor_stand dependent on the vertical rotation of a second armor_stands head rotation in minecraft 1.17

I have a ferris wheel and let the head of an armor_stand rotate vertically on the central axis. Since it is a vertical rotation, I cannot link the gondolas to the rotation of the entire armor_stand ...
2
votes
1answer
34 views

No Scoreboard (how do I fix?)

I’m making a Kit PvP and I decide to add a scoreboard. A few minutes later, an admin joins and removes the scoreboard. I then kick the admin that removed the scoreboard and added the scoreboard back. ...
2
votes
1answer
101 views

How can I create a shop with currency in Minecraft, using the scoreboard command? [duplicate]

I previously knew how to make a shop using command blocks pre MC 1.13 before they changed a bunch of commands. I know the basics of /scoreboard and other commands but I'm really lost on this. I would ...
4
votes
1answer
76 views

Why does this Minecraft Rotation Command not work?

I'm recreating the Donkey Kong arcade game in Minecraft, and I want Kong to be facing a certain way the whole time, so I put this command in a repeating command block: /execute as @e[name="Donkey ...
2
votes
1answer
56 views

How would I have a command block detect when a specific mob is hit?

I'm making a map, and I require that whenever certain animals are hit a string of events will occur. I tried looking around to see if I could synthesize some form of a working answer but it seems to ...
-2
votes
1answer
61 views

How do i get an item with a bold / italic colored name

I know how to get a colored item but i cant find out how to get a bold and colored item at the same time.
1
vote
1answer
232 views

How do I summon a command block as a falling block with commands inside?

I'm trying to learn how to spawn in multiple command blocks with lines in them using a single command block. Apparently it can be achieved via falling block entities and I have been successful in ...
4
votes
1answer
260 views

How do I make item frames unbreakable in Adventure Mode without locking the item inside?

I'm trying to make a map and the players in adventure mode can break item frames, so I'm trying to change that. I've searched it up and both the Invulnerable tag and the Fixed tag don't work for me, ...
2
votes
0answers
38 views

How to make a scoreboard of how far someone has walked? (Minecraft Bedrock Edition)

I'm trying to make a leveling up system for an add-on I'm making for Bedrock Edition and I need to make a scoreboard of how much someone has walked/ran, I can't figure out a way to do this.
1
vote
1answer
105 views

How to make the player face a certain direction with /setworldspawn

I've created an SMP, and I would like players to spawn facing West. Unfortunately, the world spawn causes new players to first spawn facing South. Can this be changed with the /setworldspawn command?
2
votes
0answers
121 views

How to make colorful "flash" particles in minecraft

When i use the command /particle minecraft:flash ~ ~ ~ 0 0 0 0 3, it creates a white explosion, but firework explosions give the colorful version of the same particle. How do i colour it? Is it some ...
0
votes
1answer
51 views

How can I change stone_slabs to double_stone_slabs minecraft bedrock editon [duplicate]

I'm trying to replace stone_slab with double_stone_slab using the /fill command: /fill -83,4,-369 -79,3,-375 double_stone_slab 0 replace stone_slab However, every time I execute the command, it states:...
6
votes
1answer
130 views

How can I replace stone_slab with bottom only double_stone_slab in Bedrock edition?

I'm trying to replace stone_slab with double_stone_slab using the /fill command: /fill -83,4,-369 -79,3,-375 double_stone_slab 0 replace stone_slab However, every time I execute the command, it ...
6
votes
1answer
454 views

Loading an entire Minecraft structure using structure blocks

I've experimented a bit with structure blocks in the past and I know how to load single structures using them. For example, if I wanted to load in an End Ship or Fossil I would just select the ...
6
votes
1answer
348 views

How to disable command message in Minecraft? [duplicate]

How to disable this messages? (btw i have gamerule commandBlockOutput set to false)

1 2 3
4
5
92