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
1
vote
1answer
21 views

this command should to execute if the player stands in this specific location, but it doesn't do anything

If you stand in x=129 - 132, y=121 - 124, z=154 - 155, this command should kill you, but it doesn't do anything. what is wrong with this command? I tried with an "always active" command ...
2
votes
0answers
17 views

/data modify command not working

I have this command: /data modify entity @s Inventory[{Slot:-106b}] set from storage minecraft:datapack Before It's supposed to replace the offhand with the NBT in the storage minecraft:datapack ...
2
votes
1answer
34 views

How can I make an armor slot of a player drop onto the ground?

I'm trying to make it so that when a player runs /function datapack:helmet_drop, the helmet item they are wearing drops onto the floor. How can I achieve this?
0
votes
1answer
19 views

How do I run a summon command based on the amount of HP the main mob has?

I have tried many lines of code, and none of them seem to work. This is the code I use to store the health score: execute as @e[type=zombie,limit=1] at @s store result score @s Health run data get ...
1
vote
1answer
26 views

Can't add a specific number of an item after a command

I'm building a little shop for a map I'm doing and I'm trying to detect if the player has a certain number of gold nuggets on them. It works, but only for 1. I want it to check more than 1 item, I've ...
0
votes
2answers
22 views
+100

Only show region title for players entering/exiting the area in Bedrock edition?

I've added a creative region to my survival world and when players enter/exit that region, I want to display a title and subtitle like so: This is easy enough to do with the title command and a ...
0
votes
0answers
42 views

How necessary is the “Name” tag for player heads after the skin data is already retrieved?

I'm trying to see if I can omit the "Name" tag from a player head after already getting it's "Properties" tag filled out with the skin data and still have the player head skin work ...
1
vote
0answers
16 views

How do I make arrows spin around me facing outward? (minecraft)

I am trying to make arrows behave like spinning knifes (from ETG) but nothing I do seems to work and the arrows don't face where they are facing The commands I tried to use: command that kinda works: ...
1
vote
1answer
18 views

Armor stand does not detect item

I'm making a right-click item ability system with a datapack and I ran into a big problem. The system uses armor stands that teleport to you when you hold an item with an ability. This works fine in ...
1
vote
1answer
15 views

Selector not working in Json formatting [Bug]?

I was recently trying out a few things in 1.17 and thought I'd start with displaying an entitys Pos[] with armorstand names. The problem is that I can't get selector argument to work in JSON format ...
0
votes
1answer
27 views

Minecraft yellow text is showing up with a symbol I can't remove

The symbol I'm having problems with is the one highlighted above in the red circle. My code is the following: §eRIP Jeremiah! §eOverlord of green pricks! §eI'm a grape! §eHiro is top dog! §ePromoted ...
2
votes
1answer
33 views

Lightning arrows in minecraft using execute command

I have been trying to use command block to make custom named arrows that summon lightning at the spot they strike. What I want to do is shoot an arrow named 'vajra', and when it strikes the ground, ...
0
votes
0answers
20 views

why doesnt my bed override my spawn point after i changed the world spawn location?

So, in my server I wanted the players to spawn far away from my base, around 1k blocks away, then i used /setworldspawn and since then the bed doesn't override the spawn point, I keep spawning in a ...
0
votes
1answer
24 views

Activate lever with command block?

I need to use a command block to activate a lever in Bedrock edition. I thought I could use /setblock but the syntax for Bedrock edition doesn't seem to support it: /setblock <position> <...
3
votes
1answer
25 views

Activate redstone lamp with command block?

I've reviewed several articles and other questions (here's one), trying to trace down a way to activate a redstone lamp using a command block. Everything I've found says to use: /setblock x y z ...
0
votes
2answers
38 views

Give a tag to @s if they do not already have the tag and remove the tag if they already have it

I am creating a function pack for the bedrock edition of Minecraft. In one of the commands, I want to give the tag ‘test’ to @s (the player running the command) if they do not already have the tag and ...
3
votes
1answer
74 views

Can I make an item look like it has different enchantments than it actually does?

I want a Riptide X trident, but for secrecy purposes, I want it to only look like it is a Riptide III trident. How can I use Minecraft commands to make an item display different enchantments than it ...
2
votes
0answers
63 views

Command block “Done button” not working [closed]

When I click done it just changes the command block type. Same for when I click cancel it just changes if it's conditional or not Im not quite sure if its from me playing on lunar client edit: ^ That ...
1
vote
1answer
31 views

Testing for Named Enchanted Items [duplicate]

I’m working on a named sword that makes something happen when you hold it. The sword is enchanted, but it seems my code isn’t working. Is there a specific thing I need to add if the sword is enchanted ...
1
vote
1answer
29 views

How do i make an item, that can break certain block, and is named with command blocks in minecraft 1.16? [duplicate]

I am doing an prison escape map and i want to make an crowbar to destroy only iron trapdoors and is named crowbar. How???
0
votes
1answer
16 views

How do I do /execute and filter it by name?

I want to have a command block that has /execute if entity that will only execute on entities with a custom name, but I can’t figure out how to do it.
0
votes
2answers
31 views

Specified effect data

I’m making something that effects a person with the amplifier accordingly to what amount the score is. (So if the score is 5 you get poison 5) Is it possible to contain all of this in one command ...
0
votes
1answer
42 views

Is there any way to make it so you hear a music disc anywhere?

Is there any way I can make it so I can hear a music disc anywhere, without it fading away if I'm far away?
2
votes
1answer
32 views

How do I change the amount of time a player can spend underwater before taking drowning damage?

I want to be able to give the player less air bubbles, or just make them drown a lot faster. How can I do this?
-1
votes
2answers
40 views

How can I make my summoned mobs despawn?

I am working on a project where I must make an ultimate skyblock map in Minecraft. I am using commands to generate mobs like cows and zombies. However, with the current despawn time in Minecraft, they ...
0
votes
1answer
28 views

Upload multiplayer world to my own minecraft server

I have access to a VPS and set up a Minecraft server with this guide. Now, I am trying to move my world from minehut.com to my server. But, I could not find any guides to add world data besides my ...
-3
votes
1answer
54 views

What are all of Minecraft's /give NBT tags? [closed]

I would like to know all possible NBT tags for /give: give @p minecraft:example{NBT}
1
vote
1answer
30 views

Setting individual login points in minecraft (java edition) (Creative mode)

I found that previous answers aren't working. I found that they are for survival. I want to be able to set an initial world spawn, but then be able to change where that spawn is after a player moves ...
0
votes
1answer
42 views

Changing NBT of an item in a container in 1.17

I'm looking to add nbt to an item that's inside a dropper. For example: there's a wooden sword in the middle slot. First you add +10 Damage and +1 Attack speed to it. Then you add Fire Aspect II on it....
0
votes
1answer
71 views

How to use replaceitem in 1.17?

I noticed /replaceitem seems to be gone in 1.17 released version, is this not intended or is there another way to use it now?
0
votes
0answers
36 views

How can I summon an entity where I punch? [closed]

I'd like to spawn an evocation fang wherever I punch but I can't figure out the commands necessary in minecraft bedrock.
1
vote
1answer
40 views

How do i summon an armor stand at a specific block (for example at red wool)

Im trying to get armor stands to spawn at all 6 sides of a specific block, in this case im using red wool.i have managed to do this by executing at named armor stands and detecting red wool block with ...
2
votes
1answer
54 views

What is wrong with this banner-in-chest command?

I've been trying to make this command run, from https://minersneedcoolshoes.com. I used the banner generator, made a bunch of banners, and clicked export to chest. This command is for MC 1.12, which ...
4
votes
1answer
67 views

1.16.4 - How to show the mob's health above his head?

My objective is to create a health bar above the mob's head, and I was thinking about storing the data in a sign, and then setting the mob's CustomName to the sign Text1, but this way I would need a ...
1
vote
0answers
44 views

What happens when I use /ban-ip in a server?

Does it ban the player from every world I'm playing, or is it the specific world?
0
votes
1answer
44 views

How to host multiple minecraft servers on the same IP>=?

i just started a minecraft server for me and one of my friend groups to use, but i'd also like a separate server for my other friends. I downloaded the server file again, made a new folder, did all ...
1
vote
1answer
30 views

How do I /fill blocks in a certain direction in Minecraft 1.16?

So, I'm attempting to create an attack for a boss fight I'm making. The boss can spawn a square of redstone blocks and dispensers which contain arrows. I want the dispensers to face west. So I type ...
3
votes
1answer
42 views

Minecraft health commands, modeling the Vitality series

I recently created a server from www.minefort.com, which is great, but the unfortunate thing is that those servers are unable to use forge mods, in my case, the X-life mod found here. However, I also ...
2
votes
1answer
55 views

Minecraft Random Item Name

Story I am working on a data pack based over forging items and ran upon this problem: The NBT tag of the item's name is a string, and I can't (or don't know how to) generate multiple strings or turn a ...
2
votes
1answer
50 views

How to execute a command when a player is at a specific coordinate? (1.14+)

How do i execute a command whenever a player is at a specific coordinate in 1.14+ Minecraft commands? Im trying to execute a tellraw when they are at a specific coordinate I tried doing this in a ...
0
votes
0answers
18 views

Using commands in a different Minecraft multiverse-core world. (Minecraft Java Edition)

I was wondering if there was a way to use a command in one world that happen in another world. (With multiverse-core) In particular I would like to do a custom plugin command. This will be in a server,...
1
vote
1answer
57 views

What's the ID for lapis lazuli [duplicate]

So I want to summon lapis using a command block in 1.12.2 But I don't know what ID it is. I tried Lapis lazuli and dye4 and dyeblue and bluedye and dye_4 and nothing worked.
1
vote
2answers
69 views

Summon command error

I entered this command into a command block summon minecraft:rabbit ~ ~ ~ and nothing happened I'm on Java edition 1.16.5 with WorldEdit
1
vote
1answer
40 views

How can I use /fill or /setblock to change an entire door without destroying either part of it? (1.16.5)

I'm trying to replace the top half of the door with a trap door and the bottom with another trap door of a different type. The problem though, is that one segment of the door always seems to break, ...
0
votes
1answer
16 views

Is it possible to give other players the ability to use my powertools?

Can I give other players the use of my powertools with the EssentialsX plugin for Bukkit? Not the ability to use the /powertool command, but the usage of my premade powertools. Example: I make a ...
1
vote
1answer
24 views

SelectItem doesn't work but Inventory does

I just found out how item tags work and now I'm trying to check if the player is holding the sword with the tag. When I try to /execute if entity @e[nbt={SelectedItem:[{tag:{awakened:1b}}]}] the test ...
0
votes
0answers
27 views

I'm having problems testing for a selected item given with commands such as unbreakable [duplicate]

I am making spells for an adventure map and SelectedItem doesn't work when the item is summoned with unbreakable it. I have right click detection which is what the spell score is and the mana score is ...
0
votes
1answer
33 views

fix command issues [duplicate]

so i tried to build a station that teleports you away when you come close, but now it repeats teleporting me to a specific place and i cant move from there. I'm also not able to destroy the command ...
0
votes
1answer
33 views

How to track when all team players die (mc 1.16)

I am trying to make my own dodgebolt minigame (from mcc) and I'm struggling with the teams aspect. I know I need to create a scoreboard to track deaths so that when all the players on the team die, it ...
11
votes
4answers
3k views

How do I op a user who has spaces in their username on a Minecraft server?

I have a Minecraft server which allows Bedrock clients, I would like to make one of our players who has a space in their Gamertag an operator. We tried op "user name", however this throws ...

1
2 3 4 5
88