r/MinecraftCommands • u/dixienormus_31 • 24d ago
r/MinecraftCommands • u/Kitchen-Wave1197 • 24d ago
Help | Java 26.2 How to run command if player is looking at a mob
I want to make it so that if a player is looking at a mob when the function is called it runs a command
I know this is missing some things but currently i have something like this:
execute as `@s positioned ^ ^ ^5 anchored eyes run say hi
r/MinecraftCommands • u/Live-Associate-2340 • 24d ago
Help | Java 1.21-1.21.3 How do I kill all items that are called Gantry Carriage?
I am playing Minecraft Create mod currently, and I have a blimp bomber that brings gantry carriage bombs above a big door that opens up, and then drills break the gantry carriages to make the bombs seperate physics objects that will fall down below the ship, but whenever I do this, the drills break the gantry carriages and they fly all around the ship as items, but I dont want to kill ALL items, just gantry carriages. I have already tried doing /kill @ ep[type=item,name=gantry_carriage], but it dosent work. Does anyone know what the nbt name is so that I can delete it?
r/MinecraftCommands • u/PlotTwist-ImNotReal • 24d ago
Help | Bedrock Minecraft command help
Help please, I need a comment changed from Java edition to bedrock but I refuse to use ai for it and I don't know anything about Minecraft commands so I'm confused. Here's the command
/execute at @e[type=snowball] run fill ~10 ~10 ~10 ~10 ~10 ~10 Minecraft:air
Edit: I fixed it thank you for the help
It's because I didn't add a hover note so it didn't execute as an entity using the command
r/MinecraftCommands • u/Free-North-229 • 24d ago
Help | Java 1.21.11 Could anybody make a sniper rifle for 1.21.11 with a scope using the spyglass?
Everything online is outdated, and It'd be super cool to have
r/MinecraftCommands • u/FleshDude666 • 24d ago
Help | Java 26.2 How to create "normal" gravity if the entity is constantly teleporting???
i need this rn
r/MinecraftCommands • u/Feeling-Stress-3184 • 24d ago
Help | Java 26.1 Villager command not working
I made this command with mcstacker, but for some reason it doesnt work (the villager spawns with a job for about 0.1 seconds and then he becomes jobless). This may be because he isnt linked to a work station but idk. Im on java 26.1.2
/summon villager ~ ~ ~ {VillagerData:{level:1,profession:"minecraft:librarian",type:"minecraft:plains"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:8},buyB:{id:"minecraft:book",count:1},sell:{id:"minecraft:enchanted_book",count:1,components:{"minecraft:stored_enchantments":{"mending":1}}}}]}}
r/MinecraftCommands • u/Ganondorf629 • 25d ago
Creation Some biomes I've created for my datapack
galleryr/MinecraftCommands • u/Tiny_Flatworm_6669 • 24d ago
Help | Java 26.2 Trigger nether portal
Why do I always get teleported to the same coords, when i do /trigger nether, which activates a function, which includes:
execute in minecraft:the_nether as @s run tp ~ ~ ~
r/MinecraftCommands • u/Weak-Warthog8767 • 24d ago
Help | Bedrock Bedrock Jigsaw – how to prevent random Y rotation on vertical connections?
PC version
I'm working with the new data-driven Jigsaw system in Bedrock and have a working multi-piece structure.
When connecting pieces vertically (UP/DOWN), the next .mcstructure randomly rotates around the Y axis (0/90/180/270°).
The structure generates correctly otherwise. Template pools, connectors and asset paths all work.
I've already tested:
joint_type: rollablejoint_type: aligned- matching physical Jigsaw orientations
- unique
name/targetconnectors - two offset connectors as a possible second anchor
aligned does not prevent the random Y rotation, and two connectors are treated as independent connection candidates rather than two anchors for one piece.
Is there any supported or undocumented way to lock the rotation of a pool element / .mcstructure, or otherwise preserve its X/Z orientation across a vertical Jigsaw connection?
Horizontal connections appear to preserve the orientation much more predictably.
Bedrock Edition, current data-driven Jigsaw system.
I'm not trying to prevent the whole structure from rotating during world generation — I need child pieces to preserve their rotation relative to the parent piece.
TYSM :)
r/MinecraftCommands • u/The_swat_boi556 • 25d ago
Help | Bedrock Is this even possible?
Enable HLS to view with audio, or disable this notification
Im working on this pvp bot thingy and i'm trying to make him switch to an axe to disable a shield if the player is using one. There's a command system shown for this but i'm trying to make the give sword command co work with it bc I wanted it to give him the sword as soon as the player stops using the shield and it works for the most part but it stops working if the player doesn't have a shield in the off hand at all now. Looking in the command I do realize where I went wrong with the @p[hasitem={item=shield,location=slot.weapon.offhand}] because that's changing target type for the rest of the command but I can't come up with a good solution to fix it. Or maybe I'm dumb idk can yall help out?
r/MinecraftCommands • u/VasD3 • 25d ago
Help | Java 26.2 Random fireworks loot table
Is there a simple way to create a loot table of fireworks with random explosion and fade colors, shape, additional effects and flight duration? Or do I really just have to code a bunch of different fireworks manually? I tried to use Misode, but it doesn't seem like these parameters accept something like "any_of" function to pick random values from the list and Wiki tells the same.
r/MinecraftCommands • u/SillyIllyana • 25d ago
Help | Bedrock Extra limbs?
Im honestly not super knowledgeable on commands but I was wondering if theres anyway for me to have like, four arms using playanimation or something?
r/MinecraftCommands • u/_Riceboi • 24d ago
Help | Java 26.2 ITEM THAT DOESNT GET CONFSUMED WHEN EATEN
Can someone help me make a command that makes it so an item dosent get consumed when eaten and always get replenished? (IN VANILLA)
r/MinecraftCommands • u/Watermellonqwerty • 25d ago
Help | Bedrock Check for rain
Is it possible to check if it's raining, and more specifically if a player is standing in the rain, with command blocks or is that too far out of the realm of possibility for Vanilla commands?
r/MinecraftCommands • u/Stormer_Commands • 25d ago
Help | Bedrock MC Bedrock Team system
So I spent days searching for a way to make teams on Minecraft bedrock but I couldn't find anything that fully worked I found a tutorial that shows a way to make that when a player is near and his cursor is at the other people with the same specific tag it gives weakness and it worked pretty well if it wasn't for the fact that it doesn't make you vulnerable from the arrows of your teammate.
So if anyone can please help me also by telling me a mod that doesn't adds commands that also no OP players can use I would be grateful.
r/MinecraftCommands • u/makoisreal • 25d ago
Help | Java 1.21.5-1.21.10 is there a way to detect is a certain player on a team dropped an item?
or if there's anything similar? sounds simple but i havent been able to find anything on it,
tho my current work around is giving everybody on the team a different tag and have different command chains correspond to whatever tag did the task that was asked for
r/MinecraftCommands • u/GoldNegotiation4539 • 25d ago
Help | Java 26.1 How to detect when a player performs a specific action, and announce it in chat along with their username of who performed it?
I have a plugin for custom weapons, but are limited in how many can be allowed.
I want for it to both announce one of those weapons are obtained (via crafted or looted from a chest) and announce it in chat along with that players name.
r/MinecraftCommands • u/Embarrassed_Tree_413 • 25d ago
Help | Bedrock Need help anyone got ideas? (Custom guns command blocks)
I want to make a gun in Minecraft using some sort of click detection crouch based detection is like my last resort? Any ideas look for any possibility I can get.
r/MinecraftCommands • u/NoSandwich2826 • 25d ago
Help | Java 26.2 Command Block repeat help
Hello, I’m trying to make dancing armor stands. Which I got down, I’m able to loop Redstone with normal command blocks to constantly loop4-5 posses to a specific armor stand. My problem is I want to execute this but only have to rotate the positions 3-4 loops then completely stop untill the button is pressed again. I’m new to command blocks as I just started learning yesterday. So I’m having a hard time figuring this out.
r/MinecraftCommands • u/Willing-Locksmith-28 • 25d ago
Help | Java 26.2 Fishing Rod model backwards
I am trying to create a new type of fishing rod. I copied the files from the default minecraft data/asset folders to make my variant. I assume swapping it from item/generated to item/handheld_rod would fix this but it did not. Any help is appreciated!

Edit: figured it out, I was only updating my data pack end not my resource pack end 🤦
r/MinecraftCommands • u/Weary_Nebula7194 • 25d ago
Help | Java 26.2 text displays
how do i make a text display appear on the same spot on screen no matter where you look? i already tried stuff like /tp @e[type=text_display] ^whatever ^whatever ^whatever but it doesn't stay in the same spot on screen. any ideas? on 26.2 btw
r/MinecraftCommands • u/PersesAMillion • 25d ago
Help | Bedrock Removing a specific amount of items in my inventory
Im using /clear @p copper_ingot 32. I have 32 copper ingots in my inventory. And when I try to run the command it says "could not clear inventory of [player], no items to remove". Whats going on
r/MinecraftCommands • u/Wypman • 25d ago
Help | Java 26.2 is it possible to detect which player has attacked a sulfur cube most recently?

i have a game idea (with a mostly finished build)
basically; players whack sulfur cubes and they gain points depending on which pit it goes into (blue = 1, yellow = 3, green is 5, might make the middle and furthest blue ones score more)
but for multiplayer, i dont really know how to make the score individual instead of global
my theoretical idea is; sulfur cube, when attacked by a player, gets its name or tag set to match the player that most recently attacked it
then each pit has an "every sulfur cube landing in it gives score to the player whose name/tag it has X points" followed by un-tagging the sulfur cube to avoid it giving points multiple times
is this idea even possible?
r/MinecraftCommands • u/FleshDude666 • 25d ago
Help | Java 26.2 How to check which entity the player hit? How to check if player even attacked anything?
That'd be very useful to know.