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.

Filter by
Sorted by
Tagged with
3
votes
1answer
59 views

Create a Minecraft Item that Executes a Command [duplicate]

I am using creative mode to tag Minecraft villagers as an adult or child. Here is the code I am using: /data merge entity @e[type=villager,limit=1,sort=nearest] {Tags:["child"]} /data merge entity @...
0
votes
1answer
42 views

How do I display arbitrary text and numbers in the scoreboard sidebar?

I'm new in these kinds of scoreboard and trigger commands. I would like to know how to display any kind of text/number on my scoreboard. Can anyone explain and give me examples of those commands?
1
vote
0answers
51 views

Baby Villager Command Block 1.14 [closed]

I am brand new to command blocks, but I want to create a command block that finds all entities with a specific name and resets their age back to -1000000. Essentially, I am trying to create minecraft ...
2
votes
1answer
100 views

How can I teleport players between dimensions with the correct ratios with a data pack?

I'm creating a data pack where when entities go below bedrock or past the height limit you teleport to a different dimension like this: END Y -128 --> Y 320 Y 384 --> Y -64 OVERWORLD Y -128 --&...
-2
votes
1answer
77 views

How do I give myself a broken Elytra [1.14]

Is there any way to get a broken elytra in creative mode? I saw a question like this 2 years ago, but I have tried it now, and it did not work.
-5
votes
2answers
61 views

How do I pose an armorstand in my hand

I want to be able to pose the armor stand, but so its still in the item form, so when I place it its ready posed, and don't say 'You cant` Because you can. I've seen it before, I have an item in my ...
0
votes
0answers
20 views

How do I customize how fast a horse is going with commands? [duplicate]

I'm trying to make a really fast horse, so how do I summon a customized horse to increase speed, jump height, and health? Most things aren't up to date, so what's the best way to /summon a horse that ...
0
votes
2answers
51 views

How to replace multiple items with same count of a different item?

I am trying to make a custom food recipe. I'm using spawn eggs with /replaceitem because spawn eggs are not obtainable in survival. This works fine when the player crafts only one spawn egg, but when ...
0
votes
1answer
61 views

How to I give a player a item every time they spawn? 1.13+

So far I have this... /scoreboard objectives add CrimDeath deathCount /scoreboard objectives add CrimRespawn dummy /give CrimsonCreates carrot_on_a_stick{display:{Name:"[{\"text\":\"Dash Attack\"}]"}...
-3
votes
1answer
65 views

How do I make a scoreboard command that shows all players health in bedrock edition?

Im trying to make a minigame that is multiplayer and you can see how low on health a player is and throw a splash potion of healing on them to heal them.
1
vote
0answers
59 views

How do I make a item teleport back to me when I die or drop it?

Here is what I have so far, I need the command to find this specific item and teleport it back to me. (I don't want to turn on keep inventory because I want all of the other items to drop.) /give ...
2
votes
1answer
213 views

How to get a random player's head?

I want to give myself a random (@r) player's head on my server but I don't know if this is possible. I'm on Minecraft 1.14.4 and when I place minecraft:give @p player_head{SkullOwner:"@r"} into a ...
-3
votes
1answer
92 views

How to stop a /kill loop [closed]

On my Minecraft server one of my admins placed a command block "/execute @e run say HEY SAV URE GAYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" and made it always active. I cannot figure out how to stop the command ...
2
votes
1answer
71 views

What is the difference between the single dot, double dot and triple dot operators in Minecraft commands

I've been using the double dot (..) operator in commands ever since they were introduced but I've recently noticed that I can use just a single dot, double dot and a triple dot as well. What is the ...
-3
votes
1answer
62 views

How to make an arrow place a block on impact?

I’ve seen the ones where the blocks spawn in throughout the arrows’ trail, I just want one single block to spawn on impact of a wall or the ground or the ceiling or something. I don’t want the arrow ...
0
votes
1answer
59 views

minecraft command conversion from 1.9 to 1.14 help?

I was looking for a way to make Christmas lights in vanilla Minecraft and found a fairly simple set of commands even a noob like me could execute. Unfortunately, they're heavily outdated. As I've said,...
-1
votes
2answers
40 views

How to test for a player in a certain radius? [duplicate]

I am wondering how to test for a player in a certain radius. I've tried /testfor @a[r=22], that's all I know. Can any one help me solve my problem? I'm on Version 1.13
7
votes
2answers
68 views

How do I stop a looping command block in Minecraft for Windows 10?

This morning my sons apparently made a command block today that pumps out wolves to the point they've crashed their game and it now locks up within a second of restarting it. I assume dying under the ...
0
votes
1answer
37 views

How do I teleport all entities within a certain radius centered around me to their relative coordinates in the Nether?

I have been trying to do this and it can't get it to work. I want to teleport every entity(except for me) within a certain radius(2 blocks) around me to the Nether like some sort of banishment. I ...
2
votes
1answer
46 views

How can I make a “needs redstone” repeating command block reset after it loses power?

This is a weird one. I'm creating an adventure map where when a player walks past a block, they get a bit of text. I only want this to run once, so my solution is to make a Needs Redstone repeating ...
0
votes
1answer
133 views

Placing and destroying blocks using Minecraft commands [duplicate]

I wanted to mess with some basic commands and one of the commands that I have heard of quite frequently was one that gives someone an item than can break and place entities, blocks or items. I have ...
1
vote
0answers
31 views

test for something in chat minecraft command blocks [closed]

I was wondering if there was a way to check if something is said in chat with command blocks. Checking if it was said with /say or /me would be great as well. PC and PE would be great. Thanks!
0
votes
1answer
62 views

How to set a gamemode radius with command blocks? [duplicate]

I've been trying to figure out how to change a player's gamemode from adventure to survival when walking out a certain radius. The map size I'm using is 2956x2956 & I wanna be sure to cover all of ...
0
votes
1answer
36 views

Give an item to a player based on their scoreboard points [closed]

So, I'm busy trying to make a series of commands that will allow me and my friends to have a custom survival experience. I need to have a command block that will add wings to a player's inventory if ...
-1
votes
2answers
130 views

Placing blocks on everything in Adventure mode

What is the command to give an item that can be placed on every block in Adventure mode in Minecraft 1.14.4? This works for single blocks: /give @p stone{CanPlaceOn:["stone","dirt"]} But is there a ...
1
vote
1answer
43 views

Is there a OR operator in executing commands? (Java 1.14)

I have been running into roadblocks at the moment with the use of executing if and unless statements, not only that but also in using tags. for example here I have a command block running through a ...
0
votes
1answer
40 views

How can I set up build areas in Minecraft?

I want to set up a world where there are designated building and mining areas, but I don't know how to do this. Do I need a mod or plugin, or can I just use commands? If so, what do I need to do ...
2
votes
4answers
211 views

How do I invoke many thunderbolts in a certain region? [duplicate]

In Minecraft 1.12, I'm trying to get a certain region to be hit by constant thunder. I was trying to use this command: /summon minecraft:lightning_bolt 494 33 598 [dx=5,dy=5,dz=5] but it just hits a ...
0
votes
0answers
33 views

How can I enable members to use the /function command

I want players in my Minecraft world (Bedrock Edition) to be able to use the function command without being given operator permissions. Is this possible through the use of behaviour packs or commands? ...
-2
votes
1answer
67 views

Minecraft Candestroy data tag not working for mods

I am attempting to make a block that destroys a MOD BLOCK, not a vanilla block. I've tried: /give @p stone_pickaxe {CanDestroy:["popcornMod:popcornBlock"]} and alot of different caps of that. ...
-2
votes
2answers
536 views

Minecraft Datapack drop X blocks instead of One when Destroying any block

I want to create a Datapack. My goal is to drop more than one items when destroying a block in Minecraft. For example: When I destroy a grass-block it drops default One dirt-block. But I want (for ...
0
votes
1answer
42 views

Executing a command over a long distance

I'm using MC Bedrock (On Windows 10), and I want to execute a command at 5000 ~ 5000 using a command block placed at 0 ~ 0. I know this is because command blocks have a limit of 100 blocks in which to ...
0
votes
0answers
20 views

Minecraft 1.14.4 detect selected item name [duplicate]

Need some help getting a 1.14.4 command block to detect the item in hand by it's display name. This works for find just the item kind: /execute if entity @p[nbt={SelectedItem:{id:"minecraft:...
-1
votes
1answer
39 views

How can I get the coordinates of a player in Multiplayer?

I'm trying to make something like a snitch that tells you where you are and if you are in the radius of a block, but the only thing that's missing is finding the coordinates of a player so I can see ...
-4
votes
1answer
66 views

how do I use the /particle effect in Minecraft education edition

exactly as the title said I was wondering if the /particle effect could be used in education edition. If it could be then I'd like to know how to use it. I can never figure out the string thing.
-2
votes
2answers
103 views

Does /kill @e target Item Frames and Armor Stands?

In one world I tried to fight nine stacks of zombies at once, but it lagged my pc out and I had to use /kill @e to get everything back in order. On the same map, I had a 341 map megamap that was on ...
-1
votes
1answer
27 views

minecraft - Always active repeating command block doesn't bypass given command [duplicate]

When I enter the following command in a Repeating Command Block (always active), nothing happens. execute if block ~ ~1 ~ minecraft:dropper{Items:[{Slot:0,id:"minecraft:redstone",Count:1},{Slot:1,id:"...
-2
votes
1answer
51 views

How can I change the Game Mode of specific players? (in Minecraft 1.12) [duplicate]

I'm creating a Death Race map and I want to make sure only "OP's" can stay in Game Mode 1 and all the rest of the players stay in Game Mode 2 (in Minecraft 1.12) I tried to leave a Command Block ...
0
votes
0answers
18 views

How do I make hostile mobs ignore players [duplicate]

ive looked it up but the advice seems to be outdated, im trying to make a change to a map to allow players to fight alongside of vindicators in 1.13.2 but I want the vindicators to not kill the ...
-3
votes
1answer
47 views

How do I kill entities at y=65?

Potions can survive at y=65 One potion was thrown into the void, but instead of being killed, it just lingered there. Any ideas to kill it? I can't just run /kill @e[type=!player,tag=test1] (yes, ...
1
vote
2answers
138 views

Are there any commands that checks the weather? (1.14.4)

I am working on a datapack and I want to check if the weather is rain, thunder , or clear. Is it possible to check the weather using only commands?
1
vote
1answer
52 views

Excluding people from an effect

I own a Minecraft factions realm in pocket edition and want to make it so players cant grief people’s bases. I have already set up a repeat command block that goes like: effect @a[r=20] ...
2
votes
1answer
43 views

Detecting the dimension where a player is

I want to check a player's current dimension using a scoreboard. For example, if a player is in the overworld, scoreboard would be set to 1. Nether would be 2. And the End would be 3. I have tried ...
0
votes
1answer
92 views

How do I make a scoreboard command that detects when a player crouches in multiplayer?

In Minecraft 1.13/1.14, I start with some commands that work for singleplayer like: /scoreboard objectives add Sneak minecraft.custom:minecraft.sneak_time /execute as @a[scores={Sneak=1..}] at (my ...
0
votes
1answer
191 views

How do I teleport a player to a random position?

I need a random number from -100 to 100 for a command block /tp @p (random number 1) 200 (random number 2)
1
vote
2answers
205 views

Location based gamerules on Minecraft Realm (1.14.4)

Me and a bunch of buddies have a minecraft realm and have access to the nether too. We don't have any gamerules changed at this point but I (as the owner) got some complaints about losing items in the ...
7
votes
2answers
1k views

How to calculate player health percentage?

I have created the following objectives: health - health health1 - dummy (used for health*100) healthPerc - dumny (used for health1/20) The only problem I'm having is that when I do: /scoreboard ...
1
vote
0answers
47 views

How to make ranks in MCPE 1.13 [closed]

I’m an owner of a Minecraft Factions Realm and would like to create ranks, such as default, lord, owner, etc. After watching millions of tutorial videos I still cannot find a way to have prefixes in ...
0
votes
0answers
25 views

How would I remove an exact amount of named items from a users inventory on MCBE? [duplicate]

I'm trying to remove exactly 5 sunflowers from a user's inventory, and if they have less than 5 the transaction will not go through, I know a long way of doing it, but the ammount of command blocks is ...
1
vote
1answer
130 views

How to lock slot interaction to armor stands?

I have tried all i could possibly think off , there is a tag for locking slots but it does not work, i tried locking all slots, only weapon slots but it wont work, as soon as i click the armor stand i ...

1 2 3 4 5 67