r/MinecraftCommands • • 59m 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 • • 1h 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 • • 7h 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
3 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 • • 9h ago

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

2 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 • • 11h 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 • • 14h 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 • • 14h 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 • • 16h ago

Creation Iron man Mark II

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

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

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

Creation Tesla coil ability

7 Upvotes

first of hopefully many abilities


r/MinecraftCommands • • 2d ago

Help | Java 26.2 How to detect projectile hits?

6 Upvotes

I want to make a custom projectile that doesn't do damage but instead subtracts an amount from a score from the hit player but I don't know how to get the hit detection right. using distance doesn't work since it tracks position and not the player hitbox.

I already know how to get the projectile moving, just need help with the hit detection.

Any help is appreciated.


r/MinecraftCommands • • 2d ago

Help | Java 26.3 How to prevent entity from being dismounted ?

1 Upvotes

I'm making a custom entity where I have a Ghast riding an item_display.

The issue is that the Ghast can easily be dismounted using spears or /tp. And I detect when the entity is dead by checking if the passenger is the Ghast.

Is there a way to prevent this or do I need to swap and make the item_display ride the Ghast ?


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Advancement Death by Goat

1 Upvotes

Hello! I'm trying to add a custom advancement to my datapack, granted when a player dies by a goat.

So far I have multiple advancements working (such as death by a llama, when it spits on you) but for some reason the goat one doesn't trigger. It does show up correctly in the advancement menu. Here's what I have that, I thought, should work:

{
    "parent": "hvc:first_death",
    "display": {
        "icon": "minecraft:goat_spawn_egg",
        "title": "Goated",
        "description": "Die by goat"
    },
    "criteria": {
        "die_by_goat": {
            "trigger": "minecraft:entity_killed_player",
            "conditions": {
                "entity": {
                    "type": "minecraft:entity_properties",
                    "entity": "this",
                    "predicate": {
                        "entity_type": "minecraft:goat"
                    }
                }
            }
        }
    }
}

If someone can point me where I am making a mistake, I'd appreciate. Thank you in advance!


r/MinecraftCommands • • 2d ago

Help | Java 26.2 Is it possible to create a dynamic player list in a dialog using only command blocks? [1.21.11]

2 Upvotes

I'm trying to create a simple ban menu in my vanilla Minecraft world that opens when I run /trigger banmenu.

The idea is to automatically display a list of all currently online players, with a "Ban" button next to each player's name. Banning a player would simply teleport them to a specific location rather than actually using the /ban command.

The teleportation part isn't a problem. What I can't figure out is how to dynamically retrieve the list of online players and generate dialog buttons for each of them.

I want the player list to update automatically whenever the menu is opened, without having to manually specify player names.

Is this possible using vanilla commands or a datapack, or is it a limitation of the dialog system?

I'm open to any vanilla workarounds.


r/MinecraftCommands • • 3d ago

Help | Java 26.3 how to modify a sulfur cube to have wood/bouncy physics while having a beacon as physical block?

3 Upvotes

doing an "data merge entity @ selector {equipment:{body:{id:"minecraft:beacon"}}}" changes it visually to a beacon, but changes the physics from bouncy to heavy, making it no longer work for a minigame where the goal is to knock sulfur cubes into buckets, the weight prevents it from properly being scored


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)

9 Upvotes

I wanted a real economy in my singleplayer worlds — a shop to buy and sell items, and coins for just playing — without installing mods. Nothing like it existed as a data pack, so I built one.

Vanilla Economy (Java 26.3):

  • /trigger shop summons a 6-row shop chest in front of you — 1,535 items in 10 categories
  • you earn coins for mining, digging, chopping, farming, fishing and fighting
  • prices are calculated from the real crafting recipes, so there's no craft-and-sell money loop
  • selling never touches your hotbar, armour or enchanted items
  • Nether/End/boss items unlock as you progress

No mods, no resource pack, works without cheats.

Download: https://modrinth.com/datapack/vanilla-economy · Source: https://github.com/vanilla-economy/vanilla-economy

It's my first public pack, so feedback and bug reports are very welcome!


r/MinecraftCommands • • 3d ago

Help | Java 1.21.11 Changing a scoreboard when an entity is near, and again when they're far away.

2 Upvotes

Heya, been trying to do this with drowneds to change day to night temporarily to make them aggro for an indoors adventure map i'm doing.

What i've figured out now is:

execute unless score %DrownedAggro enemyVariables matches 1 at @ a if entity @ n[type=drowned, distance=0..5, limit=1] run scoreboard players set %DrownedAggro enemyVariables 1

execute unless score %DrownedAggro enemyVariables matches 0 at @ a if entity @ n[type=drowned, distance=5..100, limit=1] run scoreboard players set %DrownedAggro enemyVariables 0

The problem with this is that when there's more than one drowneds spawned on different positions, it'll start constantly going changing from 0 to 1 and stuff, haven't found a way to fix this. Any help?


r/MinecraftCommands • • 4d ago

Creation Zelda series Boomerang recreated with vanilla commands

63 Upvotes

Something I've wanted to make for a long time, but I didn't have enough command experience to be able to do so until now. There's a few things here and there that could use some polish (the hitbox for activating levers is a bit odd) but apart from that I'm more than happy with how it turned out.

Video aspect ratio's a bit weird because I'm playing on mobile using a controller, I figured that being able to drop items instantly with a controller instead of waiting a few seconds every time I wanted to throw the boomerang would make for a better viewing experience.


r/MinecraftCommands • • 4d ago Bravo

Creation Chess in one command - finally in a decently usable state.

117 Upvotes

I've been slowly developing this and other projects over the years and my chess board is finally at least somewhat usable. I figure I might as well share it now that I've learned git (it's a miracle I made it as far as I did without git) and got everything onto github instead of waiting forever for it to be perfect. The good news is that it should be far easier to do what I want with it now that I don't have to care too deeply about the character limit of a command block.

I don't have a whole lot to say about it that matters from a non-technical standpoint, it's chess, what do you expect.

Github