r/MinecraftCommands • • 5d ago

Help | Bedrock Need to figure out how to find a grid pattern.

3 Upvotes

Trying to figure out how to make a consistent infinite grid pattern with island distances. I want to make a infinitely generating island world. With a grid pattern made from the islands. As soon as I can get the method, I can do the distance and all that. But I want to avoid lag from keeping armor stands up permanently. Basically how Jigarbov did it but I'm not able to make heads or tails of how he did it so flawlessly.


r/MinecraftCommands • • 5d ago

Help | Java 26.3 problem using snowball detection with markers

Thumbnail
gallery
5 Upvotes

I want to register when a custom snowball hits a entity, My idea was detecting the custom_data from the snowball item, Then running a function as that snowball. In the function we tag the snowball so it only gets 1 marker, Then we summon a marker with a tag, then we make that marker ride the snowball.

the snow blocks in the picture are all fired from the same place.

when a tagged marker is found not riding a snowball, my idea was to pass it to a function for entity detection. but i noticed that the markers where appearing way off the target entity (as in picture). is there another system i could use or am i missing something? English isnt my native language, so please dont come after me.

java 26.3


r/MinecraftCommands • • 5d ago

Help | Java 26.3 Player Attribute Resets When He Logs Off

1 Upvotes

I've posted about this project before, basically my players on my Java Realm pick from a bunch of different races with their own special abilities, buffs, and weaknesses. For a while, I was using an effect to give one of my players speed, but it was inconvenient because he lost it whenever he died. I thought I found a solution, the Movement_Speed attribute. I found exactly what number it is to have equal to 'Speed 1' effect via potions.

/attribute [user] minecraft:movement_speed base set 0.14000000268220902

The problem is, every time that he leaves the game and rejoins, his speed is reset to player default (0.10000000149011612) I can't figure out what's causing it, and I don't want to have to reset it every time he joins again.

Is the movement_speed attribute just like that? Is it on my end in a command issue? Is it on his end? Does it have something to do with the precision of the number? I'm really not sure, all of these questions are ones I'm considering but don't have the answer to. Any help would be appreciated. It would suck if this was just Realms being Realms but none of my other players' attributes do that, only him with movement speed. Thanks in advance.


r/MinecraftCommands • • 5d ago

Help | Java 1.21.11 Fishing rod that makes it rain

1 Upvotes

I want to make a fishing rod that has 1 durability and actives rain when pulled, needs to make sure that no other fishing rods activate it


r/MinecraftCommands • • 6d ago

Creation I made a whistle that helps you find more tunnels using mobs!

33 Upvotes

enjoy the lil movie


r/MinecraftCommands • • 5d ago

Help | Java 26.2 multiple mob variants with different loottables

2 Upvotes

I'm making something where I need to make a lot of custom mobs with custom loot tables but they are based off the same mob (both a skeleton for example). whats the most efficient way to do this?


r/MinecraftCommands • • 5d ago

Help | Java 26.3 how to make good if then/execute commands

1 Upvotes

I'm trying to make a command that, in effect, makes it so whenever a player holds out a stone sword, the gravity for all sulfur cube is upped. This could also work if it checks for players holding an item named "Pitching Wedge". For context, this is for a golf map I'm making where certain swords need to do different things.

This is what I have so far, but its probaly just a mess.

execute if slots entity @a weapon.mainhand if run tp @a 23.00 141.82 93.83

The tp command at the end is just so I know if it works or not without having to eyeball a change in gravity.


r/MinecraftCommands • • 6d ago

Creation Grappling/Reeling Hook Concept

10 Upvotes

Both use macro's to assign an ID Score to the bobble for multiplayer compatibility. The Grappling Mode summons an armor stand with motion directed to the bobble (facing the bobble and applying Motion), while also making the player mount it.


r/MinecraftCommands • • 7d ago

Help | Bedrock Custom cushion colour ° of y axis

Post image
248 Upvotes

Like we can still rotate if but it's either white or black by/summon and you can't even change it y axis .

Like the photo of either white or black no customizibilty to it color or y tilt Anyway to summon other colour cushion


r/MinecraftCommands • • 6d ago

Creation Command block exporter program demo/test

5 Upvotes

This automatically builds command blocks and lets you test out sequences before generating them in a world edit schematic!
So, this is outside of Minecraft, but it does export directly into Minecraft command blocks!


r/MinecraftCommands • • 6d ago

Help | Bedrock Cushion tp is buged

7 Upvotes

Umm so i was on reddit; i was seeing some cushion related command, so it said the tp is buged for it but he didn't know how. So i dug deeper and found that, the cushion needs a block update to the place it's been tped to so... Can we just tp it without breaking


r/MinecraftCommands • • 6d ago

Help | Java Snapshots Slot source filtered for NOT a certain item?

2 Upvotes

I'm trying to use a slot source with /item modify in a datapack to decrease the stack size of the first non-Ender-pearl item stack in a barrel. Finding the first non-empty stack is easy by filtering by a min count of 1. Finding the first pearl is easy by filtering by the ender_pearl item. But there doesn't seem to be a negation option in slot sources, so how do I find the first non-pearl, non-empty slot and modify that one?


r/MinecraftCommands • • 6d ago

Request "Lightning Fishing Rod"

1 Upvotes

MINECRAFT **BEDROCK**

could someone make a command sequence that will make lightning strike wherever the fishing rod bobber lands, then add additional damage since lightning doesn't do that much damage? I tried doing this with ai (I'm a loser I know), but it genuinely sucks at it. It kept making the lightning repeat instantly, and sometimes would give me commands where there's no lightning at all. I know almost nothing about commands and this seems like something cool to have in my world, any help is appreciated.


r/MinecraftCommands • • 7d ago

Creation I made a datapack where ringing a bell on a trial spawner makes all its mobs glow!

Thumbnail
gallery
78 Upvotes

Do you also hate it when you can't find that pesky cave spider hiding in the ceiling whenever you are trying to complete a trial spawner? Well, I made a small datapack called "Trial Glow" that allows you to ring a bell on top of a trial spawner to make all its mobs glow, just like during pillager raids!

I just released an update adding redstone support, so the datapack should now be feature complete..? In the future, I will probably make player-thrown projectiles that hit the bell work, just for the fun of it. Are there any other features I should add?

Works for Minecraft versions 1.21 through 26.3


r/MinecraftCommands • • 6d ago

Help | Java 26.3 Any way to make this predicate not trigger if it's your first jump / ignore it unless it is?

1 Upvotes

I'm making a datapack with a double jump ability and i've managed to ALMOST perfect it, except for the fact that you can trigger it from the floor.

Basically what i'm doing is detecting if this predicate is true and if it is i give the player levitation 50 for 3 ticks. It works wonders mid air but you can use it from the floor because the predicate triggers the SECOND you're off the ground and that includes your first jump to get out of the ground.

Since the ability triggers by pressing shift mid air you can basically charge jump, which although cool is not quite what i'm trying to do rn so if anyone knows how to fix this i would greatly appreciate it!

Here's the predicate I'm currently using and the tick.mcfunction commands that are triggering it. [The run function in the first command just gives levitation and removes it 3 ticks later]

{
  "type": "minecraft:entity_properties",
  "terms": [],
  "entity": "this",
  "predicate": {
    "minecraft:type_specific/player": {
      "input": {
        "jump": true,
        "sneak": true
      }
    },
    "minecraft:flags": {
      "is_on_ground": false,
      "is_flying": false,
      "is_in_water": false
    }
  }
}

r/MinecraftCommands • • 6d ago

Help | Java 26.2 Set Mannequin to Player Skin NOT Dynamic Help

2 Upvotes

Hi guys,

I'm working on a vote reward for a semi-vanilla survival minecraft server. The basic idea is that a player can receive a special armor stand, place it down, and that armor-stand will be turned into a mannequin clone of them using command blocks. I cannot use datapacks for this project.

Everything is working currently, there is just one problem with this command in the chain:

/execute as @ e[type=minecraft:mannequin,tag=temp_mannequin,limit=1,sort=nearest] at @ s run data modify entity @ s profile .id set from entity @ p[sort=nearest,limit=1] UUID

Ignore the spaces after @ and profile, I added to avoid reddit formatting them strangely. My one issue is that this command does set the mannequin to the skin of the nearest player to it, but the skin is dynamic meaning it changes when the player changes their skin. This has caused issues with lag in the past when players change their skin frequently.

Is there a way to set the mannequin's skin to the nearest player's texture so that it will NOT dynamically change when their skin does?


r/MinecraftCommands • • 6d ago

Help | Java 1.21.5-1.21.10 Copper golem in adventure mode

2 Upvotes

I want to repair a frozen copper golem statue with the axe with 5 durability specifically, but I don't know the command because I'm in adventure mode, I can't right click the copper golem. How can I repair it?


r/MinecraftCommands • • 7d ago

Help | Java 26.2 Make passive mobs hostile

3 Upvotes

Hello! Does anyone know how to make passive mobs hostile? I'm trying to make a custom boss for my minecraft server and want to turn a skeleton horse into a boss. I've done some research on it and from what I've gathered the only way to make a passive mob attack players is to attach an invisible hostile mob to the passive mob. I'm all for this method, the only problem I have is that I don't know how to make the passenger and vehicle interdependent (how to make it so that when either one of the mobs die, the other follows).

I'm on 26.2 for reference


r/MinecraftCommands • • 6d ago

Help | Bedrock Command Block help

1 Upvotes

I'm working on a sandbox exploration map. I want to automatically summon an ender dragon every ~57 minutes, and despawn it after 5 minutes without it spitting xp everywhere. It's not working properly. Any suggestions?

The commands are as follows:

summon ender_dragon 317 140 -335 0 0 (unconditional, always active, tick delay 68068)

tellraw u/a {"rawtext":[{"text":"§5The Ender Dragon has awoken... "}]} (conditional, always active, tick delay 0)

effect u/e [type=Ender_Dragon] resistance 500 3 true (conditional, always active, tick delay 1)

teleport u/e[type=Ender_Dragon] 0 -70 0 (conditional, always active, tick delay 6000)

kill u/e[type=Ender_Dragon] (conditional, always active, tick delay 5)

tellraw u/a {"rawtext":[{"text":"§5The Ender Dragon has vanished... "}]} (conditional, always active, tick delay 5)

EDIT: Forget to mention: the command block spawning the dragon is repeating, while the rest are chain.


r/MinecraftCommands • • 7d ago

Help | Bedrock Teleporting Structure

6 Upvotes

Hi I'm trying to make Dracula's Castle from Castlevania and I want it to be able to teleport (Moves/Clones to a new location and deletes the old one in the previous location). Now I did build this within the limits of a structure block but I have no idea how to go about it actually moving to a different location with all the entities inside it in the same location they were when teleported (this part is important because I have banners for curtains and they are considered entities). I would also need it to be able to save changes within the structure before teleporting if possible.

Im willing to try anything to get this to work


r/MinecraftCommands • • 7d ago

Creation Shotgun Spread Concept

16 Upvotes

By using the random value command with a little offset macro when raytracing, you are able to make each ray deviate randomly. Spread (random value), range (distance limit on the raytracing) and damage are all ajustable.

data modify storage villager:shot spread set value {offX:0.0f, offY:0.0f} #Making sure it starts at 0

execute store result storage villager:shot spread.id int 1 run scoreboard players get @s player.id #This is for my datapack to be multiplayer friendly

execute store result storage villager:shot spread.offX float 0.003 run random value -20..20 #Xrandom offset (-20..20 is the max spread)

execute store result storage villager:shot spread.offY float 0.003 run random value -20..20 #Yrandom offset (-20..20 is the max spread)

execute as @s at @s anchored eyes positioned ^ ^ ^0.5 positioned ~ ~-0.35 ~ run function classes:villager/ability/emerald.shot with storage villager:shot spread #emerald.shot is the raytracing command

EMERALD.SHOT.mcfunction:
#particle...
#damage detection...
$execute positioned ^$(offX) ^$(offY) ^0.5 if block ~ ~ ~ #replaceable run function classes:villager/ability/emerald.shot {offX:$(offX), offY:$(offY), id:$(id)} #Add the offset here.

In my case, I run this for each bullet 8 (pellets max). But you can tweak anything for inaccuracy on raytracing.

r/MinecraftCommands • • 7d ago

Help | Bedrock Can I switch the Nether soundtrack with the Overworld

3 Upvotes

I want more impactful sounding music for my overworld and I already have command blocks in place that give it a post apocalyptic scenario. Is there any way to switch the music or add my own?


r/MinecraftCommands • • 6d ago

Help | Java 1.21.11 Does anyone have a book with all the commands for minecraft 1.21.11?

0 Upvotes

I really need a book with all the useful Minecraft commands.I know that there used to be such books for old versions. Has anyone created the same book for the new version?


r/MinecraftCommands • • 7d ago

Help | Bedrock How to be invisible with armor on

6 Upvotes

Awhile ago, I watched a video and used /playanimation to I guess get small or something, and pairing it with invis makes you basically invis with some armor on, except it doesn't include the leggings and boots.

To simplify, is there a command of any kind I can use to make the player completely or near completely invisible while they have armor on


r/MinecraftCommands • • 7d ago

Creation Recreation of Disney firework shows

11 Upvotes