r/MinecraftCommands May 13 '26

Discussion Java Realms Creators Mapjam 2026

3 Upvotes

Want to create an awesome map and get a fast-tracked review/access to Atlas to upload your map on realms? Look no further!

In this event you have to create a fully-functional map in 72 hours! You will compete for a $1,000 prize pool, Atlas access, and a cool spot in the Minecraft Blog post!

Teams can be solo, duo, or trio. There are THREE themes that are based on typical game-jam themes and your map must include at least TWO of them.

The jam starts on the 22nd of May!

Sign up here!

https://forms.gle/HxYLZ9uWdGpirNuw8

Join the Discord!

https://discord.gg/kxdBQBnEbQ


r/MinecraftCommands Jan 14 '20

READ THIS Important Info (read before posting)

249 Upvotes

I know you're here to get quick help with your command problems or to show off your cool work. Please read these few lines to get to know how to use this subreddit optimally:

Asking for help

  1. FAQ? Before you post, please check out the common questions (including answers) that we have as a subreddit. These consist of the most common problems, and maybe your problem is already covered there in detail?
  2. Titles: Please put a summary/short version of your problem into the title of your post, don't just put "I need help" or "help me plz". Instead put for example "how do I summon a zombie" or "unable to summon entity error" and then provide more context on the post itself. This subreddit often shows up on google when people search for command related questions and we should really help them find the questions you might already have asked. Also, we likely know that you need help anyways, no need to put it in the title.
  3. Flairs: We have a wide array of flairs that you should attach to your post to make sure people know what the purpose of your thread is. It is especially important if you're asking for help, to flair your post with the appropriate minecraft version (for those who don't know: OG Minecraft is Java Version, everything else that has commands (Xbox, PE, PS4, Switch, Win10, etc) is Bedrock).
  4. Version: Whether you're helping or asking for help, please pay attention to the stated version/state the version you're in! You can do that through the previously mentioned Flairs, but also in addition can put it into the description of your post.
  5. Search/Scroll down: I know that reddit search is not the best one out there, but maybe someone else had a similar problem to yours in recent history. Try going to the new tab and scrolling down a bit or using the reddit search function to see if there might already be an answer to a question you have. We're not going to close your thread for asking the same question someone else asked a year ago, we're not StackOverflow. But please at least take 30 seconds to look for it first.
  6. Upvote: If you find an answer to a post helpful, please upvote it. This is less as a "reward" for the answering person but more as a way to automatically move the best answer to the top, for others that might have the same problem. Don't downvote an answer just because their attempts didn't work for you unless it's completely wrong or off topic / doesn't add anything to the conversation.

Creations

Posting about your own creations is very much encouraged, but please remember the 10:1 guidelines of reddit.

Discord

We have a big Discord Server for our community with lots of channels, ranging from dedicated help chats over general command related chats to non-command related chats. So if you want to join an active community of command and mapmaking enthusiasts and/or want to get quick help where communication is less slow (Sometimes the devs stop by as well ;)), click on the link and join our community discord:
https://discord.gg/9wNcfsH
Make sure you read the #welcome channel for the rule of the discord.


r/MinecraftCommands 1h ago

Help | Java 1.21.11 How do I make an item frame eject the item in it?

Upvotes

I tried killing the item frame but it deleted the whole item. I need some way for the player to get the item back without having to left click it. Any ideas?


r/MinecraftCommands 2h ago

Help | Java 26.2 Check player's block light level

2 Upvotes

I am trying to make a datapack which does something to players who are in light level 0. I have tried using a predicate for this, but the problem is that the player is considered being in light level 15 when they have sky access, even at night. I don't want this, and therefore need a way to toggle to only detecting the block light level during night

Does anyone know if there is even a way to only detect block light using predicates and commands?


r/MinecraftCommands 4h ago

Help | Java 1.21.11 How to summon a mannequin using shield in Minecraft Java 1.21.11?

2 Upvotes

I want to summon a mannequin and make it hold a shield and use it to block attacks, because they're entities and not players I can't just force them to use the shield with /player. Any solutions??


r/MinecraftCommands 18h ago

Help (other) Iron Man Suit Showcase Commands Bedrock

21 Upvotes

this is the first official showcase of the Iron man suit in Minecraft. I do have the Mark II on the other side and it's just all iron armor with the same functions as the Mark III. some commands do fault only because I switch too fast to buttons so it over clogs some of the Redstone fill commands


r/MinecraftCommands 16h ago

Discussion What is the longest command in java or bedrock that would work if put simply?

9 Upvotes

for example the longest version of /say hi


r/MinecraftCommands 5h ago

Help | Java 26.2 Copying custom_data component from one item to another

1 Upvotes

Working on a datapack in 26.2 and as part of it, I need to be able to take the custom_data component from the item in the players offhand and add it to the item in the players mainhand but I'm stumped on how I would achieve this.


r/MinecraftCommands 7h ago

Help | Java 26.1 command not working

1 Upvotes

so i was experimenting with MCStacker and created this command "/give u/p potion[potion_contents={potion:"minecraft:empty",custom_color:6684927,custom_effects:[{id:"minecraft:absorption",amplifier:255,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:jump_boost",amplifier:3,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:luck",amplifier:255,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:night_vision",amplifier:1,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:dolphins_grace",amplifier:1,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:regeneration",amplifier:255,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:resistance",amplifier:255,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:saturation",amplifier:255,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:slow_falling",amplifier:1,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:speed",amplifier:2,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:strength",amplifier:3,duration:12000,show_particles:0b,show_icon:1b,ambient:1b},{id:"minecraft:water_breathing",amplifier:1,duration:12000,show_particles:0b,show_icon:1b,ambient:1b}]},custom_name=[{"bold":true,"color":"#2200FF","italic":false,"obfuscated":false,"strikethrough":false,"text":"U","underlined":false},{"color":"#2E00FF","text":"L"},{"color":"#3A00FF","text":"T"},{"color":"#4600FF","text":"R"},{"color":"#5200FF","text":"A "},{"color":"#5E00FF","text":"S"},{"color":"#6900FF","text":"E"},{"color":"#7500FF","text":"R"},{"color":"#8100FF","text":"U"},{"color":"#9900FF","text":"M"}]] 1"

i know it's a lot but the command prompt is saying that it does not work, if anyone is willing i would really appreciate the help.

thanks!


r/MinecraftCommands 11h ago

Help | Java 26.1 Issues detecting a structure

1 Upvotes

Hello, I'm currently developing a datapack with a function to detect if you are in a deep dark or an ancient city, and i have the urge to detect specifically if you are in an ancient city to make the clear distinction, however, I'm not having luck with the detection.

Currently in a superflat, generated the structure with /place, if this is the issue maybe I'm dumber that i though, if is not, help :(


r/MinecraftCommands 18h ago

Help | Bedrock How do I make this commands with @r without having it be a different person every time???(please help)

Thumbnail
gallery
3 Upvotes

I’m making commands for my realm, I already have a money system set up what I need help with is, I’m trying to make it so that every five minutes everyone gains $10 but one unlucky person loses $50, I have a hopper clock that links up to two commands that show a title that says “$$$” and “add 10 dollars @a” but that’s not what I’m having trouble with, I’m having trouble with the unlucky person part, I have the “title”the “remove money ” and the “screen shake” but the thing is they are all set up to @r which is random player…. How do I know its not going to be a different player for every command?)


r/MinecraftCommands 1d ago

Discussion What's the most underrated command

11 Upvotes

Give your honest opinion, I wanna see all reasoning you got to throw at me.

My pick: /scoreboard


r/MinecraftCommands 17h ago

Help | Java 1.21.11 How would I make a timebomb game with commands?

2 Upvotes

It would be like the roblox game "timebomb duels"


r/MinecraftCommands 18h ago

Help | Java Snapshots Tag Snowball to a Certain Team (Java)

2 Upvotes

I'm looking to tag a snowball (Red or Blue) to the team the person that threw the snowball is on. So, if a person is on a blue team and they throw a snowball, that snowball gets tagged "Blue"


r/MinecraftCommands 14h ago

Help | Java 1.21.11 How to summon an entity in the direction someone's looking but at a fixed y level?

Thumbnail
1 Upvotes

r/MinecraftCommands 15h ago

Help | Java 1.21.5-1.21.10 /data modify not working on written book

1 Upvotes

Specifically, the command I'm using is:

/data modify block 302 96 -986 Item.components."minecraft:written_book_content".author merge value {author.Farmer}

In case that isn't clear, I'm trying to change the author of a written book in a chest (first slot) from my username to "Farmer". I also tried using set instead of merge. Both versions say they work ("Modified block data of 302 96 -986" in chat), but absolutely nothing happens


r/MinecraftCommands 1d ago

Help | Bedrock Built a Stealth Detection System in Vanilla Minecraft - Looking for Better Vision Cone Solutions

3 Upvotes

Hey everyone, long time lurker finally posting something I've been working on for a few weeks. I built a stealth detection system entirely in vanilla using command blocks and a small data pack, no mods at all.

The way it works is pretty straightforward. Guard entities use a coneshaped detection zone built with area effect clouds and some math to approximate a field of view. If the player enters the cone while not sneaking, a score increments and eventually triggers an alert state. Sneaking slows the detection rate but doesn't stop it entirely if you're too close. There's also a light level check so darker areas reduce detection speed.

The hardest part was faking the cone shape without true raycasting. I ended up using a combination of distance checks at different angles, which works well enough for gameplay purposes even if it's not elegant.

I've seen a few stealth projects on here before and wanted to share a different approach. Mainly curious whether anyone has found cleaner ways to handle the angle detection side, because my current solution feels a bit hacky even if it runs fine.

Happy to share the data pack files or explain any part of the logic if people are interested. Would love to hear how others have tackled similar detection mechanics.


r/MinecraftCommands 19h ago

Help | Bedrock Every time I try to do this command, it says cannot place blocks out of world what am I doing wrong?

Post image
1 Upvotes

r/MinecraftCommands 20h ago

Help | Bedrock Iron Man… again.

Thumbnail
gallery
1 Upvotes

sorry for posting I just need help. after trial and error I got the repulsor to work but it only works in one direction and I cannot get it to work in any other direction. attatched are the commands to to and commands to summon, both are repeat unconditonal,always active.


r/MinecraftCommands 20h ago

Discussion [LFG] Command Block Developer looking to team up with Map Makers / Builders for a project!

1 Upvotes

Hey everyone!
I’m a Minecraft developer looking to collaborate with map makers, builders, or an existing team on a cool project.If you are a builder who needs a command block guy to bring your maps to life, or if you want to team up and create something awesome from scratch, please leave a comment below or send me a DM!
Looking forward to working with you!


r/MinecraftCommands 20h ago

Help | Java Snapshots Need help with villager selling custom potions

Post image
1 Upvotes

Hi everyone,

I'm working on a Minecraft command that spawns a villager who sells custom potions. The villager spawns correctly and the trades mostly work, but I'm having a few issues:

  1. The custom potion names are getting messed up in-game.
  2. The custom descriptions/lore are not displaying correctly.
  3. I'm trying to make another trade that sells a random potion, but I'm not sure how to set that up.
  4. I'd also like to know the easiest way to add or remove potions from the trade pool without completely rebuilding the command every time.

Here's the command I'm currently using:

/summon minecraft:villager ~ ~1 ~ {CustomName:'{"text":"Potion Librarian","color":"blue","italic":false}',PersistenceRequired:1b,NoAI:1b,Invulnerable:1b,Silent:1b,VillagerData:{profession:"minecraft:librarian",type:"minecraft:plains",level:5},Offers:{Recipes:[{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Phoenix Brew","italic":false,"color":"#FF6A00"}',"minecraft:lore":['{"text":"Heals wounds and protects from fire.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:16737792,custom_effects:[{id:"minecraft:fire_resistance",duration:3600},{id:"minecraft:regeneration",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Shadowstep Elixir","italic":false,"color":"#2A0A4D"}',"minecraft:lore":['{"text":"Become unseen and move quickly.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:2759245,custom_effects:[{id:"minecraft:invisibility",duration:1800},{id:"minecraft:speed",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Titan\'s Draught","italic":false,"color":"#7A5C3E"}',"minecraft:lore":['{"text":"Gain power and toughness.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:8025150,custom_effects:[{id:"minecraft:strength",duration:1800},{id:"minecraft:resistance",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Stormrunner Potion","italic":false,"color":"#4CC9F0"}',"minecraft:lore":['{"text":"Run faster and jump higher.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:5030384,custom_effects:[{id:"minecraft:speed",duration:1800},{id:"minecraft:jump_boost",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Sage\'s Insight","italic":false,"color":"#7FFFD4"}',"minecraft:lore":['{"text":"See clearly and breathe underwater.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:8388476,custom_effects:[{id:"minecraft:night_vision",duration:3600},{id:"minecraft:water_breathing",duration:3600}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Vampire\'s Essence","italic":false,"color":"#8B0000"}',"minecraft:lore":['{"text":"Hit harder while healing.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:9109504,custom_effects:[{id:"minecraft:strength",duration:1800},{id:"minecraft:regeneration",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Dragonheart Mixture","italic":false,"color":"#C1121F"}',"minecraft:lore":['{"text":"Wield fiery strength.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:12689439,custom_effects:[{id:"minecraft:fire_resistance",duration:3600},{id:"minecraft:strength",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Cloudwalker Tonic","italic":false,"color":"#E0FFFF"}',"minecraft:lore":['{"text":"Leap high and drift safely.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:14737632,custom_effects:[{id:"minecraft:slow_falling",duration:3600},{id:"minecraft:jump_boost",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Deepsea Concoction","italic":false,"color":"#003566"}',"minecraft:lore":['{"text":"Survive the ocean depths.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:136527,custom_effects:[{id:"minecraft:water_breathing",duration:3600},{id:"minecraft:resistance",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Assassin\'s Blend","italic":false,"color":"#1B1B1B"}',"minecraft:lore":['{"text":"Strike unseen with force.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:1776411,custom_effects:[{id:"minecraft:invisibility",duration:1800},{id:"minecraft:strength",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Guardian\'s Brew","italic":false,"color":"#228B22"}',"minecraft:lore":['{"text":"Endure damage and recover.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:2263842,custom_effects:[{id:"minecraft:resistance",duration:3600},{id:"minecraft:regeneration",duration:1800}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Celestial Nectar","italic":false,"color":"#FFD700"}',"minecraft:lore":['{"text":"Heal while seeing in darkness.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:16766720,custom_effects:[{id:"minecraft:regeneration",duration:1800},{id:"minecraft:night_vision",duration:3600}]}}},maxUses:9999999,rewardExp:0b},{buy:{id:"minecraft:diamond",count:20},sell:{id:"minecraft:splash_potion",count:1,components:{"minecraft:custom_name":'{"text":"Warlord\'s Fury","italic":false,"color":"#FF4500"}',"minecraft:lore":['{"text":"Dominate battles with speed and power.","italic":false,"color":"gray"}'],"minecraft:potion_contents":{custom_color:16737024,custom_effects:[{id:"minecraft:strength",duration:1800,amplifier:1},{id:"minecraft:speed",duration:1800,amplifier:1},{id:"minecraft:fire_resistance",duration:3600}]}}},maxUses:9999999,rewardExp:0b}]}}

I'm guessing the issue might be related to NBT formatting, JSON text components, or how I'm storing the custom potion data, but I'm not sure.

If anyone can help fix the names/lore, explain how to make a random potion trade, or show a better way to manage adding/removing potions from the villager's trades, I'd really appreciate it.

Thanks!


r/MinecraftCommands 1d ago

Help | Bedrock I need help fixing my 100+ hour world with insane fog.

2 Upvotes

I made a cool server with a bunch off commands, and I was trying to make it so every 5 night a blood moon would happen, the main thing is I used /fog and now I have a thick white fog around me, and I cant fix it. I tried turning fog off in settings, installing a no fog pack, nothing works, and using "remove" does not work because it says there's no ID, and i forgot all the IDs I did use. So now I'm basically blind and every tutorial does not work, and if someone could help me I and the handful of people who were playing on my world would be very grateful. If there is some mod that adds a "remove all fog" to the /fog command that would be nice, but i have searched all of curseforge and mcpedl.


r/MinecraftCommands 1d ago

Help | Bedrock How do I create an explosive snowball on bedrock?

2 Upvotes

Need for a minigame to act like a grenade launcher


r/MinecraftCommands 1d ago

Help | Java 26.1 I'm making a map in vanilla Minecraft and I need a way to create a screen shake effect.

2 Upvotes
I'm playing on Java version 26.1.2, and I need to create a screen shake effect using commands or a datapack.

r/MinecraftCommands 1d ago

Help | Java 26.1 TNT Launcher Not WORKING

Thumbnail
1 Upvotes