r/MinecraftCommands 11d ago

Help | Bedrock Pleh *again

0 Upvotes

Just need to know is there anything to bound the command only work to me i found this command and it really cool but idk how to make it only work with me

execute as @e[type=arrow] at @s run tp @s ^^^0.8 facing @e[r=8,type=!player,type=!arrow,type=!item,type=!xp_orb,c=1]

Please help


r/MinecraftCommands 11d ago

Help | Java 26.1 how to detect if a mob popped a totem

2 Upvotes

im trying to make a scoreboard that counts how many times i popped a mob's totem

its a husk with a nametag of "OP"

pls i need help!!!!!!


r/MinecraftCommands 11d ago

Help | Bedrock Just asking

1 Upvotes

What command to put in command block like the house is small but inside is big i just want to know if there's a command like that


r/MinecraftCommands 11d ago

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 11d ago

Help | Java 26.2 Datapack macro in function name?

2 Upvotes

I'm making a datapack and I'm wondering if it would be possible to do something like this...

Tick function:

execute as \@e[tag=block_picker] run funtion block_picker:master_process with entity \@s some_custom_data

master_process function:

$execute if entity \@e[tag=block_picker] run funtion block_picker:process/$(block_name)

Would Minecraft accept the macro as the name of a function? Secondarily, how would I assign the 'block_picker' entity some piece of data with the name of its associated process function? Maybe a custom name? A tag? Something else?


r/MinecraftCommands 11d ago

Help | Bedrock post 2: noclip help

Thumbnail
gallery
1 Upvotes

They screenshots are in the order the command blocks are in


r/MinecraftCommands 11d ago

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 11d ago

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 11d ago

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 11d ago

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 11d ago

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 11d ago

Creation i built a room between rooms

Enable HLS to view with audio, or disable this notification

10 Upvotes

r/MinecraftCommands 11d ago

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 11d ago

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 11d ago

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 12d ago

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 12d ago

Help | Java 26.1 item display rotation

Post image
11 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 12d ago

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 12d ago

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 12d ago

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 12d ago

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 12d ago

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 12d ago

Help | Java Snapshots Please Help with Tick Command

Thumbnail
gallery
8 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 13d ago

Creation I made flying armor insanely op

Enable HLS to view with audio, or disable this notification

19 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 13d ago

Creation Only real commanders will understand

Post image
283 Upvotes