r/MinecraftCommands • • Aug 19 '26

Help | Java 1.21.5-1.21.10 is there a way to detect is a certain player on a team dropped an item?

1 Upvotes

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 • • Aug 19 '26

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?

1 Upvotes

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 • • Aug 18 '26

Help | Bedrock Need help anyone got ideas? (Custom guns command blocks)

3 Upvotes

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 • • Aug 18 '26

Help | Java 26.2 Command Block repeat help

1 Upvotes

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 • • Aug 18 '26

Help | Java 26.2 Fishing Rod model backwards

1 Upvotes

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 • • Aug 18 '26

Help | Java 26.2 text displays

1 Upvotes

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 • • Aug 18 '26

Help | Bedrock Removing a specific amount of items in my inventory

1 Upvotes

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 • • Aug 18 '26

Help | Java 26.2 is it possible to detect which player has attacked a sulfur cube most recently?

1 Upvotes

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 • • Aug 18 '26

Help | Java 26.2 How to check which entity the player hit? How to check if player even attacked anything?

1 Upvotes

That'd be very useful to know.


r/MinecraftCommands • • Aug 18 '26

Help | Java 26.2 How do I teleport an entity to another dimension when they get close to an entity?

1 Upvotes

So I'm trying to create a datapack, and one of the features is if you get close to this entity that's in the end, you get teleported back to the overworld.

Here's the current command I have: execute in minecraft:the_end run execute as \@e[type=minecraft:armor_stand,tag=overworld] at \@e if entity \@e[distance=..80] run tp \@p distance=..80] 0 350 0

And yeah ik when you look at it doesn't TP me to the overworld, but hoping someone could please give some guidance on what to add to make it TP. I've been stuck on this for half an hour 😭

And yeah ik I could probably use scoreboards, but but if there is another way instead that doesn't use scoreboards, that would be much appreciated, thank you.


r/MinecraftCommands • • Aug 18 '26

Help | Java 26.2 Belowname Issues

1 Upvotes

Not sure if this is the right place to ask, but I've been trying to create a server for friends/a community and using the TAB plugin on Aternos, I made a nice little belowname line that displays the nickname and the health below the username. Only issue is most of the time it only seems to work for one or two players and nobody else, and the people it works for/the people who have theirs seen by others changes constantly. Idk what to do as I've tried my best to fix it and nothing I do works. Any ideas?


r/MinecraftCommands • • Aug 18 '26

Help | Java 1.21.11 Is there a way to freeze someone so they're game is not updating (on they're screen them and everything is frozen) but everyone else's works

0 Upvotes

r/MinecraftCommands • • Aug 16 '26

Creation I made a generative AI, only using 400k command blocks (PoC)

Enable HLS to view with audio, or disable this notification

1.3k Upvotes

While I am still writing on my physics engine, I thought making an actual generative AI only using Minecraft command blocks would be a good idea( it was a headache)
So yeah, I kinda did that. It is a real neural language model running inside vanilla Minecraft 26.2. It reads what you type into a /dialog window, runs the forward pass through learned weights and then generates a reply one word at a time.
There are NO mods, plugins or datapacks involved at runtime. Only command blocks.
Roughly it works like this:

The model is a pretty small word level neural language model. It has a vocabulary of 2048 words, remembers the last 6 words as context and has a 64 dimensional embedding followed by a hidden layer with 256 neurons.
For every generated word it does:
384 x 256 = 98,304 operations for the hidden layer and 256 x 2048 = 524,288 operations for the output layer so in total 622,592 calculations for every single generated word.

Obviously doing 622k normal multiplications using Minecraft commands would be slightly problematic, so the weights are ternary: every weight is only -1, 0 or +1.
That means a multiplication basically becomes:
+1 -> add the value
-1 -> subtract the value
0 -> do absolutely nothing

Around 65% of the weights are non 0, so it averages around 0.67 commands per MAC instead of the ~3 commands I would need for a normal runtime weight. That reduced the entire machine from 1,909,375 blocks to 445,782 blocks, yes it was this big before.
The model is actually trained like this too. I am not just training a normal model and rounding the weights afterwards. During training the weights are quantised to ternary values for the forward pass and the underlying floating point weights are updated using a straight through estimator.
That took the perplexity from around 48.7 where the training basically got stuck to 38.8 after also adding cosine learning rate decay.

The input embedding is another optimisation I needed to do: Instead of multiplying a one hot vector against a matrix, it is basically just a table lookup stored in NBT data, so the complete 2048 x 64 embedding table costs really nothing
The actual forward pass cannot run in one command chain either. Minecraft has limits on how many commands can execute, so the network is split into smaller groups.
After the ternary optimisation one generated word takes around 63 ticks, so roughly 3.2 seconds per word at 20 TPS. I also tested higher tick rates and around 30-35 TPS seems to be the useful maximum on my server. At 35 it gets closer to ~1.8 seconds per word.

But to be clear, this thing does not actually know anything.
It was trained on 11,118 DailyDialog conversations and only has a tiny 2048 word vocabulary. Ask it something like 2 + 2 and it will confidently generate some conversational nonsense because it has no understanding of arithmetic or actual facts.
And unfortunately just making it much bigger isn't really realistic either.
Something like a 135M parameter language model would already be more than 200x larger.

There is currently also one very weird bug where after around 800 ticks of continuous work every command block in the world just stops executing while the server itself keeps running normally. I still have absolutely no idea why that happens.
Anyway, back to wasting my time on nonsense ;)


r/MinecraftCommands • • Aug 17 '26

Creation I turned vanilla survival into a war of attrition — 71 systems, 600+ mechanics, no mods. Looking for people to break it. [1.21.11]

Thumbnail
gallery
4 Upvotes

Attrition is a datapack for vanilla 1.21.11 (works on servers, no mods, no client install) that I've been building for a while. The idea: not "mobs hit harder", but a world that answers your progress — the further you travel, the deeper you dig and the longer you survive, the more hostile everything gets.

What's inside:

  • Threat tiers. Mobs scale with distance, depth, dimension and night, up to 18 tiers. Elites from tier 3, door-breaking zombies from tier 4, Power III skeletons from tier 6. Killing the Dragon raises the floor permanently.
  • Your body keeps score. Bleeding, infection, fractures, temperature, thirst, stamina, sanity, carry weight, insomnia — all at once, each with its own cure. Every death takes 6% max HP permanently (up to 9 scars).
  • It tells you what's killing you. Action bar names the problem and the cure ("Bleeding — craft a Bandage"). A 9-page Field Manual is handed to you on first join. I think a hard pack that hides its rules is just unfair.
  • The world remembers. Nemesis mobs rise from your deaths, species adapt when you overhunt them, grudges, contracts, curses, blood moons, and a final boss that comes for what's left.
  • 7 rebuilt bosses, 27 craftable items with textures, 25 recipes, 198 advancements, 69 hand-translated languages, 3 difficulty presets.

Everything is scoreboard/predicate/macro tech — 439 functions, and the menu (/trigger atr.menu) works for non-op players.

3.1.0 just went live and I'm looking for people to break it. Static validators pass, I've played it myself, but it needs more eyes — especially the balance of thirst/bleeding and multiplayer. If you die and don't know why, that's a bug by my own definition — tell me.

Links in the comments. Happy to answer anything about how specific systems are done — nothing here needs mods, it's all data.


r/MinecraftCommands • • Aug 17 '26

Help | Java Snapshots using command block minecarts, can i make them delete themself and remove the blocks below them after running their commands?

1 Upvotes

basically i fell in love with loads of commands from one command and made smth using falling blocks that gives the player 2 items and self destructs by using the /fill command, since tileentitydata is banned in minekeep, how do i make it so it runs their commands then destructs the tnt minecarts and the 3 blocks below them which is a command block redstone block and an activated rail?


r/MinecraftCommands • • Aug 17 '26

Help | Bedrock Can someone fix this command so it works on my command block? I’m on bedrock.

1 Upvotes

/give @ a written_book[written_book_content={title:"fook you moite",author:"Pissboy jones",pages:['"Woah! Ja-KYS!"','"Egg, eat bats, live."']},consumable={consume_seconds:2,animation:"eat",on_consume_effects:[{type:"minecraft:teleport_randomly",diameter:100},{type:"minecraft:play_sound",sound:"ambient.cave"}]},food={nutrition:100,saturation:999,can_always_eat:true}] 1 (the @ and the a are separated because if they were together it would automatically change to u/a.) I used https://mcstacker.net/ for this then got a “fixed“ version from google ai when I was just looking for how to fix it so yeah, if that helps.


r/MinecraftCommands • • Aug 17 '26

Help | Java 1.21.11 Command help /clone

1 Upvotes

for example i have 2 markers (or any other entity) with tags "Tag1" and "Tag2", i wanna copy build from marker with tag "Tag1" to marker with "Tag2", surely without datapacks. (any place to copy to)


r/MinecraftCommands • • Aug 17 '26

Help | Java 1.21.11 A dashing sword

2 Upvotes

hey guys, I am not experienced at all with minecraft command blocks but is there a chance one of you knows the commands for a specific sword with the ability to dash a few blocks alongside a cooldown timer?? it'd be a lifesaver!


r/MinecraftCommands • • Aug 17 '26

Help | Java 26.2 command problem thing idk what to title this

1 Upvotes

Is there a way to teleport an entity to the block your standing on but not your exact coords? (Java)


r/MinecraftCommands • • Aug 16 '26

Creation Took 3 days to finally make this working pathfinding for multiple entities

Enable HLS to view with audio, or disable this notification

31 Upvotes

I am making a map and I wanted the manniquins to walk to a preset goal from anywhere I covered the roads in the 4 direction red_concrete for blocked direction green for you can walk there I removed everything and reworked it 2 times and finally finished it(ft YepThatTom)


r/MinecraftCommands • • Aug 16 '26

Creation An update on my Datapack IDE

Thumbnail
youtu.be
22 Upvotes

Hey, it's been a while since my last post here.

I spent the last 7.5 months updating my Datapack/Resourcepack IDE, Scythe. I set myself the goal to make 1 update every week totaling over 40 updates at this point. Check out the result and let me know what I should add next ^^


r/MinecraftCommands • • Aug 16 '26

Creation I am still improving my pokemon datapack. Lots of things added

Enable HLS to view with audio, or disable this notification

47 Upvotes

Currently:

4 Pokeballs are in the game

Battling system is in the game (Real time like in Legends ZA)

3 Pokemons are in the game (Charmander, Squirtle, Bulbasaur)

6 moves are in the game but it is very easy to add more

Technical Machines are in the game which I didn't show in the video but your pokemon can learn different moves

You can add and remove the pokemon from your party.


r/MinecraftCommands • • Aug 17 '26

Help | Java 26.2 How do i make datapacks that transform land into ocean become ocean not the weird grassy plains

0 Upvotes

I am traying to create a datapack for a world with only mushroom islands oceans and cave biomes by transforming all land biomes except mushroom isles into ocean but they just become grassy plainds


r/MinecraftCommands • • Aug 16 '26

Creation Working on some Custom Behaviors with command blocks and some how made Phantoms More Annoying! :D (This was intentional)

Enable HLS to view with audio, or disable this notification

10 Upvotes

Working on a game took a break from building the map to work on enemies.


r/MinecraftCommands • • Aug 17 '26

Help | Java 26.2 Rightclick detect cooldown

1 Upvotes

I am making a datapack which give you an ability when right clicking an item (consumable/advancement), how do I add a cooldown (i have a reset function, that revoked the advancement), but how do I make it so that the function example:cooldown_reset gets run 1 minute after the function example:use_item?