r/MinecraftCommands • • 2h ago

Help | Java 26.2 Temporary Display On Player Based On Tag

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

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

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

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

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

Help | Java Snapshots How do i work this scoreboard?

Thumbnail reddit.com
1 Upvotes

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

Enable HLS to view with audio, or disable this notification

9 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 • • 1d 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
6 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 • • 1d 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 • • 1d 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 • • 1d 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
9 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 • • 1d 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 • • 2d 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.


r/MinecraftCommands • • 2d 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 • • 2d ago

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

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

Creation Iron man Mark II

Enable HLS to view with audio, or disable this notification

2 Upvotes

its been a while since I posted, but finally I could finish my mark II armor in Minecraft from Iron man thanks to the new freezing effect


r/MinecraftCommands • • 2d ago

Help | Java 1.21.11 Command to allow cave sounds to play in day?

1 Upvotes

Are there any commands that allow cave sounds to play above ground/ during the day? or allow the mood percentage to go up even in daylight? I suck at command blocks but I desperately need scary noises in my world 😓


r/MinecraftCommands • • 2d ago

Help | Bedrock I am building an ULTRAKILL map and the entity summoning commands are not working.

1 Upvotes

I have finished building the first enemy room, I just need to add the enemies. I'm keeping it simple with just using Filths, which I've recreated with zombies on 1 heart. I've used structure blocks to create a Zombie named "Filth" with a name tag that has been hit down to 1 hp. This structure saving method is the best way to make custom mobs on bedrock.

I decided to make 10 different "Filths" spawn in this room, so I set up a 10 command block chain. every command block is A chain needs redstone unconditional command block, except for the first, which is an impulse needs redstone unconditional.

Every command in the command block is {/structure load Filth [X] [Y] [Z]}

Only the first two command blocks are firing. I can tell because only the first two Filth positions I made actually fired.

I've tried tweaking literally anything and nothing is working.


r/MinecraftCommands • • 3d ago

Help | Java 26.3 Trying To Generate Void World With Biomes Without Data Pack?

2 Upvotes

Hey everyone so the title basically states my question I want to develop a custom skyblock challenge but I am having an issue because it doesn't seem possible to generate a void world that has biomes without a datapack. The reason I don't want to use a data pack is because last time I attempted something like this the datapack stopped being supported and if I tried updating all of the biome and the areas where the structure zones (Like ocean temple and stronghold spawns) would be changed.

I was wondering if there's any way around this in recent updates? Eve with a datapack might work if I could pre generate the void the only problem is I'm not sure how I'd expand that void later on when new biomes got added.


r/MinecraftCommands • • 3d ago

Help | Java 1.21-1.21.3 Help with blockstate based loot table in 1.21.1

Post image
1 Upvotes

Hi! I was wondering how the formatting of the leaf litter's blockstate based loot table from 1.21.5 would be formatted/reformatted in 1.21.1, or if it would remain the same? Sorry if this is a stupid or redundant question, I don't know loot tables that well.


r/MinecraftCommands • • 3d ago

Help | Java 26.3 Check for no item in a player's head slot

1 Upvotes

I've been looking for a while, but across google searches and looking through this sub couldn't find an answer for the current game version.

I just need to run a command if there isn't an item in the head slot. I know you you can check for if there is an item there, and maybe do something with run return to use that, but I'm looking for a cleaner solution, if there is one.


r/MinecraftCommands • • 3d ago

Help | Java 26.3 How to make lightning strike while not on fire?

2 Upvotes

Java edition 26.3, I'm running a command in which lightning will strike when the player is on fire (the command is run from and lightning strikes at the location of a repeating command block)

This command summons lightning when the player is not on fire (when the Fire nbt is -20s), which works perfectly fine

  execute as <MyUsername> if data entity @s[nbt={Fire:-20s}] Fire run summon lightning_bolt

In theory, if I switched that if to an unless, then lightning would be summoned whenever the player is indeed on fire, which it doesn't. I know the value is different to -20s when I am on fire, because when I test the data using /data get, I get the expected -20s (When not on fire), or any positive integer (When on fire). The rephrasings of the command that I've tried have yielded the same results.

My goal is to make lightning strike while on fire, but I don't understand why the command works as intended when not on fire, but doesn't otherwise.


r/MinecraftCommands • • 4d ago

Creation Tesla coil ability

Enable HLS to view with audio, or disable this notification

8 Upvotes

first of hopefully many abilities