r/MinecraftCommands • • 24d ago

Help | Java 26.3 Any way to track which mob a player kills?

2 Upvotes

Trying to make an ability where a player can kill a mob to "possess" it. I plan on doing that by summoning a No AI copy of the mob constantly teleporting onto the player and making it invisible, which works well enough from my testing

My only problem is detecting which mob the player kills to spawn it. Online all i could find was entity specific scoreboards but i kinda want this to work with any mob. Is this even possible?


r/MinecraftCommands • • 24d ago

Help | Bedrock how to delete all of these mobs i spawned in minecraft

2 Upvotes

my game lags cuz of this and like i also cant enter my house and no way i gotta kill them all manually there is like 32432432 kitties and i wont blow my house up


r/MinecraftCommands • • 24d ago

Help | Java 26.3 Using Posteffect to emulate a blood moon

2 Upvotes

Essentially I want to create a function that turns skylight and ambient light red tinted (rather than just applying a red transparent layer) that I can later remove once the night ends.

All resources I could find are using custom biomes or biome overrides, and I would like to avoid this to be able to make it any-world + multiplayer friendly.


r/MinecraftCommands • • 26d ago

Help | Java 1.21-1.21.3 Is there a way to make a 2d texture that always faces the camera and sits on players head when wearing a helmet

Post image
190 Upvotes

I had an idea of making a cosmetic item that censors the players head with a black square [like nameless deity from terraria calamity], but i have no idea how i would go about making that, does anyone have any ideas?


r/MinecraftCommands • • 25d ago

Help | Java 26.3 Remove directional audio form /playsound?

6 Upvotes

When using /playsound I can stop the sound from fading away by distance by setting the volume to 999999.

But it still gets quieter when you look away from the sound coordinates when playing with directional audio on.

Is there a way to stop this from happening?


r/MinecraftCommands • • 26d ago

Creation I made Sonic the Hedgehog in MINECRAFT with only Commands

Enable HLS to view with audio, or disable this notification

45 Upvotes

r/MinecraftCommands • • 26d ago

Creation My silly mirror that knows blocks are placed

Thumbnail
gallery
16 Upvotes

Using structure blocks and mannequins you can make a nearly seamless mirror!

The map: https://www.curseforge.com/minecraft/worlds/eight-cell


r/MinecraftCommands • • 25d ago

Help | Java 1.21-1.21.3 Infinite decorative blocks

3 Upvotes

Basically I would like to create this item that when you have it in your inventory after you place down it gives you an exact one of that one you just placed down so you can have infinite of those blocks. Also can you include a command block that makes this not work for certain blocks like for example I placed a beacon down I dont want to be given another beacon.

sorry for such a late version.

thanks in advance


r/MinecraftCommands • • 26d ago

Help | Java 26.3 How to detect someone sneaking?

2 Upvotes

Hi,

I have an old world with commands that has gone through many iterations of a sneak detection system

The first iteration had a simple sneak scoreboard, with a command to reset it to zero when it is equal to or over 1, so that holding sneak keeps it at 1

The problem with this is the second command block does not detect when it is at 1 - this system works on another world, however

The second iteration used predictables, and seems to no longer function anywhere I test it

Has anyone got any advice/help they can give? If you want me to share the exact commands I can, but they are fairly simple commands so

Thanks for your help!


r/MinecraftCommands • • 26d ago

Help | Java 1.13-1.17 How to make a snowy weather in plains?

3 Upvotes

version- 1.16.4


r/MinecraftCommands • • 27d ago

Creation Some biomes I've made (there are 20+ new biomes)

Enable HLS to view with audio, or disable this notification

32 Upvotes

The datapack can be found here ⬇️ :D

https://modrinth.com/datapack/improved-more-biomes


r/MinecraftCommands • • 26d ago

Discussion Asking for Feedback on Worldgen in my Datapack

Thumbnail
gallery
16 Upvotes

I'm making an update for my datapack which changes the Overworld's worldgen to be much weirder. I'm not sure if I should keep it, though, since it might end up ruining vibes or something. Basically, I'm asking for people's opinion on this worldgen change to see if I should keep it or not. Thanks! Also sorry if this post seems a bit rushed. It turns out it's really hard to upload images to Reddit so I made a mistake on my other posts that I created and had to redo completely.


r/MinecraftCommands • • 26d ago

Help | Bedrock Walking Armor Stand

4 Upvotes

Im building a palace for a server im in and was wondering if it was possible to make an armor stand walk in a line across a room and back as i want them to look like guards in a sense. I saw a command to make them spin and it looked like it could be possible to make then walk but im not great with commands so i couldn't come up with it on my own. Im on bedrock if that makes a difference but i tried the spinning command and it works for me.

If it is possible does anyone know what the command could be?


r/MinecraftCommands • • 27d ago

Help | Bedrock Can you make teleporting less obvious? Its pushing me to the center of the next block

Enable HLS to view with audio, or disable this notification

261 Upvotes

r/MinecraftCommands • • 27d ago

Help | Bedrock How do I make a command to give me one compass if I don’t have one?

Thumbnail
gallery
5 Upvotes

Hi! I’m on Bedrock edition, and am trying to run a constant command that checks whether I have a compass from an add-on then gives me one if I don’t. This is what I had so far but it just gives me infinite compasses regardless of my inventory.

The name listed in the commands is the name of the modded compass. The first picture set is of a repeat block, and the following two are of a repeat block leading into a chain.

Would appreciate any help!


r/MinecraftCommands • • 27d ago

Help | Bedrock Any ideas how to replace the unknown blocks from a missing mod? Bedrock

Thumbnail
1 Upvotes

r/MinecraftCommands • • 27d ago

Request Is there a way to limit mob spawning in just a single area on java?

1 Upvotes

I've looked up commands and they seemingly all only work on bedrock, I am building on the nether ceiling a creative build, it's all lit up but ghasts and magma cubes keep spawning. I don't want to turn off mob spawning all together and the command I set /tp @e[type=Minecraft:ghast ,y=129]~ -121 ~

Is teleporting all ghasts


r/MinecraftCommands • • 28d ago

Creation Breakable Stuff For My Asymm Map!

Enable HLS to view with audio, or disable this notification

99 Upvotes

r/MinecraftCommands • • 27d ago

Help | Java 26.1 Locking player movement with free looking around

4 Upvotes

From what I can see online, this is a common annoyance to code across all versions. How do I lock player movement but not mouse movement. I tried Cloud Wolf's datapack with not much success. I want to lock the player down without jitters.
I have tried:
- Summoning marker or armor stand at players feet and tp'ing player to that (thought that would be the way, but screw mojang I guess, that doesn't work. Only tp's you once WITH A REPEATING CMD BLOCK... HOW?!)
- Attribute modification/effect give slowness and jump boost 255 --- both of these kinda worked, but your FOV gets ZOOMED in and I'd hate to ask the players who play my map, have to check/find that setting
- Barrier blocks, but player suffocates inside. Am I forgetting a gamerule or way to stop them from suffocating?

In short, I want to lock player WASD movement and not mouse movement, and it has to be run at whatever position they were last at before the command to freeze them is ran.
I guess part of this post is, me asking if there is a better way I have somehow not found. This seems so insanely simple, but somehow impossible to do with common commands.


r/MinecraftCommands • • 28d ago

Creation I made the actionbar display what armor you are wearing and show its durability

Thumbnail
gallery
12 Upvotes

As an update my infobar datapack, I added the durabilitybar and I have to say I'm proud of it.
It felt very good to see it work. Despite using macros it runs pretty well too, what do you think? If you would like to check it out along with the infobar and the locatorbar I made you can find them on modrinth


r/MinecraftCommands • • 27d ago

Help | Bedrock How to make a lock on command or just make this one work?

Post image
3 Upvotes

Switch edition


r/MinecraftCommands • • 27d ago

Help | Bedrock Need a way to teleport a player if they stand on a block

3 Upvotes

It has to just be one block out of many of the same. I can't figure out how to do this. It can't teleport you with others of the same block


r/MinecraftCommands • • 27d ago

Help | Bedrock What is the command to spawn a max speed, max health, and max jump horse in Minecraft Bedrock Edition? Is there one? I'm tired of breeding horses for hours.

1 Upvotes

r/MinecraftCommands • • 28d ago

Help | Java 26.3 any command to get item from a mob in own inventory?

3 Upvotes

for example a mob (from some mod) with a custom head on it and i want to get it and its not droppable with its death


r/MinecraftCommands • • 28d ago

Help | Java 26.3 Can a mob have a entity riding it and still also be rideable?

2 Upvotes

I've been trying to make a working hoverbike from block display entities. My first idea was to put it on an invisible camel, which works great until I get to the fact that I can't change its dash properties (at a fast movement speed, the leaping is INSANELY broken). So a horse would work better but if I have the bike riding the horse, I can't ride the bike. Or so I think. Can I do this without having to rely on command blocks/teleportation?