P
Pop Storm Daily

Questions tagged [minecraft-commands]

Author

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

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 ... user avatar Alex Sash
  • 101
1 vote 0 answers 18 views

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 ... user avatar Danny Theis
  • 11
0 votes 0 answers 19 views

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=...] user avatar D4rk_ex3
  • 1
0 votes 1 answer 34 views

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 ..... user avatar Mago 099
  • 1
0 votes 2 answers 35 views

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 ... user avatar patriotails
  • 3
1 vote 1 answer 35 views

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 ... user avatar Aceplante
  • 794
2 votes 0 answers 41 views

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 ... user avatar 2017Knight2017
  • 34
1 vote 0 answers 29 views

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.... user avatar ChristianB
  • 11
1 vote 1 answer 51 views

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 "... user avatar Cole Bennet
  • 13
0 votes 1 answer 30 views

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:... user avatar ShrekTheGod
  • 1
3 votes 0 answers 36 views

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. ... user avatar PythonWarrior
  • 78
0 votes 1 answer 19 views

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. user avatar Cristea Octavian
  • 23
2 votes 1 answer 68 views

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 ... user avatar PythonWarrior
  • 78
0 votes 0 answers 36 views

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 ... user avatar TheDoggyCat
  • 93
-1 votes 1 answer 43 views

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:... user avatar EmailTest
  • 1

15 30 50 per page12345323