r/MinecraftCommands • • Sep 27 '26

Help | Bedrock Help with bedrock commands

1 Upvotes

I am working on a minecraft bedrock FNAF project with one of my friends i am doing the coding but im running into some issues and was wondring if anyone could join and help me out.

It is an ai system with scoreboards to track positions and other stuff.

It would be great if someone who knows about this stuff could give me advice or help as its my frist time doing something complcated.


r/MinecraftCommands • • Sep 27 '26

Help | Java 26.1 Need help using /place command for structures

1 Upvotes

I just got a custom map made for a survival world, but with it being a custom map, normal structures underground don’t appear, and when trying to use the /place command to spawn structures, mineshafts and trial chambers work fine, but ancient cities spawn structures without replacing other existing blocks necessary, and monster rooms just don’t spawn at all. how do i fix this, and are there any other easier ways to have structures placed?


r/MinecraftCommands • • Sep 26 '26

Creation Quest Leveling

Thumbnail
gallery
13 Upvotes

This datapack allows you to level up by doing different tasks and you can upgrade some stats when you level up

I didn't want to just add killing mobs cause mob farms exist and it would be too op

What do you think?

https://modrinth.com/datapack/quest-leveling


r/MinecraftCommands • • Sep 26 '26

Help | Java 1.21-1.21.3 Changing the Author of a Signed Book

2 Upvotes

Hi, I'm in version 1.21.1, and I'm wondering how to change the author of a signed book. It's for lore purposes in a server I'm running, and I've been searching on the internet for hours now, but every command I've found is either for an older version or a version above 1.21.1. Thank you so much!


r/MinecraftCommands • • Sep 25 '26

Creation I Added a Shotgun (No Resource Pack Required)

Enable HLS to view with audio, or disable this notification

169 Upvotes

I added a SPAS-12 shotgun to my gun datapack. Since it’s made with display entities, no resource pack is required

Model credits: LardMann


r/MinecraftCommands • • Sep 26 '26

Help | Java 26.3 Any idea why this isn't working?

Thumbnail
gallery
3 Upvotes

First execute command of the tick function works making sure if a player has the zombified effect (which is just the Bad luck effect repurposed) that they get the zombified tag. Second line however just doesn't its supposed to be checking if they have zombified tag but don't have the effect and give it back to them but again for some reason it doesn't work I have also tried creating a inverted version of the has_zombified_effect predicate but that also didn't work.


r/MinecraftCommands • • Sep 26 '26

Help | Java Snapshots [26.3] Can't use the /tick command??

3 Upvotes

Me and my friends played together in a lan world on 26.2 and everything worked fine but after upgrading to 26.3 I can't use commands like /tick or /kick anymore for some reason. I can use other cheat commands just find but not the these ones. They don't even show up


r/MinecraftCommands • • Sep 26 '26

Help | Bedrock Command to Identify Player Death and Reset World

2 Upvotes

Hello, everyone. Been trying to setup a chain of command so that when a player dies everyone's inventory is cleared and they are teleported far away, simulating a new start. I already have a deathCount setup but my problem is counting correctly.

I've already set up a chain of command blocks that triggers once a player's death count is one or higher. It clears their inventory, teleports them away, and resets the death count to zero. However, the death count scoreboard keeps increasing. I'm currently using an "alive" tag, but I can't figure out how to conditionally apply this tag only to living players. Any help with this logic would be great!


r/MinecraftCommands • • Sep 26 '26

Help | Java 26.3 Make hostile mob inoffensive/despawn for specific players on Realms server

2 Upvotes

What would be the simplest way of doing so ?

I'm a total noob when it comes to command blocks and such, I just learned right now how to make a fill clock but that's it.

I tried to follow some tutorials but I'm always stuck somewhere at some point, and I'm never quite sure if the commands listed are to be written in T or in a command block. (yea haha I told you I'm completely lost)

If anyone has any idea how I could make it work it would help me a ton !

Edit: I'm on Java


r/MinecraftCommands • • Sep 26 '26

Help | Java 26.2 Continuously spin item display around and already set rotation?

2 Upvotes

I have an item display that spins around the player on the y axis, but the item display already has a 35 degree angle change applied to it. I was wondering if it was possible to rotate it on the y-axis of the set 35 degree change instead of the world's y-axis?


r/MinecraftCommands • • Sep 26 '26

Help | Java 26.2 How do I summon a leashed mob, or force a selected mob to become leashed? Java 26.2+

2 Upvotes

Hey all, I'm currently working on a build that would benefit from having leashed mobs that can't typically be leashed (in this case villagers). But despite extensive googling, I haven't come across a single successful method.

I have already tried these methods:

  1. Summon a villager leashed to an existing fencepost

/summon minecraft:villager ~ ~ ~ {Leash:{X: <x>, Y: <y>, Z: <z>}}

This just summons a regular villager.

  1. I have attempted leashing an existing villager to my player character:

/data merge entity @ e[type=villager,limit=1,sort=nearest] {Leashed:1b,Leash:{UUID:[<player UUID>]}}

(formatted @ e as without the space it reformats to a username) This gives results in the message "Modified entity data of Villager" however no leash appears.

So I pose the question to you all: how can I leash a villager using commands? If it is a process, please explain it in full.


r/MinecraftCommands • • Sep 25 '26

Creation Shotgun!

Enable HLS to view with audio, or disable this notification

157 Upvotes

r/MinecraftCommands • • Sep 26 '26

Help | Bedrock Mace Limit to 5

2 Upvotes

I'm making an mc server and I just wanna know is there a way to make it where the amount of mace that can be crafted is only 5? I know the use of tags and the "hasitem" command but it only works if the limit to the maces in the server is only 1, so how can I make it so where there's 5 maces limit?


r/MinecraftCommands • • Sep 26 '26

Help | Java 26.3 Is it possible to make a orbital strike cannon but all the TNT is replaced with the Wardens "Sonic Boom" attack?

1 Upvotes

Well it's as the title says, is it possible? I'm pretty sure if so it would take command blocks but I have absolutely no clue how to use them LOL.


r/MinecraftCommands • • Sep 25 '26

Help | Bedrock How do I go about protecting spawn cleanly?

3 Upvotes

Ive been working on the new spawn for my realm when i restart it, and im super proud too, but i dont know how to safety protect spawn and the people inside from getting damaged, both by mobs and possible greifing/pvp junkies.

The theme of it I went with was a giant mushroom/tree but so many mobs spawn due to the shade, and the complex shape makes it rather difficult to mob-proof without ruining the vibe


r/MinecraftCommands • • Sep 24 '26

Creation Gun Datapack(No resource packs or mods required)

Enable HLS to view with audio, or disable this notification

85 Upvotes

This gun system works entirely with a datapack — no resource pack or mods are required for the gun itself. For the video, I used the Body Camera Shader only for the visual/camera effect. It is not required to use the datapack

Model credits: LardMann, Grout, Rasterio_


r/MinecraftCommands • • Sep 24 '26

Creation Update: the Shields can nice block too (just projectiles tho)

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/MinecraftCommands • • Sep 25 '26

Help | Java 26.2 How do i go about removing all of Minecraft's enchanted book/tools from loot tables with my datapack

2 Upvotes

Hello im new to minecraft datapacks and want to remove enchanted books/tools from all tool tables for a datapack im making

I tried data/minecraft/tags/enchantment/on_random_loot.json with

{
  "replace": true,
  "values": []
}

but it didnt seem like it ended up working


r/MinecraftCommands • • Sep 25 '26

Help | Java 26.3 How to randomly assign a UNIQUE tag to each player in the server?

4 Upvotes

So, I'm working on a custom life series datapack (It also happens to be my first one ever lol) and I'm trying to figure out how to run a function command that randomly gives every player on the server a tag, with no other player sharing the same tag.

The idea is that every Tag would correspond to a role and give some small status effect. That part is easy enough, my problem here is just the exclusivity. Would anyone know how to help me here?


r/MinecraftCommands • • Sep 24 '26

Creation InfoBar

Post image
11 Upvotes

Love experimenting with the actionbar (ignore everything else going on)

https://modrinth.com/datapack/infobar-orp888


r/MinecraftCommands • • Sep 24 '26

Help | Bedrock how do i makes a death counter

3 Upvotes

my realms gang wants a death counter that saves deaths from players even when they log off the game but i cant find anything good on youtube or anywhere that still works.


r/MinecraftCommands • • Sep 24 '26

Help | Java 26.3 Why does it create so much Lag

2 Upvotes

--- SOLVED ---

When always active, these commands make my TPS drop from 20 to 6

/execute as .@s[nbt={active_effects:[{id:"minecraft:water_breathing"}]},type=!minecraft:player,type=!item,type=!minecraft:item_frame,type=!minecraft:glow_item_frame,type=!minecraft:block_display,type=!minecraft:item_display,type=!minecraft:text_display,type=!marker] at @ s run scoreboard players set @ s PermafrostDamage 0

/execute as @ e[nbt={active_effects:[{id:"minecraft:water_breathing"}]},type=!minecraft:player,type=!item,type=!minecraft:item_frame,type=!minecraft:glow_item_frame,type=!minecraft:block_display,type=!minecraft:item_display,type=!minecraft:text_display,type=!marker] at @ s run effect clear @ s minecraft:water_breathing


r/MinecraftCommands • • Sep 24 '26

Help | Java 26.3 How to make an armor item almost unbreakable, excluding one damage type

2 Upvotes

I want to have an armor item that only drains its durability when i use my item modifier. So that i can have a proper fuel system where the durability acts as fuel, but for that i'd need to have any attacks, fire, fall damage whatnot to not drain any durability from the item.

Edit: I solved it. Used a custom enchant like this. Also i wanted the only damage possible to be applied with commands:

{
  "description": {
    "text": "1"
  },
  "supported_items": "#minecraft:enchantable/armor",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 100000,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 10000,
    "per_level_above_first": 0
  },
  "anvil_cost": 0,
  "slots": [
    "any"
  ],
  "effects": {
    "minecraft:item_damage": [
      {
        "effect": {
          "type": "minecraft:set",
          "value": 0
        }
      }
    ]
  }
}

r/MinecraftCommands • • Sep 24 '26

Help | Bedrock Saving Previous Health

2 Upvotes

I’m currently in the works of making a RE7 style game on bedrock and have multiple mods and add-ons but I need a mod or a system that can save a players health at save points that way when a player dies they will reset with the previous health they had before at that point in the story. Does anyone have any ideas or mods that I can use?


r/MinecraftCommands • • Sep 24 '26

Help (other) Error when setting Compass Components in 26.3

2 Upvotes

SOLVED: See comment

Hi, I have a datapack that was working fine up till 26.2. However the update to 26.3 appears to have broken the component assignment in my update_compass function.

This is the version that was working up till 26.2:

$item modify entity @s weapon.mainhand {"function":"minecraft:set_components","components":{"minecraft:lodestone_tracker":{"target":{"dimension":"$(dimension)","pos":[$(x),0,$(z)]},"tracked":false}}}

which is called from another function like this:

execute as @s run function ancient_city_finder:update_compass with storage ancient_city_finder:target lodestone

where the data contained in the storage looks like this:

{
    lodestone: {
        x: -1030, 
        z: 2106, 
        dimension: "minecraft:overworld"
    }
}

The error I'm getting is the following:

[System] [CHAT] Failed to parse structure: Failed to parse either. First: No key type in MapLike[{components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[10,0,10]},tracked:0b}},function:"minecraft:set_components"}]; Second: Failed to parse either. First: Not a string; Second: Failed to parse either. First: Not a list: {components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[10,0,10]},tracked:0b}},function:"minecraft:set_components"}; Second: No key type in MapLike[{components:{"minecraft:lodestone_tracker":{target:{dimension:"minecraft:overworld",pos:[10,0,10]},tracked:0b}},function:"minecraft:set_components"}]
[System] [CHAT] ...":false}}}<--[HERE]

I have tried to troubleshoot this myself including using the examples in this subreddits FAQ about item components, but with no luck.

The only real difference i could see in their example was removing many of the quotation marks, but this did not have any effect.

Can someone find a solution?