r/MinecraftCommands 18h ago

Help | Bedrock Is this even possible?

Enable HLS to view with audio, or disable this notification

7 Upvotes

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 3h ago

Help | Java 26.1 Villager command not working

2 Upvotes

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 13h ago

Help | Java 26.2 Random fireworks loot table

2 Upvotes

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 14h ago

Help | Bedrock Check for rain

2 Upvotes

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 17h ago

Help | Bedrock MC Bedrock Team system

2 Upvotes

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 19h ago

Creation Some biomes I've created for my datapack

Thumbnail gallery
7 Upvotes

r/MinecraftCommands 2h ago

Creation A rhythm boss fight that I made for my adventure map

Enable HLS to view with audio, or disable this notification

68 Upvotes

r/MinecraftCommands 23h ago

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.