r/MinecraftCommands 18h ago

Creation Helicopter!!

Enable HLS to view with audio, or disable this notification

206 Upvotes

r/MinecraftCommands 6h ago

Help | Java 26.2 How do I refer to item custom data in macros?

Thumbnail
gallery
2 Upvotes

I use this command

/function gloob:stats/test_ability with entity @s SelectedItem

with this item and file and it shows an error. How do I refer to the charges custom data in the item?


r/MinecraftCommands 11m ago

Help | Java 26.1 How do i make sure a player gets something when they EAT a certain food?

Upvotes

Probably asked before but i can't seem to get an answer, i need to set up a way so that whenever ANY player eats a certain food [let's say rotten flesh] they get certain status effect, any way to do this?


r/MinecraftCommands 17m ago

Help | Java 26.2 /tick freeze is freezing player

Upvotes

Im so confused as to what I changed, but now when I tick freeze I can look around but can not move at all. This happens on my CMP as well as in single player. Tick unfreeze, tick sprint, all other tick commands work normally. Maybe a mod conflicting? I recently added fast frames mod, it required forge config api and puzzle (something) as dependencies.

Any help is greatly appreciated 🙏


r/MinecraftCommands 1h ago

Utility I replicated the "FSit" mod's player-riding mechanic using ONLY Scarpet (No client mods required!)

Upvotes

I’ve been working on a passion project for my private server, and I wanted to share it with the community. Our server's philosophy is "fewer mods, more content" — we want to push the boundaries of pure vanilla Minecraft using Datapacks and Scarpet, so players can join without downloading massive modpacks. The challenge? Replicating the FSit mod's iconic "ride on other players" mechanic, but doing it 100% server-side with Scarpet. Mods make this easy with client-side interpolation and deep engine hooks. Scarpet, on the other hand, forces you to fight vanilla mechanics (like entities forcefully dismounting on teleport, or the complete lack of smooth movement APIs). With a bit of trial, error, and some AI assistance to navigate the confusing Scarpet documentation out there, I finally got it working.

(The demo of how it looks can be found on my github repo)

The Cool & Useful Stuff

  • Vertical Stacking: Right-click a player with an empty hand to mount on them. Multiple players can stack on top of each other.
  • Smart Following: The entire stack dynamically follows the root player.
  • Auto-Reorganization: This is my favorite part. If the root player presses Shift or disconnects, the first rider automatically becomes the new root, and the stack neatly reorganizes without collapsing.
  • Crash-Proof: Built-in cycle detection prevents players from mounting their own stack, avoiding infinite loops.

* Zero Client Mods: It just works. Drop the .sc file in the scripts folder and load it.

The "Bad" (Limitations & Trade-offs)

I want to be completely transparent about how this works under the hood: Visual Jitter: You might notice a slight 1-2 tick delay between the root player's movement and the armor stand seat. Why? Scarpet cannot access client-side interpolation or quaternions. I tested velocity-based movement, but it caused physics glitches and overshoot. Per-tick teleportation was chosen as the most reliable and precise method, even if it has minor visual jitter at high speeds. Teleportation: If the root player uses an Ender Pearl or Chorus Fruit, vanilla mechanics will temporarily dismount the riders. They just need to right-click to remount.

Dimension Changes: Crossing a Nether/End portal reorganizes the stack in the original dimension (riders stay behind). This is an intentional, safe fallback to prevent cross-dimension entity corruption. (Actually, it work crossing dimensions but the stack of players cannot follow anymore the root player and can be broken the actual stack in seconds).

Technical Details (I'd tried to write a lot but simplified, sorry):

  • Uses a highly efficient Linked List (global_child / global_parent maps) for O(1) stack operations.
  • _find_root() has a hard 64-iteration limit to guarantee no infinite loops can crash the server.

* An _sweep_orphans() function runs every 200 ticks (10 seconds) to clean up any armor stands that lost their rider unexpectedly.

What's Next? (Roadmap)

I’m currently exploring two things: Porting the core logic to a pure Datapack for maximum vanilla compatibility (no Carpet required). Finding a clever way to replace the Scarpet right-click trigger with a vanilla item interaction (like a Fishing Rod or Carrot on a Stick) to make it even more immersive. Links: * Repo Code: github.com/Tarquitet/ridable-players-carpet I’d love to hear your thoughts! Have you tried something similar in Scarpet? Any ideas on how to improve the datapack version or handle the teleportation edge cases better? Let me know in the comments!


r/MinecraftCommands 6h ago

Help | Java 1.21.11 Need help with checking states of lever and mannequin.

Post image
2 Upvotes

So i want to summon a mannequin in Java 1.21.11.

What i want is:

Lever On -> mannequin gets summoned

Lever Off -> nothing happens

if mannequin doesnt exist but lever On -> summon him again

Basically i need to check if the lever is on or off and if The mannequin exists or not.

  1. command block: summons mannequin

  2. checks power of lever

  3. checks if mannequin exists

  4. executes the first command block by placing a redstone block over it

  5. deletes the redstone block

Only the summoning works but nothing else and i have no clue how to fix that. I dont know what you guys need sorry im kinda new to this.


r/MinecraftCommands 14h ago

Creation Finally figured it out

Enable HLS to view with audio, or disable this notification

10 Upvotes

So in a previous post I mentioned how I was struggling to create a command block mechanism for a bridge. It took some tweaking but I finally created something. The mechanism itself powers the redstone lamp and the observer detects this and triggers the command blocks. Now I can finish my rainbow base hunt


r/MinecraftCommands 1d ago

Creation Finally Finished Song/Show 2 for my minecraft Defqon 2025 stage! (turn on audio)

Enable HLS to view with audio, or disable this notification

11 Upvotes

everything you see (except for shaders and resource pack) is completely vanilla. it's all ran by commandblocks.
heavy lifting is done with datamerge end_crystalbeam, summon end_crystal, fill and setblock commands.

if you have any questions, dont hesitate to ask, i'd gladly answer them!


r/MinecraftCommands 19h ago

Help | Java Snapshots Can I remove copper interactions?

1 Upvotes

So I know in 26.3 we'll get option to add components to item so they can transform other items but will there be an option to remove specyfic interactions? or the copper and wood thing is still hard coded?


r/MinecraftCommands 1d ago

Help | Java 1.20 Is there any way to kill mobs with a specific effect?

2 Upvotes

Hey there! I'm starting up a server with the Fungal Infection: Spore mod. I'm trying to make a safe area, but the mobs don't die fast enough for it to be safe. However, one of the blocks from the mod gives the spore mobs in its radius the frostbite effect. Unfortunately, this effect doesn't instantly kill them. Would there be a way to kill them instantly through commands?

The registry name for the effect is "spore:frostbite", but I can change it if needed.


r/MinecraftCommands 1d ago

Help | Java 1.20 Trying to find a way to control a mob's pathfinding for A FNAF build

2 Upvotes

I've been playing The FNAF management wanted mod, and wanna make it harder to survive the night in the buildings I build. The mod is still in the process getting updated so mob ai is kinda lackluster. Is there a way to make it so mobs only pathfind to specific areas I want them to? That way they'd actually wander to the office.


r/MinecraftCommands 1d ago

Help | Java 26.2 Can i make a mannequin act like a zombie

6 Upvotes

can i make like my player skin act like a zombie please and chase me or smth


r/MinecraftCommands 1d ago

Help | Java 26.1 Custom Entity Texture

1 Upvotes

Hey yalls! I am making a custom entity on block bench using animated java. I exported the entity with a datapack and a resourcepack and while I can summon the entity and play the animations, the textures are all purple and black instead of what they should actually be. Anyone know why this might be the case? I can share screenshots of some files if needed (I just dont know which ones). Thanks gang!

Edit: actually, I realized on the animated java blueprint for the entity I have the texture size set to 16x16. It does give a warning saying, "Texture width does not match the width of the largest texture (128). This may cause rendering issues." However, when I change it to 128x128, the texture in the entity bugs out. Not sure if the textures are only supposed to be on the top left of the canvas:

When set to 16x16
When set to 128x128

r/MinecraftCommands 1d ago

Help | Java 26.2 Is there a way to detect cooldown in minecraft?

4 Upvotes

so what i need is to detect if your weapon cooldown has passed or is still going, is there a way to do that?

for reference im making an enchantemnt that decreses your cooldown after first hit but gives you long cooldown initaly but it decreses cooldown after i attack with out waiting full cooldown which is of coarse bad, is there a way to fix it?


r/MinecraftCommands 1d ago

Help | Java 26.2 I need help making a light system that kills you in the dark but doesnt in the light and its random please.

3 Upvotes

I'm trying to make a backrooms map and I'm wanting to create a room sort of like this: https://youtu.be/-DRfFSa_QlI?si=BR21OQcogsosmi7N (2:24)

Where the lights randomly flicker on and off, and standing in the dark while they're off kills the player, but standing in the side rooms boardering the room are safe zones. Does anyone know of anyway how I can get this to work?

Thanks


r/MinecraftCommands 1d ago

Help | Bedrock Making Roulette in minecraft but need help.

3 Upvotes

So as the title says I'm working on roulette in minecraft, however. I am bad at syntax.

so far i've got

2 scores, Roulette, RouletteResult. I use these to calculate the result, got that working.

However I'm really struggiling to detect if someone has made a bet in one of the places.

I made all the numbers, even, red, black, etc.

I tried this: "/execute if score @.a RouletteResult matches 5 run..."

the period wasn't in it, kept turning into a link.

I saw someone use @.n instead, which worked, but felt like it was linked to one person, and I feel this will be hard to help with cause of my shit working. but it's really demotivating me.

Thanks in advance.


r/MinecraftCommands 2d ago

Help | Bedrock How Laggy are the bedrock block displays

3 Upvotes

I am thinking about learning how to do block displays on my xbox bedrock edition, before I start I want to know how laggy do they make a world, like what it the limit in a small space of like 40 by 7 by 40


r/MinecraftCommands 2d ago

Creation Thank you for the help in my latest post! Here is the result!

7 Upvotes

https://reddit.com/link/1w2w8be/video/3qn1lpzbelmh1/player

I love building, just came back to the game and created a new creative world just to try building ideas, but i find placing blocks in the ground a mostly boring task hahha. So i wanted to fix it using commands.

At first, i really wanted to use 2 armor stands with tags as the coordinates but thats impossible atleast on current bedrock and i couldn't find an addon to tweak it. So, i went the hard way and planned an algorithm to make sort of a printer with 4 armor stands.

Thaks to you guys, I was able to fix the stopping problem and build the system. I must say, it is really inefficient, but i liked doing it! Really liked playing and working with command blocks, im going to try using what i learnt to make cooler and funnier stuff.

Also, if you want, i can post all commands and block configurations used!


r/MinecraftCommands 2d ago

Help | Bedrock Command block bridge

Thumbnail
3 Upvotes

r/MinecraftCommands 2d ago

Help | Java 1.20 Is there a way to make Custom crafting recipes in java 1.20.1?

2 Upvotes

I'm on 1.20.1 and I'm trying to make a gamemode that has custom crafts and such, is there a way for me to do this with commands or something?


r/MinecraftCommands 2d ago

Help | Bedrock Not sure how to execute command

3 Upvotes

I'm trying to make a command that makes it where when player 2 gets 10 blocks of player 1 player 1 gets darkness for 2 seconds but I'm unsure of how to set up this argument can someone show me how and if possible give me a breakdown of why it works?


r/MinecraftCommands 2d ago

Help | Java 26.2 How do I make a tool that only breaks specific blocks, and blocks that can only be placed on specific blocks?

2 Upvotes

I know this question has been asked numerous times, but I genuinely can't figure out the new command. So far, I've gotten "/give \@s iron_shovel[can_be_placed_on=" before it suddenly doesn't accept anything. Maybe I'm missing something, but I've been searching all over the Internet, and not finding any information that's up to date. Please help if you know


r/MinecraftCommands 2d ago

Help | Java 26.2 Help, how do /give custom an item with colored name and lore

2 Upvotes

I am doing a little project with worldedit and minecraft codes, I had done a code looked up on google and this is what I got.

How do I do this code differently?


r/MinecraftCommands 2d ago

Help | Bedrock Is the lightning stick possible in current Minecraft bedrock? (Console).

0 Upvotes

I’ve followed the most recent tutorial I could find to a tee and it’s still not summoning anything


r/MinecraftCommands 2d ago

Help | Java Snapshots Need help dealing with flooded caves in custom dimension datapack

3 Upvotes

Hello, recently I've been working on a datapack that recreates 20w14infinite's Biome for Player with No Time for Nonsense biome and dimension in the latest snapshot (26.3-snapshot-10 at the time of making this post). I've got all the terrain generation sorted out, except for one thing: all caves below sea level are completely flooded, regardless of whether or not they actually have a connection to a body of water. So far I haven't figured out what's causing it, as this is my first time fiddling with custom dimensions and custom terrain generation (it is a miracle i even made it this far tbh).

Does anyone know how to fix this and get the caves to generate identically to the Overworld's caves?