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
0answers
3 views

1.16.1 Item Teleporting but how tho?

Im asking if its possible to teleport items to a certain location because ive seen it in Bedrock Edition and MCPE but how do you do it in Java edition? I have tried /tp @e[name=coal] -120 67 890. And ...
0
votes
1answer
15 views

Add custom color glowing effect

I would like to know how to add custom color glowing effect. I already did: /team modify Owner color dark_red but it still doesn't work, I still get the white color, even if I'm on the team.
-1
votes
0answers
16 views

scoreboard execute issue

Having an issue with the following commands: /scoreboard players set @a[nbt={Inventory:[{id:"minecraft:saddle",Slot:-106b,tag:{display:{Name:"Parachute"},Enchantments:[{id:2,lvl:10}...
-1
votes
1answer
39 views

How do commands work in Bedrock edition?

I have done a lot of research on a command to summon a horse with specific attributes (increased health, etc.) but it all is in Java. To me, the Java commands make a lot of sense but the Bedrock ...
-1
votes
0answers
34 views

Why can’t I summon invisible item frames in Minecraft PE

Every time I use the new command to give myself an invisible item frame it doesn’t work. This is the commands I used: /give @p frame{EntityTag:{invisible:1b}} /give @p item_frame{EntityTag;{invisible:...
2
votes
1answer
251 views

How can I make an item display fake CanPlaceOn data?

In Minecraft Java Edition, I am experimenting with using CanPlaceOn and CanDestroy NBT tags in items to control which blocks that the player can place their items on. Now I am making a troll map, ...
0
votes
0answers
19 views

Store an item in storage

I have figured out how to place a selected item in a chest: /data modify block -255 71 97 Items[{Slot:0b}] set from entity @p SelectedItem How do I place a selected item in a storage using /data ...
2
votes
2answers
28 views

Finding the criteria for a scoreboard objective

I'm trying to understand a Minecraft game that someone else has written. They've used the scoreboard feature to implement a few variables. Say the author used /scoreboard objectives add objectiveA xp....
-2
votes
0answers
27 views
0
votes
1answer
23 views

Is there a way to detect rain in datapacks?

The answer here technically works when utilizing command blocks, but isn't possible when working with datapacks. I do have the same limitations as the linked question, in that I can't use cauldrons, ...
0
votes
0answers
22 views

Is there a way to change what occurs when a specific block is broken?

I am essentially looking for a way to do three things related to when a block is broken: a) Change a block's "loot table" (what the block drops), either single or multiple item/block drops b)...
-3
votes
1answer
60 views

How can i improve my parkour map idea? (minecraft 1.16) [closed]

I got an idea for a parkour map but as you can see in the video there are some problems with it! the question is if there are a way for me to make the armorstand move smoother and not glitch/lag ...
-1
votes
0answers
15 views

Make the scoreboard sidebar automatically switch objectives [duplicate]

I made a datapack to track a lot of stats in minecraft under the scoreboard command. But now I want to automatically change the objective on the sidebar every hour. So I want to make a function that ...
-1
votes
1answer
27 views

Check if player is holding a specific tool (can be any type) [duplicate]

How can I check if a player is holding a specific tool? The specific tool can be made of any type of material. Example: /execute as @a[nbt={SelectedItem:{id:["minecraft:PICKAXE-ANY-TYPE"]}}] ...
-1
votes
0answers
22 views

How to make Minecart with Chest's GUI's in 1.16

I am currently trying to make GUI's in Minecraft 1.16 for a project I am working on. Currently with a lot of help I have made it to where when there is a nether star in your inventory a Minecart with ...
-3
votes
0answers
43 views

I need help again, how do use minecraft commands? [closed]

how do you use all world edit commands from computer minecraft in bedrock edition (console)? more specifically, how do you take a certain block radius and move it down?
-1
votes
0answers
23 views

How do you testfor a named head on an armor stand?

I'm working on a minigame in Minecraft (1.13) and want to be able to test if a named head is on an armorstand. For example: If a player head with the name "Lettuce" is put on the armorstand,...
-2
votes
1answer
43 views

How do I summon an arrow to move in direction that I'm facing? [duplicate]

Im trying to summon an arrow that will move forward like it was shot out of a bow, in the direction im facing in 1.16.1 minecraft. Anyone know how to do this?
-1
votes
0answers
35 views

How to target player with the lowest health?

How to target the nearest player to me with the lowest health by using command? I believe it is going to do something with health scoreboard.
2
votes
1answer
44 views

How to teleport Minecart with chests above a players head?

I've been having trouble making menu GUIs in 1.16. My best idea so far was to create a command making it so when ever there is a nether star in my inventory it teleports a minecart with a chest in it ...
3
votes
1answer
41 views

How can I make only certain blocks of the same type breakable?

I am creating an adventure map, and am experimenting with using the NBT tags CanDestroy and CanPlaceOn to control which blocks a player can place/break. I have already made a pickaxe that can mine ...
1
vote
1answer
33 views

How can I set a player's scoreboard score to a player's coordinates [1.15.2]

I am creating a map in Minecraft Java Edition 1.15.2. I would like to be able to get the X coordinate of a player and store it in a scoreboard value. How can I do this?
3
votes
1answer
49 views

Is there a way to put spaces in a scoreboard player name?

This was a bit hard to give a name to (since it's just really hard to explain, if there is a better title for this question, then go ahead and change it via an edit). Note that this is only focusing ...
0
votes
0answers
32 views

How to target the player who kills another player with a custom snowball?

I made a custom snowball that can give instant damage effect when it is thrown near a player which makes it appears to be like the snowball actually deals damage to player. I want to add up the score ...
0
votes
1answer
32 views

How can you detect when a player is looking at an entity in Minecraft Bedrock?

I'm trying to detect when a player is looking at another player to re-create Dream's 'Speedrunner v Assassin' video with GeorgeNotFound, in which if George looks at Dream, Dream becomes frozen. I ...
0
votes
2answers
32 views

Is there a way to find the NBT of a player head?

Let's say I have the head of a player by the name of "Player" (creative, I know). If you have the physical head in your inventory/stored somewhere/in your possession, and that head has the ...
0
votes
0answers
21 views

How do I continue a data pack function even when a command fails?

I am very new to data packs, and while messing around with /execute I ran into a problem. As of 1.16.1 there is no "else" subcommand for the /execute command, meaning I have to do something ...
1
vote
1answer
30 views

Can you make a repeating command in minecraft with /data command, that only affects any entity once?

I am trying to make a command block command for server I am playing at, that would make any creeper near it not explode. As they still somehow spawn where they shouldnt and keep blowing up behind ...
0
votes
0answers
30 views

How do I /kill a specific item on the ground with CustomModelData?

I m trying to make it so that some specific items would be undroppable. Im trying to do this by killing the "undroppable" items when on the ground. I know that /kill @e[type=item] would kill ...
4
votes
0answers
47 views

Ender Dragons spawned with commands center their behavior at (0,0). Can this be changed?

I'm trying to create a 1.16.1 adventure map which includes an Ender Dragon boss fight. I've figured out how to summon a dragon in the Overworld that isn't passive, but the problem is that the dragon's ...
1
vote
1answer
38 views

How can I target the same player that was previously targeted randomly?

I am making a Minecraft commands map and need to give a random player two effects and one item. I understand that each effect/item needs to be given in a separate command. The problem is, @r targets a ...
2
votes
1answer
35 views

How do I make fire form if a specific splash potions lands?

I need a splash potion that works like a Molotov in vanilla Minecraft.
0
votes
1answer
37 views

How to tell if a certain item is in a player inventory [duplicate]

I am trying to create a challenge world where a certain item (e.g. netherite sword) must be collected. How can I check automatically if a player has it (using commands), and then congratulate the ...
-1
votes
1answer
33 views

minecraft player detection between 2 points [closed]

So I am working on a minigame server and i need to test for ALOT of areas in the world and when players fall into them. I'm trying to use the relitave x~ y~ z~ for this but in this command: execute if ...
-1
votes
0answers
10 views

Can i use items as bullets in crackshot plugin?

I searched out the crackshot plugin configurations and everything and there is an item id option to add as an subtype to the bullet but it doesn´t seem to work, the bullets are snowballs but i wanted ...
1
vote
0answers
29 views

How do you convert a custom-item /give command into a villager trade? (in general) [duplicate]

I know this is similar to many other questions out there, but I just wanted to ask not only how to convert a custom-made item into a villager trade, but also if there is a general way to convert said ...
2
votes
1answer
28 views

Why does my /tellraw throw an “Unterminated string” error?

My server is version 1.16.1 and I'm trying to run the command: /tellraw @a ["",{"text":"Co-op >","color":"aqua"},{"text":" [PIG"...
2
votes
1answer
105 views

Is there a way to reward Items based off scoreboard points?

I am making a server based on PVP and I have set up a scoreboard that displays a players kills. I was wondering if, say for example, a player reached 50 kills could I give them a reward? (e.g diamond ...
2
votes
0answers
15 views

What order are target selector results returned in if the sort parameter is set to “arbitrary”?

Target selectors are used to select certain entities. They accept different arguments to choose which entity to select. Usually, this returns a list of found entities. Using the limit=n parameter ...
1
vote
2answers
39 views

How do I invert the /testfor command's result? (1.12 and below)

/testfor, /testforblock, and /testforblocks are all part of the same group of commands and are similar in what they do after their test. They are only useful when their output is measured using ...
-2
votes
2answers
73 views

How do I get back to the overworld?

I accidentally used /spawnpoint in the end in Creative Mode. Now, I keep respawning in the end, and my end portal won’t send me back to the overworld. What can I do to get back?
0
votes
1answer
20 views

Is there any way to change a non-player entity's data in Minecraft 1.7.10?

I need this rather old version for an experiment which likely doesn't work in newer versions. Unfortunately, the /entitydata command was added in 1.8 (and the /data being even newer. Is there any way ...
0
votes
1answer
35 views

How do I use command blocks to check the scoreboard for one player remaining?

Im trying to make a world where survivors have to live for 5 minutes, or the "Hunter" has to kill all the survivors within 5 minutes. Im using an xp timer for the clock, so all im stumped on ...
1
vote
1answer
44 views

How can I run a command if one or more conditions in /execute are satisfied?

In Minecraft 1.16.1, I’m trying to make a system thats detects when one of several fake players doesnt have a specific score. Here is my first attempt: execute unless score sticks_have page-2 matches ...
1
vote
0answers
25 views

What is causing some custom sounds to not follow the player?

I'm working on an adventure map in Java Minecraft that requires sounds to be played to the player. These sounds should follow the player around such that the origin of the sound is the player ...
-1
votes
1answer
41 views

Can't get item with lore or custom name

I am trying to give myself an item with a custom name as well as some lore. I tried /give <my username> tripwire_hook{display:{Name:"{\"text\":\"Dungeon Key\",\"...
0
votes
1answer
81 views

How can I allow players to view inside of a chest without being able to take out items? [closed]

I am working on a trading system between two players with command blocks, and I want to use a chest as an intermediary. I want players to be able to see the contents of the chest, and hover over items ...
-2
votes
0answers
21 views

worldedit in command blocks

I'm trying to use worldedit in a commandblock to randomly change colored concrete. I've tried using this command: //pos1 81,69,-72 //pos2 -75,64,-72 //set 10%minecraft:red_concrete_powder,10%minecraft:...
-4
votes
1answer
39 views

Command Block Works then Stops Working [closed]

I play Minecraft Java Version 15.1.1 on a good-specs PC. I've been trying to figure out how to use command blocks but I don't know what keeps going wrong. I'm putting the Command Block well and good ...
2
votes
0answers
13 views

How can I execute when a certain player hits something in minecraft

I am aware that you can execute a command when a mob is hit, and utilize that command in my map, but I would need to know the player or team that it was hit by. I am making a tennis map where the ...

1
2 3 4 5
74