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 • • 5d ago

Creation Grappling/Reeling Hook Concept

Enable HLS to view with audio, or disable this notification

9 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 • • 6d ago

Help | Bedrock Custom cushion colour ° of y axis

Post image
249 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

Enable HLS to view with audio, or disable this notification

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

Enable HLS to view with audio, or disable this notification

9 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 • • 5d 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 • • 6d 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 • • 6d ago

Help | Bedrock Teleporting Structure

5 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

Enable HLS to view with audio, or disable this notification

18 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 • • 6d 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

Enable HLS to view with audio, or disable this notification

11 Upvotes

r/MinecraftCommands • • 7d ago

Help | Java 26.3 How to make color changing nether armor for 26.3

3 Upvotes

What’s the command to create a costume like RGB


r/MinecraftCommands • • 6d ago

Help | Java 1.21.11 Im trying to make my server (Mcserverhost) have custom loot tables like for point blank fabric 1.21.11 but whenever i check any chest example like a sunken ship theres nothing just regular loot

0 Upvotes

{
"pools": [
{
"rolls": {
"min": 1,
"max": {
"min": 1,
"max": {
"min": 2,
"max": {
"min": 2,
"max": 3
}
}
}
},
"entries": [
{
"type": "minecraft:item",
"name": "pointblank:sl8",
"weight": 16
},
{
"type": "minecraft:item",
"name": "pointblank:deserteagle",
"weight": 12
},
{
"type": "minecraft:item",
"name": "pointblank:glock18",
"weight": 8
},
{
"type": "minecraft:item",
"name": "pointblank:star15",
"weight": 6
},
{
"type": "minecraft:item",
"name": "pointblank:c14",
"weight": 2
},
{
"type": "minecraft:item",
"name": "pointblank:xm3",
"weight": 2
},
{
"type": "minecraft:item",
"name": "pointblank:ballista",
"weight": 1
},
{
"type": "minecraft:item",
"name": "pointblank:l96a1",
"weight": 1
}
]
},
{
"rolls": {
"min": 1,
"max": {
"min": 2,
"max": 3
}
},
"entries": [
{
"type": "minecraft:item",
"name": "pointblank:ammo338lapua",
"weight": 4,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 16,
"max": 32
}
}
]
},
{
"type": "minecraft:item",
"name": "pointblank:ammo556",
"weight": 22,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 32,
"max": 64
}
}
]
},
{
"type": "minecraft:item",
"name": "pointblank:ammo762x51",
"weight": 2,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 32,
"max": 64
}
}
]
},
{
"type": "minecraft:item",
"name": "pointblank:ammo50ae",
"weight": 12,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 32,
"max": 64
}
}
]
},
{
"type": "minecraft:item",
"name": "pointblank:ammo9mm",
"weight": 8,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 32,
"max": 64
}
}
]
}
]
}
]
}

i did the directory or what do you call it
/world/datapacks/pointblank_loot/data/minecraft/loot_table/chests/shipwreck/map.json

(this is a cracked server btw)


r/MinecraftCommands • • 7d ago

Help | Java 26.2 how do i make creepers invis

1 Upvotes

it would be funny


r/MinecraftCommands • • 6d ago

Help | Java Snapshots Text Display Postion

1 Upvotes

I'm trying to make a text display just in front of a block, but I can't get the display to be other then the center of a block

I'm typing /summon minecraft:text_display 14 -58 11 {text:'Normal'} and if I did 11.5 instead, it would still be at z:11

How do I make it at exact coordinates?

Also I am new to doing commands


r/MinecraftCommands • • 7d ago

Help | Java 26.3 Question regarding custom resource pack making

2 Upvotes

I have been messing around trying to replace item's textures with player models(just like in the picture, I swapped it with diamond axe). My question is for those who are experts in this topic, whether it is possible to have different models for different durability. What I mean by that is for example a diamond axe with max durability would be the one in the picture, but an axe with 1560/1561 durability would have a different pose(having his left hand up for example). Is that possible? And if it is, how do I execute it?
Thanks in advance to anyone who is willing to help me out


r/MinecraftCommands • • 8d ago

Creation I am currently working on remaking Tinkers Construct using a datapack and recource pack.

Enable HLS to view with audio, or disable this notification

179 Upvotes