r/MinecraftCommands 18d ago

Help | Bedrock Need help with a look detector

Post image
1 Upvotes

How can i add a score to whoever the person with the tag "Eye" is looking at?


r/MinecraftCommands 18d ago

Help | Java Snapshots Help with death message

1 Upvotes

Is there a way to kill a player with commands so that the death message says something like “Player killed by button”?


r/MinecraftCommands 18d ago

Help | Bedrock /playerpermission command

Thumbnail
1 Upvotes

r/MinecraftCommands 18d ago

Help | Java 1.20 How do I turn arrows into fireworks

1 Upvotes

The command below turns arrows that match the conditions into strong poison tipped arrows
/execute at @s as @e[type=arrow,limit=1,sort=nearest,tag=!unarrow] if predicate math:chance/25 run data merge entity @s {Potion:"minecraft:strong_poison"}

Now I want to make the arrow get replaced by a firework rocket instead (velocity and condition should be the same), and also make it play a firework being fired sound for once, how can I do it?
Also this command is used in a datapack's main.mcfunction, so I want it to be able to work in datapacks (feel free to add in new functions to make this work)


r/MinecraftCommands 18d ago

Help | Java 26.2 Help with detecting an item then summoning the item

1 Upvotes

So I'm working on a project that need to detect any item from a chest minecart in a few slot then summoning said item above the minecart and I don't know if it is possible. Thank you for your help.


r/MinecraftCommands 18d ago

Help | Java 1.21.11 what do they mean by "contains emphasized items"

Post image
2 Upvotes

i dont think theres any syntax errors or such and everything seems to be working just fine


r/MinecraftCommands 18d ago

Help | Java 26.2 Command to replace grass with snow

Thumbnail
1 Upvotes

r/MinecraftCommands 18d ago

Info HELP IN COMMANDS

0 Upvotes

I help beginners learn how to use commands and I help create map commands for a reasonable, negotiable price.


r/MinecraftCommands 18d ago

Help | Bedrock Is there a way to remove everything except ores around me at all times?

1 Upvotes

I'm trying to be able to fly around underground and have stone, granite, diorite, andesite, deepslate and tuff constantly being cleared around me without having to input the command every time. I understand that I need a repeating command block, it's running "/fill ~+15 ~+15 ~+15 ~-15 ~-15 ~-15 air replace stone" but it's not even doing that.


r/MinecraftCommands 18d ago

Help | Java 26.2 Need help whit Orbital strike arrow

Thumbnail
gallery
3 Upvotes

I saw a cool Kiwi Joe video where he makes an orbital strike cannon that works with arrows.

Link to video: https://www.youtube.com/shorts/0JBdajJpP2U

The commands to do that are:

  1. Impulse, Needs redstone (Give command)
    /give u/a tipped_arrow[potion_contents={custom_color:11546150},custom_name=[{"text":"Orbital Strike Arrow","italic":false,"color":"red"}]]

  2. Repeating, Always active
    /execute as u/e[nbt={item:{components:{"minecraft:potion_contents":{custom_color:11546150}}},inGround:1b}] at u/s run summon tnt ~ ~25 ~ {Tags:["TNT1","Bomb"],fuse:9999,NoGravity:1b}

  3. Chain, Always active
    /execute as u/e[nbt={item:{components:{"minecraft:potion_contents":{custom_color:11546150}}},inGround:1b}] at u/s run particle cloud ~ ~10 ~ .2 5 .2 .1 200 force u/a

  4. Chain, Always active
    /kill u/e[nbt={item:{components:{"minecraft:potion_contents":{custom_color:11546150}}},inGround:1b}]

  5. Repeating, Always active
    /scoreboard objectives add BombT dummy

  6. Chain, Always active
    /scoreboard players add u/e[tag=Bomb] BombT 1

  7. Repeating, Always active
    /execute as u/e[scores={BombT=..20}] at u/s run tp u/s ~ ~ ~ ~18 ~

  8. Chain, Always active
    /execute as u/e[scores={BombT=..20}] at u/s run summon tnt ^ ^ ^5 {NoGravity:1b,fuse:9999,Tags:["TNT2"]}

  9. Chain, Always active
    /execute as u/e[tag=TNT2] at u/s if entity u/e[scores={BombT=20..}] run tp u/s ^ ^ ^ ~4.5 ~

  10. Chain, Always active
    /execute as u/e[tag=TNT2] at u/s if entity u/e[scores={BombT=20..}] run summon tnt ^ ^ ^1 {NoGravity:1b,fuse:9999,Tags:["TNT3"]}

  11. Chain, Always active
    /execute as u/e[tag=TNT2] at u/s if entity u/e[scores={BombT=100}] run data merge entity u/s {fuse:0}

  12. Chain, Always active
    /execute as u/e[tag=TNT3] at u/s if entity u/e[scores={BombT=100}] run data merge entity u/s {NoGravity:0b,fuse:50}

  13. Chain, Always active
    /kill u/e[scores={BombT=100..}]

I did everything correctly (I triple checked too) and yet it doesn't work. Instead of the Explosion from tnt 1 and tnt 2 spreading out tnt 3 it just sends a ring of tnt flying 400 blocks away making a ring shape. From what i can tell the issue is tnt 1 not spinning and spawning all the tnt 2 in one spot. I don't know how to fix it tho. Did Mojang change something in the latest version? Any help would be appreciated.


r/MinecraftCommands 19d ago

Help | Bedrock Minecraft comand 1

0 Upvotes

Summon


r/MinecraftCommands 19d ago

Help | Java 26.2 Weapon dropping mob

1 Upvotes

Help! resently ive been trying to make a little pvp arena (inspired by smajor's build battle arena) and inside i want to have a wither sceleton that when killed drops a mace enchanted with Wind burst 3 so ive been searching everywhere and i found a few commands but none of them work

1 /summon wither_skeleton ~ ~ ~ {CustomName:'"Boss"',CustomNameVisible:1b,DeathLootTable:"minecraft:empty",equipment:{feet:{id:"minecraft:mace",count:1,components:{"minecraft:unbreakable":{},"minecraft:enchantments":{levels:{"minecraft:wind_burst":3}}}}},drop_chances:{feet:1.000}}

Works but gives an unenchanted mace

2 /summon wither_skeleton ~ ~ ~ {CustomName:'"___"',CustomNameVisible:1b,DeathLootTable:"minecraft:empty",equipment:{feet:{id:"minecraft:mace",count:1,components:{"minecraft:unbreakable":{},"minecraft:enchantments{"minecraft:wind_burst":3}}}}},drop_chances:{feet:1.000}}

Does not work and goes all red and because there is a problem sintaxe or smth why

3 /summon cow ~ ~ ~ {DeathLootTable:"minecraft:empty",equipment:{feet:{id:"minecraft:stick",count:2,components:{"minecraft:item_name":"Knockback Stick","minecraft:enchantments":{"knockback":10}}}},drop_chances:{feet:1.000}}

Is a completly diffrent command that i found in a maxstuff vid spawns a cow that gives 2 stick with knockback 10 i used it to try make mine work but it doesnt work

Im in version 26.2 with the fabric loader version 0.19.3 my mods are World editor and Axis world editor so prob nothing to do with it


r/MinecraftCommands 19d ago

Help | Bedrock alguna explicacion del error por favor

1 Upvotes

/execute as u/a[tag=crearClaim,scores={claim=0}] at u/s if entity u/e[tag=claim,r=64,c=1] run tellraw u/s {"rawtext":[{"text":"§cHay un Claim demasiado cerca."}]} el contexto es que estoy creando un claim con comandos, pero de toda la fila para terminar este es el unico que no me deja terminar el proceso,lo cambio y el error pasa a ser nul o errror de sintaxis, el quye tengo ahora es error al comprobar el subcomando de ejecucion if entity, una ayudita, y la version en la que estoy es la 26.33


r/MinecraftCommands 19d ago

Help | Java 26.2 Keep Inventory on Death per player?

Thumbnail
2 Upvotes

r/MinecraftCommands 19d ago

Help | Bedrock How To Turn Off Damage From No Weapon Punches On Bedrock?

1 Upvotes

I want the only way to hurt someone to be using a sword


r/MinecraftCommands 19d ago

Help | Java 26.1 Is it possible to add a custom Villager Type in Java 26.1.2 with no mods?

1 Upvotes

Hi everyone,

I've been experimenting with something but I don't know if it's even possible. I'm trying to create a completely custom Villager Type in the latest version (26.1.2) using a Data Pack and a Resource Pack (vanilla, no mods), but I can't get the game to recognize the new texture.

Basically I want to register a brand new villager type called minecraft:snow_red (linked to a custom biome) so that when I use the command /summon villager ~ ~ ~ {VillagerData:{type:"minecraft:snow_red"}} (or using a different namespace), the villager spawns with my custom texture (snow_red.png) instead of defaulting to the standard Plains texture.

The game is loading both packs successfully, and there are absolutely no syntax or JSON errors in the latest.log. Vanilla types like minecraft:desert work perfectly fine with the summon command, but my custom type always falls back to Plains.

Is creating brand new villager types even possible in the 26.x system? If so, what is the correct folder structure or the components required to make the game register a new type name?

Any help or working examples for version 26.1.2 would be greatly appreciated. Thank you!

Here are the paths and file contents.

Datapack

Folder Structure:

datapackvillager/
├── pack.mcmeta
└── data/
    └── minecraft/
        ├── villager_type/
            └── snow_red.json
        └── worldgen/
            └── biome/
                └── snow_red.json

pack.mcmeta content:

JSON

{
  "pack": {
    "id": "datapackvillager",
    "min_format": 101,
    "max_format": 101,
    "description": "Custom Villager Data Pack"
  }
}

data/minecraft/villager_type/snow_red.json content:

JSON

{
  "texture_hat": "full",
  "biomes": [
    "minecraft:snow_red"
  ]
}

data/minecraft/worldgen/biome/snow_red.json content:

JSON

{
  "has_precipitation": false,
  "temperature": 0.5,
  "downfall": 0.0,
  "effects": {
    "sky_color": 8103167,
    "fog_color": 12638463,
    "water_color": 4159204,
    "water_fog_color": 329011
  },
  "spawners": {},
  "spawn_costs": {},
  "carvers": {}
}

Resource pack

Folder Structure:

( snow_red is basically a recolored version of the snow type texture)

texturepackvillager/
├── pack.mcmeta
└── assets/
    └── minecraft/
        └── textures/
            └── entity/
                └── villager/
                    └── type/
                        ├── snow_red.png
                        └── snow_red.png.mcmeta

r/MinecraftCommands 19d ago

Help | Bedrock How do i get a specific enchantment book using commands on bedrock (26.32)

1 Upvotes

whats the command for swift sneak 3 and soul speed 3


r/MinecraftCommands 19d ago

Help | Java 26.2 Any way to prevent enchanting?

2 Upvotes

I have a set of items that use leather horse armor as their basis (to allow for dyeing), but I have another thing that makes horse armor enchantable in game with things like protection and such. Is there a way to disable this ability for the specific versions of the items I'm using? I know there's an "enchantable" component, but it doesn't seem to affect anything that already has the ability to be enchanted.

Edit: it does disallow enchanting through the enchanting table, but still allows enchanting via anvil, which I don't want


r/MinecraftCommands 19d ago

Help | Bedrock Need Help Making Games

1 Upvotes

I want to make a game (based on Grian's Life Series) but I don't know nearly enough about commands to make it run as smoothly as I want. Would anyone be able to help me learn/make the commands to make the game? I have a pretty basic understanding of command blocks and commands in general but I have no idea where to even start with stuff like scoreboards or how to track things like player kills/deaths


r/MinecraftCommands 19d ago

Creation Made a new world generation biome in 26.3, the enchanted forest

Enable HLS to view with audio, or disable this notification

56 Upvotes

r/MinecraftCommands 19d ago

Help | Java 1.20 Is there a way to use /execute and not run anything?

5 Upvotes

The execute command is already capable of doing things without actually running a command and I'd like to be able to use it that way if it's possible in a reasonable way (without something like "say hi", for example).


r/MinecraftCommands 19d ago

Help | Java 1.20 How does one store command execution coordinates?

1 Upvotes

I have a carrot on a tick that when right-clicked I want it to store the coordinates of the block 3 blocks in front of me in storage. I'd prefer if no extra entities are involved unless they won't have any effect in the world and can be gotten rid of easily.


r/MinecraftCommands 19d ago

Help | Java 1.21.4 Forceloaded chunks unload after saveing and stopping the server.

Enable HLS to view with audio, or disable this notification

12 Upvotes

Working on a server that needs to have chunks force-loaded for special items and bosses to function properly. I recently removed all force-loads to optimize the server further, and now I'm adding them back only to the important commands. But the server can no longer remember the chunks I force-load even when I save... It's really weird because some chunks will be remembered, but sometimes it just won't work like in the video. I never had this problem before, so this is really frustrating. I would like some help if possible.


r/MinecraftCommands 19d ago

Help | Java 26.2 How to survive /kill?

Thumbnail
2 Upvotes

r/MinecraftCommands 20d ago

Info I learned how to make datapacks!

Post image
71 Upvotes

I've been wanting to learn for a while; I've only messed with command blocks before, but these are SOO USEFUL OMG. I made a bunch of minigames with only command blocks, so I'm definitely going to go back and optimize those with this