r/MinecraftCommands • • May 13 '26

Discussion Java Realms Creators Mapjam 2026

5 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)

252 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 • • 7h ago

Creation Running RV32 Linux (+busybox) in vanilla Minecraft using only a datapack.

Thumbnail
gallery
24 Upvotes

An RV32IMA emulator implemented in Minecraft functions, capable of booting a real Linux kernel and BusyBox in about 30 minutes.

The CPU emulation runs entirely inside local vanilla Minecraft 26.3 server, with an external RCON client for terminal I/O. (optional)

The project was developed with the assistance of OpenAI Codex.

Source code: https://github.com/chibibaku/mc-rv32-linux


r/MinecraftCommands • • 6h ago

Help | Java 26.3 Silk touch spawners + loot tables

3 Upvotes

Can anyone explain to me in small words why using match_tool in a loot table doesn't seem to work on spawners?

I'm trying to make a (theoretically, though probably not actually) simple java datapack for 26.3 that lets you break spawners to get mob loot. But I am also extremely beginner level with datapacks, so when my first try didn't work I just tried copying over the loot table for stone to spawners to edit that, and that worked fine - except that it always dropped stone whether I used a silk touch tool or not.

I tried swapping in the melon loot table instead of stone, and it did the same thing - whole melons every time I broke a spawner. The enchants work fine on stone and melon blocks with the exact same loot tables! And if I took out the match_tool conditions, everything worked as expected with the spawner, too, it's just once it tried to check for silk touch on a spawner it acted like every pick was silk touch.

I assumed this was just me not knowing what the heck I was doing but I did some poking around on Reddit and Modrinth, and it looks like everybody else's "use silk touch on spawners" datapacks are broken this way too, unless they do something fancy with functions instead of just using the loot table. But I didn't see anyone explaining why.

So - is there something special about how some blocks' loot tables use conditions? Or is it just a bug with spawners? Is it something I will need to worry about if I want to use other conditions/predicates on spawner loot that work on other blocks? Am I just useless? pls help.


r/MinecraftCommands • • 14h ago

Help | Bedrock Please help me with spawn protection zones. (Need multiple that put you from adventure to survival)

2 Upvotes

I ran this command that was working for the time being until further tests. I did a radius command that would put you in adventure mode until you left the area putting you into survival for a PvP realm I’m doing. I placed multiple of these commands around and it wasn’t until I played with friends I encountered problems. When they go to another area with another command block that makes a designated protected area with adventure mode it would affect players that should be in survival and vice versa. I really need to make this work I’m on limited time and I’ve tried so many different commands. Ai is completely useless and I don’t know where to turn to. I just need commands that actually work and someone experienced who can help me make multiple adventure mode areas that have a surrounding area that puts you into survival and when you return to that zone you go back to adventure mode. all of these commands must work and cannot affect other players based on if you’re in a certain area. Any help whatsoever would be amazing I’m doing a realm


r/MinecraftCommands • • 18h ago

Help | Java 1.21-1.21.3 I need some help

2 Upvotes

If you are a datapack maker you should use Visual studio code, and usually using the extension Spyglass MC, the thing is that I lost the a file that I can't recover, it is in "C:\Users\<YourName>\AppData\Local\spyglassmc-nodejs\Cache" folder

You know any way to download it again? I haven't code completion since that file disappeared

Btw I can't use the command to reload the cache of the extension, I don't know why, thanks in advance


r/MinecraftCommands • • 1d ago

Tutorial | Bedrock Armor points without armor

5 Upvotes

Not sure if anyone knew this but I know personally that I've been looking for a way to have armor points without any armor unfortunately bedrock has no /attribute BUT I'VE FOUND A WAY USING/replaceitem

Basically its

/replaceitem entity @s slot.armor.body [armor]

the armor can be any horse armor or Nautilus armor which are invisible

Also works with dog armor but its visible so 🤷‍♂️


r/MinecraftCommands • • 1d ago

Help | Java 1.21.5-1.21.10 I NEED HELP!!!

0 Upvotes

im trying to find someone (with essentials mod) who can join my world and help me with some commands! version java, 1.21.1


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Cooldown

5 Upvotes

Heyo! Anyone know how to put a cooldown on a spear when you left click with it? I tried the command below while in survival but it didnt give a cooldown :T

/give @.a iron_spear[enchantments={lunge:2},use_cooldown={seconds:10}]


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Can you summon an icon from a menu using a text display?

4 Upvotes

I remember seeing that you could spawn an entity that is an icon from a menu (for example the bugs icon or accessibility icon) using a text display but the more I look for it the more I feel that I've made it up as I can't find anything.


r/MinecraftCommands • • 2d ago

Help | Java 1.20 is there a way to clear only 1 item from someone

7 Upvotes

so me and my buddy are playin modded 1.20.1 minecraft and at the start we were confused on how to get a mandetory item so i gave it to him and now we know how to get it and he wont throw it away and get it legit i would i remove only that item from him


r/MinecraftCommands • • 2d ago

Help | Bedrock How to make flying more accessible in creative?

Thumbnail reddit.com
1 Upvotes

r/MinecraftCommands • • 3d ago

Creation Minecart hampter wheel

86 Upvotes

I saw this somewhere online and thought it was funny so I made it (I was really bored).


r/MinecraftCommands • • 2d ago

Help | Bedrock Preview Mogon Wars

2 Upvotes

Looking for some testers for our Minecraft RTS map!

Hey everyone! I've been working on a Minecraft map called Mogon Wars with my kids, and we've had a lot of fun making it!

It's basically a mix of Minecraft, classic RTS games like, and a bit of RPG. Two armies fight between castles, and you can upgrade your troops, explore dungeons, fight bosses, or just jump into the battle yourself. It works in both PvP and co-op.

We're still tweaking things, and we'd love to have some people jump in, try it out, and tell us what they think!

Server: proxywars.eu:55555
Tablets / Bedrock: proxywars.eu (Port: 19132)

Thanks, and hope you have fun with it!


r/MinecraftCommands • • 2d ago

Help | Java 1.21.11 Loot Table not working

2 Upvotes
{
  "type": "vault",
  "pools": [
    {
      "rolls": 2,
      "entries": [
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:crossbow",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:enchantments": {
                  "multishot": 1,
                  "piercing": 4
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:tipped_arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 8
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:potion_contents": {
                  "potion": "minecraft:infested"
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:tipped_arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 8
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:potion_contents": {
                  "potion": "minecraft:weakness"
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:spectral_arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 32
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:enchanted_golden_apple",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:golden_spear",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:enchantments": {
                  "lunge": 3
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:golden_carrot",
          "functions": [
            {
              "function": "set_count",
              "count": 8
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:trident",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:enchantments": {
                  "loyalty": 3
                }
              }
            },
            {
              "function": "set_damage",
              "damage": 150
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:totem_of_undying",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:cobweb",
          "functions": [
            {
              "function": "set_count",
              "count": 8
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:wind_charge",
          "functions": [
            {
              "function": "set_count",
              "count": 16
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:water_bucket",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:ender_pearl",
          "functions": [
            {
              "function": "set_count",
              "count": 2
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:goat_horn",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:instrument": "minecraft:dream_goat_horn"
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:blaze_rod",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:enchantments": {
                  "fire_aspect": 2
                }
              }
            }
          ]
        }
      ]
    }
  ]
}

r/MinecraftCommands • • 3d ago

Discussion Feedback to replace USE_ITEM in the scoreboard

3 Upvotes

Hello! I really like using commands to add new features in, but unfortunately, the USE_ITEM statistic type just isn't useful in a lot of applications.

Due to it being used for placing, attacking with, mining with, consuming, and using (as in tilling farmland, reading a book, throwing, etc.), items that can trigger multiple of these events (like tools, glow berries, or custom items) are harder to detect reliably.

If you agree that it would be super useful to split these up, please consider upvoting the feedback I left on minecraft.net! If you have any questions, I would also be happy to speak on it more.

Here's the link to my suggestion on feedback.minecraft.net


r/MinecraftCommands • • 4d ago

Help | Java 26.2 Temporary Display On Player Based On Tag

2 Upvotes

I want to make a system such that any player with a tag called webbed will have a item display of a cobweb obscure their head, and it goes way when the player no longer has the webbed tag. How can I do this with datapacks?

Sorry if this question seems dumb, I am new to commands as a whole. :/


r/MinecraftCommands • • 4d ago

Help | Java 26.3 How do I break an item frame using a command block?

2 Upvotes

Hi there! I'm currently using Java 26.3 and trying to create a detection system where if the player steps on the item frame it dissapears. I've tried /kill @e[type=minecraft:item_frame,dx=13, dy=-60, dz=-1,distance=..0.5,limit=1] but I have no clue why is it not working... It should be simple right?? 🥲


r/MinecraftCommands • • 4d ago

Help | Java 26.3 I need that pvp is only active at nights on my minecraft Server

2 Upvotes

I need some command blocks that only activate pvp at night, and i need that the command blocks are always active regardless of the chunk, the server is in the latest version at the moment 26.3 and its Java-Bedrock, pls help me


r/MinecraftCommands • • 4d ago

Help | Bedrock Structure block within a structure loading the same thing even with integrity and a random seed

1 Upvotes

Hello there! I've been trying to make a sort of randomized obstacle course, and one of the first things I want to put in there is a fire pit where you have to race around randomly placed fire blocks.

For some background information, the obstacle course takes place in houses that are NOT random.
The firepit is a structure of its own that is just a row of fire blocks. The house structure has a structure block within it that loads the firepit with integrity of 25, and I left the seed in the firepit structure as blank so it is randomized.

I wanted to test what would happen if I loaded the parent structure (the house) as it will happen when my obstacle course mini-game is finished, so I put an observer next to the firepit's structure block to activate it when the house is loaded. Every time I load the house, the layout of fire blocks is the exact same thing.

Please help me so that I can make the fire actually random.


r/MinecraftCommands • • 5d ago

Creation I made an economy system for singleplayer Minecraft: summon a chest shop anywhere and earn coins by playing (pure data pack, no mods)

12 Upvotes

Update: two fixes are out.

- 1.0.1: the "Sell my backpack" preview now updates live when you move items in or out of your inventory.

- 1.0.2: the pack now works on Realms (worlds with it wouldn't load there). Thanks to the person who reported it on GitHub!


r/MinecraftCommands • • 4d ago

Help | Java 1.20 Scoreboard & Execute Command - Score Tracker that announces each value within a range, then runs a command when at maximum.

0 Upvotes

I'm creating my first Find The Button map, and was hoping to get some insight of how to create a execute command block to do the following:

  1. Display the progress as a title per button pushed; pulling from a scoreboard (1/16, 2/16, etc.)
  2. Once it gets to it's maximum value, perform a score reset (this I'm familiar with).
  3. Then trigger an outside command block to trigger it's command.

Ideally I'd also like to do this with a little command blocks as possible (the true ideal is 1 command block, but I know it's more complex than that).

I am really struggling more with how to parse out the Logic needed to create these command block execute strings, I'm hoping to use the same system for multiple levels as well.


r/MinecraftCommands • • 5d ago

Help | Java 26.3 Problems with Inventory NBT

4 Upvotes

Having an issue detecting a crossbow in a player inventory thats loaded with an arrow.

From what i can tell it has something to do with the arrow loaded in the crossbow. I tried to use MCstacker and this still doesn't work.

/execute if entity @a[nbt={Inventory:[{id:"minecraft:crossbow",components:{"minecraft:charged_projectiles":[{id:"minecraft:arrow",count:1,components:{"minecraft:intangible_projectile":{}}}]}}]}]

r/MinecraftCommands • • 5d ago

Help | Java 1.21.5-1.21.10 help making a food item that lets you increase 1 health bar each time you eat it [1.21.10]

Post image
7 Upvotes

im trying to make a datapack about the player playing as bloodthirsty/cannibal vampire and ive been trying to find a tutorial on how to make a custom food NBT to increase your health bar each time you eat it (max 40 since the base health is 20) but cant find the version i want. is it possible to make one on this version?