Questions tagged [minecraft-commands]
Olivia Norman
Published Jul 17, 2026
Ask Question
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", "minecraft-bedrock-edition", or "minecraft-education-edition" tag.
4,842 questions- Bountied 0
- Unanswered
- Frequent
- Score
- Unanswered (my tags)
How to detect if an item is dropped near an armor stand?
I'm trying to make a sort of shrine system where a player can drop a set number of items, say five gold ingots near a shrine, which is a block with an armor stand inside of it, and be given a ... minecraft-java-edition minecraft-commands minecraft-data-packs- 101
How to print the name of the block under me in Minecraft?
If wanted to make a data pack that takes the block under me and then says: "The block under me is [block]". How would I do that? If this was like a mix between Java and Minecraft then it ... minecraft-java-edition minecraft-commands minecraft-data-packs- 11
How execute something at the variation of a scoreboard -Minecraft [closed]
I was wondering how to execute something at the variation of a scoreboard like execute if entity @e[scores=...] minecraft-java-edition minecraft-commands- 1
How can I reach a lore text?
I've been trying to get the text from the lore of the item in the main hand and store it as a score value: execute as @p store result score @s kC run data get entity @s SelectedItem.tag.display.Lore ..... minecraft-java-edition minecraft-commands- 1
How to spawn items from command blocks with special names?
I've tried so many things to get this to work so: I'm trying to make this Minecraft map where one of the objectives is to collect a bunch of a renamed item, specifically raw gold, I want to rename ... minecraft-java-edition minecraft-commands- 3
Summon/data merge villager with Explorer Map trade
As the title states, I would like to add an explorer map to a summon villager command but nothing seems to be working. More specifically, I would like to append that trade to an existing villager. Is ... minecraft-java-edition minecraft-commands minecraft-data-packs- 794
How to calculate the area of a region of any shape (Minecraft Java Edition 1.18)
There is an armorstand on one of the red regions. How to count blocks that are including to the region the armorstand stands on? The result has to be stored to a scoreboard. Red regions can have any ... minecraft-java-edition minecraft-commands- 34
How to use Minecraft bedrock command block output as a variable?
I am very familiar with Minecraft bedrock's command code, and I've used it for a long time. Although, I can't seem to figure out how to store the output from a command block into some kind of variable.... minecraft-commands minecraft-bedrock-edition- 11
Command block says "get off the grass" if a player is on grass next to it
I want to make it so when any player comes onto the grass block the command block tells them to get off I think my problem is a misunderstanding of how the syntax works and how command blocks "... minecraft-java-edition minecraft-commands- 13
How to make an armor that gives you potion effects?
I'm confused about the tag part of the command, I don't know what tag my item has. The item has been renamed. This is the command I'm using: execute as @a if entity @s [nbt={Inventory:[{Slot:102b,id:... minecraft-java-edition minecraft-commands- 1
Is it possible to locate the position of a specific block in Minecraft Java
I am building a datapack and I want to replace how diamonds and emeralds function by modifying their generation behavior. But I don't know if this is A : possible and B : worth my time looking in to. ... minecraft-java-edition minecraft-commands- 78
How to summon lightning bolt at normal (and not charged) creepers only?
I currently have this command: execute at @e[type=minecraft:creeper] run summon minecraft:lightning_bolt; but I have no idea where I should put the "{}" to check for the NBTs. minecraft-java-edition minecraft-commands- 23
Is it possible to create a custom ore and add it to world generation with a Datapack?
As the title suggests, I am wanting to add custom ores to the game (I.E. new gemstones like ruby, sapphire, topaz, etc), but I have no clue how to control world generation to add such a thing. I tried ... minecraft-java-edition minecraft-commands minecraft-data-packs- 78
Is there a way to keep playing sound at zombie's location?
How do I make it so a sound will play only once and won't repeat when a player gets 10 blocks near a zombie? But I want the sound to play AT The location of the zombie, so it will be like 3D sound. I ... minecraft-java-edition minecraft-commands- 93
What's wrong with my Minecraft command? [1.18+] [duplicate]
This is my Minecraft command and I want to give the deity sword a name but my command doesn't work. Can you fix it? /give @p netherite_sword{Enchantments:[{id:sharpness,lvl:5},{id:knockback,lvl:2},{id:... minecraft-java-edition minecraft-commands- 1
15 30 50 per page12345…323 Next