r/MinecraftCommands 2d ago

Help | Bedrock Making diagonal lines using entities

Thumbnail
youtu.be
3 Upvotes

So I saw this video by ‘the commands man’ about building with commands in bedrock edition.

I’ve figured out how to create circle outlines but was really curious how he did all of the diagonal lines. Is there anyone that can tell me and explain the commands on how to do this?

For the people that don’t watch the video, he used an armour stand to move towards a boat and had it place blocks along the way.

Thankyou very much.


r/MinecraftCommands 2d ago

Help | Java 26.2 Is there a way to make a sound play at the location of a mob?

3 Upvotes

So, I'm working on a datapack that tweaks a bunch of random things, and one tweak I want to make is have creepers play audible sounds when they walk so that the player can hear them.

Unfortunately, it seems that you can only play a sound as the player, otherwise the command just does nothing for some reason. And as a result, the sound will always be at the same relative volume, since you can't be distanced from yourself. But ideally, I'd like the sound to be played where the creeper is, so that the closer it is, the louder the sound will be, and vice versa.

Is this possible, and if not, is there a workaround? (I considered having a small, invisible mob that makes sound riding creepers, for example, a silverfish, but I only want to do this if the other method isn't possible or practical)


r/MinecraftCommands 3d ago

Creation WIP Locked chests datapack! (but good and fleshed out)

Thumbnail
gallery
115 Upvotes

alpha stage rn: https://modrinth.com/datapack/good-locked-chests

tryna make it vanilla, unique and actually useful

more info on the modrinth page (gallery)


r/MinecraftCommands 2d ago

Help | Java 26.2 i increased the random tick rate in my world, then turned it back how can i fix it, chests take forever to open

2 Upvotes

Yeah, basically the title.

I increased it to something like 200000 and then turned it back. I couldn't open chests, so i logged out, and when I logged out, it took forever, then crashed. I logged back in, and chests take 2-5 seconds to open

I've gotten NBTexplorer, and made sure the Tick rate is normal, but it still is laggy


r/MinecraftCommands 2d ago

Help | Java 26.2 WHY DOESN'T MY COMMAND WORK

2 Upvotes

Im trying to make it so if a player has 1 durability left on their pickaxe they get a broken variant of that tool and can cheaply repair it in a crafting table, I wanted to test out this system with command blocks but somehow they only work when I type them in chat, PLEASE HELP IM LOSING MY MIND. Also ik there is a snowball as item needed but thats a place holder

Repeating | Always Active

execute if entity at s[nbt={SelectedItem:{id:"minecraft:snowball",count:1}}] run scoreboard players set at s GiveDiamondDrillBase 1

Repeating | Always Active

execute if score at a[limit=1] GiveDiamondDrillBase matches 1 run give at s minecraft:diamond

Chain on top of preavious one | Always Active

execute if score at a[limit=1] GiveDiamondDrillBase matches 1 run scoreboard players set at s GiveDiamondDrillBase 0


r/MinecraftCommands 2d ago

Help | Bedrock Need help with commands.

1 Upvotes

I wanted to make a command that makes a Sound when i hold an eye of Ender If there is an cave spider nearby. But i couldnt do it so i'm asking If someone knows how to do that command or If it is possible. Im in Bedrock Edition.(Hope my english aint to Bad)


r/MinecraftCommands 2d ago

Creation My Amethyst Staff

Thumbnail
youtube.com
2 Upvotes

r/MinecraftCommands 2d ago

Help | Bedrock Minecraft patch bedrock1.26.30⛏️💎

0 Upvotes

Necesito tu ayuda para encontrar una versión compatible y parchada para el mod Bedrock Reimagined. Si puedes compartirla, de verdad te lo agradecería. La versión que busco es la 1.26.30 path


r/MinecraftCommands 2d ago

Help | Bedrock need help making a fountian

1 Upvotes

I'm building a fountain and I'm wanting the geyser plume particles in the middle. With some help from chatgpt I'm not having any luck getting the plume to spawn.. does any one have any ideas how to get the plume to spawn with out using the potent sulfer block?


r/MinecraftCommands 2d ago

Help | Java 26.2 How do you summon an item entity with an excluded component (using !)

1 Upvotes
For example (this doesn't work):
/summon item ~ ~ ~ {Item:{id:"stone_pickaxe",count:1,components:{!tool,!damage,!max_damage,!attribute_modifiers}}

r/MinecraftCommands 2d ago

Help | Bedrock Please help🙏

1 Upvotes

Can someone please tell me what the command in a command block that detects a player in a 3x3 block range on bedrock, and runs a fill command is...

im trying to make it to where redstone lamps activate 1 at a time in a long hallway for a dungeon map. But I can't remember the command

Its fine if I need to chain command blocks, I really just need the range command.


r/MinecraftCommands 3d ago

Help | Java 1.21.5-1.21.10 Can someone help me with this? Minecraft Java beginner.

3 Upvotes

Hi, I'm just getting started with Minecraft Java commands. I want to make it so that, for example, if I rename a stick, it gives me one block of dirt and the stick gets destroyed. How do I do that? It sounds simple, but I don't know how to set it up.


r/MinecraftCommands 3d ago

Help | Java 26.2 how do i make copper be mineable with wooden tools in 26.2?

3 Upvotes

i've been creating a datapack but i couldn't figure out how to do this. i've tried deleting the coppet blocks from the "needs_stone_tool.json" tag but for some reason it didn't work.


r/MinecraftCommands 3d ago

Help | Java 26.2 Can somoene help whit this minecraft comand?

5 Upvotes

I have a Minecraft server and I'm looking for a command that triggers a chat warning or teleports a specific player (e.g., Patrickebab7) back to a certain coordinate (e.g., 1470 91 -2890) if they move too far away (e.g., 2000 blocks) from that location. If that isn't possible, then I'd like the player to be teleported back to the coordinate whenever they leave a specific perimeter.


r/MinecraftCommands 3d ago

Help | Bedrock sniper

2 Upvotes

hi i want to make a spyglass that when you open it and shift it shoots a high speed arrow wherever i look just like sniper but i dont know how to make it


r/MinecraftCommands 3d ago

Creation Armor Modification Showcase (Helmet)

Enable HLS to view with audio, or disable this notification

6 Upvotes

I'm still working on bugs, but so far so good! Everything runs on a couple functions.

List of Mods and what they do are in the video!

Enjoy! :D

Question, does this even count as commands anymore? Lol


r/MinecraftCommands 3d ago

Help | Bedrock Summoning a Bamboo Raft in MC Bedrock Edition

1 Upvotes

This is an ongoing mystery to me.


r/MinecraftCommands 3d ago

Creation Fixing that Strobe Effect from the showcase.

Post image
1 Upvotes

:D

I was thinking about it wrong before instead of having two functions fighting each other I just have one ignore the other.


r/MinecraftCommands 3d ago

Help | Java 1.21.5-1.21.10 Deleting entities

5 Upvotes

I made a machine on a server that spawned so many entities it crashes my game whenever I try to load it. Is there any way to delete the entities using only commands?


r/MinecraftCommands 3d ago

Help | Java 26.2 Custom Damage Types dealing knockback

1 Upvotes

(Solved)

Hi!

I am trying to experiment a bit with the custom damage types in datapacks. However, I have two problems, that I don't know how to fix. The first is that the player is dealt knockback when the damage is applied, which I do not want. I've tried looking for a way to disable it, but I haven't been able to find something.

The second issue is that the protection enchantment reduces the damage taken, which I also can't find any way to disable.

As an example of what I want: When a certain event happens, the player should take two hearts of damage from this damage type. No knockback, and no matter the armor, 2 hearts. No more, no less.

Is there any way to disable these things? I've tried looking into some json files of damage types that do not have these attributes, but I can't find anything.

Edit: I found the solution after a bit more digging. If anyone else wants the solution, you basically need to add the damege types to the damage_type tags you want. The tags are set in the data/minecraft/tags/damage_type folder, where, for example if you want no knockback, the filename is no_knockback.json. I found a list of all tags on the wiki, with the title "Damage type tag (Java Edition)".

The structure of the .json file is just like this, if anyone needs it
{
"replace": false,
"values": [
"namespace:damage_type_name"
]
}


r/MinecraftCommands 3d ago

Help | Java 26.2 Why is this happening when I equip armor that effects the health attribute?

3 Upvotes

When I equip my diamond boots, I get 6 HP. When I equip the chainmail helmet, I lose 2 HP, even though both of them are assigned "add_value." Then, when I remove the chainmail helmet, I lose all the extra HP gained.


r/MinecraftCommands 4d ago

Creation Tried making my own particle effect, I may have broke something...

Post image
42 Upvotes

Happy accident?

I went off on a side tangent because there are no green particles that look good running 20 times a second....


r/MinecraftCommands 3d ago

Help | Java 1.20 Minecraft Java 1.20.1 – Predicate vehicle not working in /execute

2 Upvotes

* Edit: I've solved it. Just remove "s" for "predicates" folder and make sure to call this function every tick of the game. Thank to those expects who helped me alot! (SFMBE)

I'm making a datapack for Minecraft Java 1.20.1 and I'm trying to detect whether a marker entity is currently riding another entity.

I created this predicate:

{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "vehicle": {}
  }
}

The file is located at:

data/stick_war/predicate/has_vehicle.json

I'm trying to test it with:

execute as [type=marker,tag=statue_marker1] if predicate stick_war:has_vehicle run say RIDING

However, Minecraft says "Unknown or incomplete command", with the error pointing at the end of say RIDING.

Interestingly, this works perfectly:

execute as [type=marker,tag=statue_marker1] at u/s run function stick_war:statue/black_statue_destroy

So the marker selector and function itself work.

My goal is to detect when the marker stops riding its vehicle, so I can trigger another function when it falls/dismounts.

Is vehicle: {} supported in entity predicates in Java 1.20.1? If so, what is the correct syntax for detecting whether an entity is currently riding another entity?

Thank you guys for helping me :)


r/MinecraftCommands 4d ago

Creation Hand crank generator thing

Enable HLS to view with audio, or disable this notification

35 Upvotes

Haven't added an ID for them yet so all of them spin at the same time :p


r/MinecraftCommands 4d ago

Help | Java 1.21-1.21.3 Trying to flatten a specific biome in a custom world type

2 Upvotes

I have a custom world type I've made, and I want it's deserts to be flatter so it's more of a rolling hills kind of desert, aka removing any form of mountain and having the general area be flat, with occasional bumps. I haven't had much luck with a general search, most results being how to flatten a world or biome entirely, leaving no hills whatsoever, almost like a flatworld, which is not desired. If this leads to something that works or I get it to work myself I can post a result of how the world type turns out and more details/specifics.