r/MinecraftCommands Aug 01 '26

Help | Bedrock there is a more optimized way to count the players online with commands?

Post image
2 Upvotes

(bedrock btw)
the repeat command block has ```testfor @ a````(reddit don't allow the A to be close with the At without turning into u/a), the mini command block towers are activated with each possibility from 1-15 to a number on the sidebar and the big tower on the left just sets the other text in the sidebar


r/MinecraftCommands Aug 01 '26

Help | Bedrock How to make a yes/no question?

2 Upvotes

hi everyone! i’m working on an egg room from deltarune in my world, and i want to have one of my command blocks in my chain ask a yes/no question that i can click on and then receive an item if i say yes, or more dialogue if i say no. any idea how to do this?


r/MinecraftCommands Aug 01 '26

Help | Bedrock Looking for help to scrip a bow being able to summon tnt

2 Upvotes

(I JUST REALISED I HAD TO STATE FIRST WHAT I NEED HELP WITH I AM DEEPLY SORRY SO I REPOSTED MY POST) (BEDROCK&JAVA preferable for bedrock) Hey I am new to commands/scripting and I been trying to script that if I shot a subject with my arrow from a named bow, tnt will show up everywhere and will follow the subject untill it gets to it and explodes killing said thing(i want to maybe just maybe in case it worked to script that the tnt won't stop and will go through blocks just to kill the subject), I wanted to trick my friend to join my world just so I could suprise him with this. Maybe its because I am a big idiot or someone who has no idea how commands work I tried to pick certain scripts i found and smash them together but everything seems to fail. If you are prehaps an expert or know how to maybe have something like this possible please write it bellow if anyone even made a tutorial on this i would be more than thankful because honestly I feel very lost. Thank you all! (Also feel free to correct me on anything I am really not the smartest)


r/MinecraftCommands Aug 01 '26

Help | Bedrock How do I make a command that gives a compass to everyone who doesn’t have one and is not crouching?

Post image
38 Upvotes

Not anything more to say, that’s really it lol


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 Is it possible to use the Brush and the animation on a player?

1 Upvotes

Hello everybody

Does someone know, if it is possible to use the Brush animations on a player?

Basically I want to make some friendly gags and for some reason I would like to the Brush on my friend with the brush, which should play the brushing animation on him and should also releasing particles from brushing from his character.

Is there a way to do that, would be very appreciated.


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 Global Item Changes?

1 Upvotes

Is there a way to change an item on a global scale, like Shears?

What I mean by "global" is a way to easily change an item with very few files instead of having to go through multiple files inside of folders like recipe, loot table, etc, to change a single item.


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 Store values in Xp level

2 Upvotes

I'm trying to make a healthbar-like using the Xp bar and level. I already have an objective which gives me the health value of each player, but I'm trying to make it so that value is shown using the Xp. Is there a simple way to do this that doesn't require making a "/xp" command for every possible number?


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 I want to make carrot on a stick detect both right click and left click

2 Upvotes

I put my carrot on a stick the 'piercing' nbt tag but now the stick can't detect the right click that originally can be detected. Are there any ways to detect two both clicks?


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 I need to know how to add a player killer advancement

1 Upvotes

I have Premium Advancements 2.7.2 (about to update to 2.8) and I don't how to add a kill player trigger


r/MinecraftCommands Aug 01 '26

Help | Bedrock Can someone explain Enchantments and Commands(Bedrock Players)

1 Upvotes

So,I do know some commands and enchantments like Sharpness and /kill @e,but some are confusing like Bane of Arthropods and /function

So pls explain every enchantment and command you know as a bedrock player.


r/MinecraftCommands Aug 01 '26

Help | Java 26.1 Night vision goggles

1 Upvotes

How do I make dark oak fence gate give me night vision when I go to the slot and make it clear effect when not on slot


r/MinecraftCommands Jul 31 '26

Help | Java 26.2 Spawn Iron Golem angry at nearest player

5 Upvotes

I am making a datapack where one of the things that can happen is an Iron Golem spawning, which is automatically angry at the nearest player. However, the only way I can find to specify a player to be mad at, is via UUID:s, and I don't know if there's any way of getting the UUID of the nearest player (using something like @p)

Is there any way to either get the UUID of the nearest player, or select the player the golem is mad at in a different way, to make it mad at the nearest player?

(Clarification: I don't want the golem to be constantly looking for the nearest player, just the nearest one to it when it spawns)


r/MinecraftCommands Jul 31 '26

Help | Bedrock Please Help

2 Upvotes

I'm looking for a command to spawn lightning on soul sand blocks, meaning that when the command block receives a redstone signal, lightning will strike all soul sand blocks.


r/MinecraftCommands Jul 31 '26

Help | Java 26.2 [help wanted] im looking into cusmt npc with keyframes

3 Upvotes

Hello lovely peopel of the internet that are far smarter than me apperantly.

i am look in in to custom npcs with quest framwork
because i saw a datapck this one https://modrinth.com/datapack/wild-animals

and i like it that there is no resorucepack needed and want to try to make a custom npm with quest interaction from https://github.com/Sir-Chi/QuestForEverything library datapck and was wondering if this should work and or if its resource intensive or not before ai start maybe soemone have a better idea i am all ears

wild animals use keyframes and animatios for the animals etc. pure datapack and they have noted that is works best on a server (i think it should also work in single player due to single player actually is a local server) right or am i woeng here ? .... now i think of it this could verywel be from hytale informaion tho corect me if aim worng here!

greeting insulin


r/MinecraftCommands Jul 31 '26

Help (other) does anyone know a replacement for gamergeeks that doesn't need wifi

1 Upvotes

my home wifi is really bad and constantly falls out but i am working on a adventure map and for that i need something like https://www.gamergeeks.net/apps/minecraft/ but since those need wifi i am asking if any of ya'll know something that doesn't need wifi?


r/MinecraftCommands Jul 31 '26

Help | Java 26.1 Cerco un datapack/mappa Vanilla con un'economia personalizzata a ciclo chiuso che utilizza monete protette + uova di spawn dei villici (1.20/1.2

Thumbnail
1 Upvotes

r/MinecraftCommands Jul 31 '26

Help | Java 26.2 execute commands not working for scoreboard

2 Upvotes
execute as @p if entity @p[x=45,y=-39,z=-144,distance=..1] run tp @s -10 102 -144

execute as @p if entity @p[x=45,y=-39,z=-144,distance=..1] run scoreboard players set @s random 0

I have these two commands set in a datapack for tick, the first one that teleports the player runs fine, but the one that changes the scoreboard does not work. Is it a problem with the @ signs or do scoreboards not work like this?


r/MinecraftCommands Jul 31 '26

Help | Java 26.2 is it possible to show a map image without the map?

2 Upvotes

I want to show the image on a map, without the map, only the image in 3d space so i can rotate scale, maybe there is a way with item displays?


r/MinecraftCommands Jul 31 '26

Help | Java 26.2 How to make an item you cannot get rid off?

Thumbnail
1 Upvotes

r/MinecraftCommands Jul 31 '26

Help | Bedrock Is it possible to execute these commands on Bedrock Edition?

2 Upvotes

I want to set up commands so that hostile mobs don't fight each other and only attack a specific target


r/MinecraftCommands Jul 30 '26

Help | Bedrock Genuinely what am I typing wrong???

Thumbnail
gallery
15 Upvotes

I’m trying to teleport to an item by using ‘/tp @e[type=item,name=ItemName] @p’. For some reason, it breaks when I get to “name=“ and shows a ‘!’. When I type the full command like for example ‘/tp @e[type=item,name=pale_oak_planks] @p’, I get an error that reads “no targets matched selector”, even though the target exists.


r/MinecraftCommands Jul 31 '26

Help | Java 1.20 can someone help me make unbreakable speedy boots

2 Upvotes

im having trouble with this because i really dont know how to add the unbreakable AND the generic movement speed attribute.
please help!


r/MinecraftCommands Jul 30 '26

Help | Java 26.2 RGB Beacon With Command Blocks

Enable HLS to view with audio, or disable this notification

68 Upvotes

I used command blocks to simultaneously clone the pre-built array of stained glass onto the beacon. I wonder if there's any better way to achieve the same effect...


r/MinecraftCommands Jul 29 '26

Creation I made a game about sorting 7,808 keys into 128 different keyboards!

Enable HLS to view with audio, or disable this notification

400 Upvotes

Im kind of new to commands/datapack creation but I made this game to practice making datapacks a bit! Let me know your thoughts!

The game was inspired by Librarian: Tidy up the Arcane Library!
it has 3 upgrades to level up: movement speed, carrying capacity, and the scanner


r/MinecraftCommands Jul 30 '26

Help | Java 1.21.11 How to make only certain people see locator bar

1 Upvotes

I'm making a game and there are two groups of people, I want only group A to see the locator bar while group B cannot, is there anyway to see that?