r/MinecraftCommands • • 7h ago

Help | Java 26.3 Cooldown

3 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 • • 14h ago

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

3 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 • • 14h ago

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

Thumbnail reddit.com
1 Upvotes

r/MinecraftCommands • • 23h ago

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

4 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 • • 1d ago

Creation Minecart hampter wheel

72 Upvotes

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


r/MinecraftCommands • • 1d 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 • • 1d 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 • • 2d 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 • • 2d 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 • • 2d 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 • • 2d 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 • • 3d 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)

11 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 • • 3d 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 • • 3d 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 • • 3d 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?


r/MinecraftCommands • • 3d ago

Help | Java Snapshots How do i work this scoreboard?

Thumbnail reddit.com
1 Upvotes

r/MinecraftCommands • • 3d ago

Help | Java 26.3 Is there a command to make ender pearls not collide with blocks but still collide with entities??

1 Upvotes

Cuz i'm trying to make a Custom PvP Practice map for vanilla worlds and i'm not that good with commands


r/MinecraftCommands • • 4d ago

Help | Bedrock Is there a way to activate a command after a certain amount of mobs in a certain area have been killed?

Thumbnail
gallery
12 Upvotes

Again, for my ULTRAKILL map. I could of course leave this out, but I REALLY want to include how ULTRAKILL has rooms that spawn enemies and then lock the doors, and you have to kill all the enemies in the room to unlock the door. It's cool, makes sure players actually engage in combat, and also prevents numerous bugs, like enemies walking through doors when they shouldn't.

Just a simple command to load a certain structure and undo it by placing the previous structure will do. I've been using tripwire hooks to open doors so far, so I'll delete those and also change the way the door looks so show that it's locked. I'm just gonna place red concrete where lights normally are on the door, to simulate ULTRAKILL's skull lock that shows up when this event happens. (Various examples of this have been provided, including the actual skull lock texture itself.)

I was thinking of using scoreboards, but idk how to use those, and I'm not even sure if you CAN on Bedrock edition.

But if that's what I have to do, please provide instructions so I actually know what I'm doing.


r/MinecraftCommands • • 4d ago

Help | Java 26.3 mannequin mirror help

1 Upvotes

Is there a way to create a functional mirror in Minecraft using a mannequin and command blocks—so that when I approach it, it approaches me, and when I step away, it moves away too, just like a real mirror?


r/MinecraftCommands • • 4d ago

Help | Java 1.21-1.21.3 Issue With Datapacks Using "minecraft" Namespace in 1.21.1

0 Upvotes

Basically what it says in the title. I'm trying to make a datapack for a 1.21.1 NeoForge modpack and was having issues with Minecraft not recognizing it when I loaded into the game (i.e. it didn't show up when I did /datapack list). Because of that, I created an empty datapack and attempted to load it into a vanilla 1.21.1 world. So far so good. Then I added a custom namespace and recipe (glass bottle crafted with panes instead of blocks). Still loads, and the recipe works. I rename the custom namespace to "minecraft". It stops working.

The filename *should be* correct ("glass_bottle.json") as I got the name of the recipe by using /recipe. Nowhere on the internet has been helpful. I've tried comparing with datapacks I've found on the internet, but they only confirm the feeling that something very strange is happening. I've double, nay triple checked the folder structure, and I know it isn't a problem with the "pack.mcmeta" file because I haven't changed it since it worked.

The filepath of the recipe is ~mydatapack/data/minecraft/recipe/glass_bottle.json
The only other file anywhere in the mydatapack folder is the "pack.mcmeta" file in the root directory.

Any directions to go or ideas would be greatly appreciated as I've been up for the past two and a half hours trying to solve this, and I'm going to go to bed now since it's 1:30AM where I am.


r/MinecraftCommands • • 4d ago

Help | Bedrock Is there any good bedrock command like tutorial playlists?

3 Upvotes

I'm new to this thing, but I'm really interested in it. I really want to know how it works. I understand some things on their own but I get confused when /execute enters the equation. It ruins everything for me and it makes 0 sense to me

And it turns out I know way less then I thought I did

I would like to find a whole guide to command blocks from scratch or a complete guide to /execute is even better.

I mean right now I just used a command I found on Tiktok but I didn't understand how it worked

I fiddled around a bit with it and I understood only few parts of it

There were still so many things of it I didn't understand and I'm amazed how people can just make commands however they want on the spot

😭✌️

I want to be good at this too


r/MinecraftCommands • • 4d ago

Help | Bedrock How do you make the teleport chat prompt go away?

5 Upvotes

This is, again, help for my ULTRAKILL map. I always turn off command outputs, because it's really annoying and breaks immersion. I did that {/gamerule commandblockoutput false} And it's working, obviously.

But for some weird reason, it's not disabling outputs for teleporting. You know, the chat logs that say "you have been teleported to [X] [Y] [Z]" ? well it's not disabling that, which is really weird since I remember command disabling that. Maybe it was changed in a recent update, but I don't understand why Mojang would do that. It's pointless, really.

I'm hoping there's a different way to turn it off that people know of.


r/MinecraftCommands • • 4d ago

Help | Bedrock /clone - halp please 🫶

3 Upvotes

Trying to clone a snowy village that is 4000 blocks away and keep getting “cannot access blocks outside of world”. I’ve tried every trick I saw in my research: 1) tried on the command menu and 2) using a command block, 3) tried joining as player two and placed one at the clone coordinates and destination coordinates, 4) I also tried making the snowy village a /tickingarea. No luck, same message each time. 😭 I’ve been playing on this world for years and I’ve been updating it so technically it’s a copy of the original but has anyone successfully done this?

My goal is to bring cool structures and pieces of faraway biomes to my main building area. Yesterday I discovered the clone command and figured out how to use it on small things nearby for practice. Before that I was just locating biomes and structures, changing to survival to mine/identify blocks in the area, taking a mental snapshot, and then rebuilding them manually around my home base.


r/MinecraftCommands • • 4d ago

Discussion maybe it's just me, but i think we need a command that places an block based on an item stack

0 Upvotes

To elaborate, I'm working on a datapack that allows the creation of a so-called "farmer block", the farmer block being able to place and break blocks of which are plantables.

I strive to allow support for mods out of the box, and in general like the datapack to be able to dynamically accept new types of items/blocks when/if they come out.

So, what I'd suggest, if I had the ability to, is a subset in the /place command, that allows for placing of an item as if a player had placed it. It'd also just make sense, as there seems to be a new feature with the dispenser relating to this.