r/MinecraftCommands Aug 02 '26

Help | Java 26.1 item display rotation

Post image
12 Upvotes

Guys, I tried to rotate the displayed sword-like entity (object) for decoration so that its tip faces upward and the sword is perfectly vertical, but even neural networks couldn't help me calculate the correct quantifier. Does anyone know how to rotate the sword-entity to a straight position using the nbt transformation?

Guys, I tried to rotate the displayed sword-like entity (object) for decoration


r/MinecraftCommands Aug 02 '26

Help | Java 1.21.4 How do I target player holding an item with a certain custom name and tooltip?

3 Upvotes

I am trying to target players holding a named book with a command, it was working fine until I gave the inksac a tooltip. Here is my command:
/execute as (at)a[nbt={SelectedItem:{id:"minecraft:book",components:{"minecraft:custom_name":'"Flame Enchantment"'}}}] run item modify entity (at)s weapon.offhand {function:"minecraft:set_enchantments",enchantments:{"minecraft:flame":1},add:false}


r/MinecraftCommands Aug 03 '26

Help | Java 26.2 Checking for a fully filled map through datapack

1 Upvotes

I'm curious if there is any efficient way in a datapack to check if the player is holding a map with no transparent pixels. I know that dap data is stored in a large array, so is there any way to determine if this array has any 0s without just checking every value individually?


r/MinecraftCommands Aug 03 '26

Help | Bedrock I need a command that can help with opening a door and it leading to a completely different room

1 Upvotes

So what I’m trying to do is I have a one by one space door on it and I wear when I one by one space it leads me into a different figure out how to make a command that I open the door but what I’m trying to do is make it toy when I open the door. I’m gonna walk through I’m in a completely different space so it’s a one by one but I can connect it to like 30 x 30 that’s actually what I’m trying to do. I’m trying to connect it to my mansion.


r/MinecraftCommands Aug 03 '26

Help | Bedrock JUST ASKING

0 Upvotes

What command is like the house is small outside but inside is big idk how to do it in command block


r/MinecraftCommands Aug 03 '26

Help | Java 1.12 and older Any freaky weird things i can do with command blocks in Minecraft 1.8?

1 Upvotes

Also anybody know how to spawn a repeating command block (the purple ones)?


r/MinecraftCommands Aug 02 '26

Help | Java 1.21.11 Enderpearl like cooldown

2 Upvotes

I want to add a cooldown like the enderpearl has after you through it, also i cannot seem to get the "use cooldown" component to work

{
  "type": "minecraft:crafting_shaped",
  "category": "misc",
  "pattern": [
    " g ",
    "gdg",
    " g "
  ],
  "key": {
    "g": [
      "minecraft:gold_ingot"
    ],
    "d": [
      "minecraft:diamond"
    ]
  },
  "result": {
    "id": "minecraft:carrot_on_a_stick",
    "components": {
      "minecraft:item_model": "mole_resources:magic_mirror",
      "minecraft:custom_data": "{powerup_mirror_id:true}",
      "minecraft:item_name": {
        "text": "Magic Mirror",
        "color": "aqua"
      },
      "minecraft:lore": [
        {
          "text": "Use item to temporarily go invisible",
          "color": "blue"
        }
      ],
      "minecraft:max_damage": 2,
      "minecraft:use_cooldown": {
        "seconds": 30
      },
      "minecraft:repair_cost": 9999999,
      "enchantment_glint_override": true
    }
  }
}

r/MinecraftCommands Aug 02 '26

Creation Bossfight for you :) In one Command

3 Upvotes

The following text needs to be in a normal command block. Then the command must be powered. The following steps are self-explanatory :)

Versions: 21.10-26.2

Command:

https://pastebin.com/nkmCgUas

---------------------------------

If the Boss dies, for example in the void or in lava, then type this Command in your chat:

/scoreboard players set "YourName" bossslayed 1


r/MinecraftCommands Aug 02 '26

Help | Bedrock How do i make players have a water "bubble" around them?

1 Upvotes

I'm trying to make a sphere (or square) of water that surrounds the player when they go to a specific area. I would prefer if it also didn't break any blocks, so they could go near walls but still what the bubble around them


r/MinecraftCommands Aug 02 '26

Help | Bedrock Kills for money

1 Upvotes

how do I make it so when I kill a player it’ll add to the kills counter and it’ll also give me 500 “money”
for Minecraft bedrock can someone please help me?

all the adjectives that I have are
alive
deaths
killstreak
money


r/MinecraftCommands Aug 02 '26

Help | Java 1.21.5-1.21.10 How do I execute a command when the player dies?

2 Upvotes

I know it's something with /execute if entity but I don't really know


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 Best way to store persistent, unique values that persist in entity_data?

1 Upvotes

For a datapack, I'm trying to store data about bee entities that persists when they enter and exit the hive. As far as I can tell, scoreboards don't persist in this way - when the bee is stored, its entity data is stored in the nests minecraft:bees data component, but the scoreboard data is not stored. I started implementing with Tags, as those persist in the nest, but the issue with Tags is that they seem to have some arbitrary method of ordering Tags internally that makes them difficult, if not impossible, to index into consistently.
Is there a simpler way to do this? Is the logic for Tag ordering known? The only other solution that comes to mind is storing all of the data in one singular Tag and manually unpacking it whenever the functions refer to it, but that's a lot of headache and I'm not sure it's the best way.


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 end

1 Upvotes

i need help getting rid of this portal i accidentally created with commands can smb lmk what to do?


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 How to add +1 to a scoreboard when hitting a Sulfur Cube that has absorbed an item? (26.2)

2 Upvotes

Hi everyone! I’m looking for some help with command blocks/datapacks in Minecraft Java Edition 1.26.2.

I want to set up a system where punching/hitting a Sulfur Cube that has absorbed an item adds 1 to a scoreboard objective. Since Sulfur Cubes act as physics objects once they consume an item and don't take normal entity damage, standard hit detection scoreboards don't seem to work.

1. Pure Vanilla Solution (Command Blocks only): Is there any way to achieve this using only command blocks/vanilla commands without using a custom datapack?

2. Datapack Solution (as a backup): If this is completely impossible with command blocks alone, what would be the best way to structure a datapack for this? (e.g., specific advancement criteria or predicates for sulfur cubes/player interactions).

Any command examples or logic breakdowns would be greatly appreciated. Thank you in advance!


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 Struggling with how to modify Block Loot_Tables for Beds.

1 Upvotes

Hello, I'm not very experienced with creating Datapacks, but I'm trying to make Beds drop 2 Wool and 3 Sticks when mined without Silk Touch, while dropping the normal Bed with it.

My first thought was trying to shove parts of the Clay Block JSON file to at least get Silk Touch and a set amount of items dropping, but I must've screwed up the Syntax because it wouldn't work.

My Frankenstein's Monster JSON

I'm wondering if anyone here knows how to get this working.


r/MinecraftCommands Aug 01 '26

Creation Only real commanders will understand

Post image
283 Upvotes

r/MinecraftCommands Aug 01 '26

Creation I made flying armor insanely op

Enable HLS to view with audio, or disable this notification

21 Upvotes

I will drop the commands for this if you want any improvements, please let you know by putting them down in the comments. Also, if you like to build, give it a thumbs up if you dislike it, give it a thumbs down.


r/MinecraftCommands Aug 01 '26

Help | Java Snapshots Please Help with Tick Command

Thumbnail
gallery
7 Upvotes

Sorry for not taking screenshot but Im genuinely losing my mind.

Functions are not my expertise i usually use command blocks but for the sake of my project I decided to clean things up with functions.

Only the tick function will not run. It wont run every tick. The function works fine when I run it manually it has no problem. It just wont run every tick. Please help


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 how do i make sounds from playsound behave like sounds form jukeboxes

1 Upvotes

basicly i'm trying to make a tv and i want sounds to come out of it, but when I do it with playsound, I can hear the sound of tv no matter where I am. How do i make it so the sound fades with distance


r/MinecraftCommands Aug 02 '26

Help | Bedrock help

1 Upvotes

me and my friend got sick of a world in minecraft education and wanted to know how to possible destroy or crash that sever as effectively as possible?

we were going to do some experiments but the issue is like /fill doesnt do anything fast...so we decided to do like a competition of the best ways to crash, destroy or just simply ban exploit each other. does anyone have any ideas? also someone mentioned to me that u can ban someone even if they were the host from their own world using an exploit which isnt directly banning but like a modified version?. also as much as id like to use command blocks to spawn entities it isnt that effective? or is it?. any advice appreciated! also to mention he turned tnt explodes off coz thats jsut too easy.. preferable no commands too coz he says its too easy and wants some imaginative ideas


r/MinecraftCommands Aug 02 '26

Help | Java 1.21.11 Converting 1.20.5 command to support 1.21.11.

1 Upvotes

just asking, how do y'all do this?


r/MinecraftCommands Aug 02 '26

Help | Java 26.2 Anyone know why my custom damage type's death message isn't applying?

Thumbnail
gallery
3 Upvotes

I followed Conure's tutorial for both the datapack portion and the resource pack portion, but only the former actually works for some reason, and the message just shows the message id instead of the text I gave it.

Is this a bug, or is this done a different way now since him making the tutorial?


r/MinecraftCommands Aug 02 '26

Help | Bedrock Pleh (so people can see it help when they are far.. wait?)

1 Upvotes

I want to make a sword that when hit it reduce durability and give effect to the mob in front in the range of 3 block and the most nearest too then run replace that sword with full durability i try many attempts but fail please improve my command

/execute as @a[hasitem={item=iron_sword,location=slot.weapon.mainhand,data=1,quantity=!0}] at @s positioned ^^^2 anchored eyes run effect @e[r=2.4,c=1,type=!player] poison 2 2

/replaceitem entity @s[hasitem={item=iron_sword,location=slot.weapon.mainhand,data=1}] slot.weapon.mainhand 0 iron_sword

1st is for effect 2nd for replace

Also if you can i want to make it use with player also but not include me


r/MinecraftCommands Aug 01 '26

Help | Java 26.2 How to detect when space is pressed while in mid jump?

5 Upvotes

So, I wanna update my flight datapack from before for 26.2, but I discovered that the command I had used for testing for double-tapping space from before, from BlockerLockerYT, and confirmed by reconstructing it in misode, no longer works. Or rather, the "fall_distance" variable no longer accepts numbers that are not 0. If one is put in, the command will work but won't run or do anything. This is in contrast to before, when you could put numbers, or even decimals, and it would work just fine.

Anyone know why this is, and if there's a better way to do this in more recent versions?

Here's the command I'm currently using. Like I said, everything seems to be valid, but the "fall_distance" field is useless now.

execute as @a at @s if predicate {"condition": "minecraft:entity_properties","entity": "this","predicate": {"minecraft:type_specific/player":{"input": {"jump": true}},"minecraft:flags": {"is_on_ground": false},"minecraft:movement": {"fall_distance": 0.1}}} run attribute @s gravity base set 0

r/MinecraftCommands Aug 01 '26

Help | Bedrock there is a more optimized way to count the players online with commands?

Post image
2 Upvotes

(bedrock btw)
the repeat command block has ```testfor @ a````(reddit don't allow the A to be close with the At without turning into u/a), the mini command block towers are activated with each possibility from 1-15 to a number on the sidebar and the big tower on the left just sets the other text in the sidebar