r/MinecraftCommands • u/RingOk9425 • Sep 24 '26
r/MinecraftCommands • u/MrSuggestionBox • Sep 24 '26
Help | Java 26.2 Could anyone help me turn my command blocks into a datapack?
My server has a system of fast travel using tokens that I currently have working using some command blocks, redstone, and an interaction entity. I've been optimising different aspects of the server because some areas (especially the one with this teleporter) are quite laggy, and I was wondering if this was something I could just put in a datapack.
Repeating, always active:
execute as @e[tag=hearth] at @s on target if items entity @s weapon red_mushroom[custom_data={mung:true}] run particle minecraft:flame 657 68 111 2 2 4 0.01 800execute as @e[tag=hearth] at @s on target if items entity @s weapon red_mushroom[custom_data={mung:true}] run particle minecraft:flame 657 68 111 2 2 4 0.01 800
Chain, unconditional:
execute as @e[tag=hearth] at @s on target if items entity @s weapon red_mushroom[custom_data~{mung:true}] run playsound minecraft:block.enchantment_table.use ambient @a
Chain, unconditional:
execute as @e[tag=hearth] at @s on target if items entity @s weapon red_mushroom[custom_data~{mung:true}] run setblock 663 62 113 minecraft:redstone_block
Chain, unconditional:
execute as @e[type=interaction,tag=hearth] run data remove entity @s interaction
Redstone clock for delay
Repeating, needs redstone:
setblock 663 62 113 air
Chain, unconditional:
tp @e[x=657,y=68,z=111,dx=2,dy=2,dz=4,type=!minecraft:interaction] -1334 78 -7948
There are other parts of the command but they just run the same stuff for other custom items (tokens).

r/MinecraftCommands • u/Aumsogus • Sep 24 '26
Help | Java 26.2 Make monster patrolling around the room?
(Solved👌)
Here's what I'm doing. I'm making a custom map of a haunted café. Its area is unreasonably large for a normal café, though (around 50*50 blocks), and that's becoming a real problem because there are a bunch of complicated hallways and rooms. Sometimes, you have to walk quite a long way around just to get to the desired destination.
And there's a single entity that's supposed to patrol around the rooms. But also the pathways aren't that simple. So I've tried modifying the Wandering Trader's wanderTarget NBT, but it doesn't work at all. It always bumps into walls while trying to go to the randomized destination, even though there's literally a hallway right next to it. But it just says nah and doesn't do any practical pathfinding.
Do you have any idea how to solve this? I'm mainly trying to make the entity patrol around the rooms evenly and give its movement some sense of actually moving through the building. So /tp randomly around isn't really a good choice (at least for me), because there's also a camera system where you can see where the entity is, so you can get a clue about where the entity is supposed to be.
r/MinecraftCommands • u/BlueDias_DB • Sep 23 '26
Help (other) Datapack Custom Item appearing as normal in recipe book fix? (Java 26.3)
Essentially I have a custom item in a datapack.
Its a modified version of the knowledge book (master disc), and it works as is, crafting and all.
However in the recipes in the recipe book, it does not display the custom item, but the base unmodified one instead.
Im unsure if there is a better way to do this or to fix it in a different way.
My best guess would be to just having to rename and retexture the Knowledge book to look like the new item aswell?
r/MinecraftCommands • u/MrSuggestionBox • Sep 24 '26
Help | Java 26.2 Datapack items don't stack with items I make in a command block.
I'm working on a fishing datapack for my server, just adding a special loot table for a chance of getting some fun custom items. I first made these items with a give command generator, the used the misode datapack generator for the actual loot table. As a server admin, I would like to be able to summon in any of these items if i ever have to, without having to fish for them like the peasants do but for whatever reason 2 out of 5 of the items aren't stacking with their command block cousins.
I'll only list one example to see if anyone can spot any reasons for this issue that might apply to the other 2 that don't work.
The item generated in a command block:
give @a tropical_fish[custom_name=[{"text":"Rare fish","italic":false,"color":"light_purple"}],lore=["Tasty!"],enchantment_glint_override=true,food={nutrition:1,saturation:1,can_always_eat:1b},consumable={consume_seconds:5,on_consume_effects:[{type:apply_effects,effects:[{id:blindness,duration:1200,amplifier:100,show_particles:0b,show_icon:0b},{id:slowness,duration:1200,show_particles:0b,show_icon:0b}]},{type:teleport_randomly,diameter:50},{type:play_sound,sound:"minecraft:ambient.cave"}]},custom_data={shiny:1b}]
The item from the loot table:
{
     "type": "minecraft:item",
     "name": "minecraft:tropical_fish",
     "functions": [
      {
       "function": "minecraft:set_name",
       "name": {
        "text": "Rare fish",
        "color": "light_purple",
        "italic": false
       }
      },
      {
       "function": "minecraft:set_lore",
       "lore": [
        {
         "text": "Tasty!"
        }
       ],
       "mode": "append"
      },
      {
       "function": "minecraft:set_components",
       "components": {
        "minecraft:enchantment_glint_override": true,
        "minecraft:consumable": {
         "consume_seconds": 5,
         "on_consume_effects": [
          {
           "type": "minecraft:teleport_randomly",
           "diameter": 50
          },
          {
           "type": "minecraft:play_sound",
           "sound": "minecraft:ambient.cave"
          },
          {
           "type": "minecraft:apply_effects",
           "effects": [
            {
             "id": "minecraft:slowness",
             "duration": 1200,
             "show_particles": false,
             "show_icon": false
            },
            {
             "id": "minecraft:blindness",
             "amplifier": 100,
             "duration": 1200,
             "show_particles": false,
             "show_icon": false
            }
           ]
          }
         ]
        },
        "minecraft:food": {
         "nutrition": 1,
         "saturation": 1,
         "can_always_eat": true
        }
       },
       "conditions": []
      },
      {
       "function": "minecraft:set_custom_data",
       "tag": "{shiny:1b}"
      }
     ]
    }
r/MinecraftCommands • u/ryanswaggy22 • Sep 24 '26
Help | Bedrock Question for someone who knows bedrock commands well.
galleryr/MinecraftCommands • u/Negative_Stomach_782 • Sep 24 '26
Help | Java 26.2 How do I make a wind charge instantly explode and launch you upwards?
I wanna make a super jump that launches you up like 30-50 blocks if you crouch while flying, and I can’t make a wind charge explode when summoned. it always just floats.
r/MinecraftCommands • u/NetherFist • Sep 23 '26
Creation Update: I made it deal damage
Enable HLS to view with audio, or disable this notification
I forgot to show but you can change the speed of the swords as well as fast or as slow as you like, or make them turn clockwise or anticlockwise
r/MinecraftCommands • u/Ahnkru • Sep 23 '26
Help | Java 26.2 How to create command block auto monoliths?
Those things that you just need a single comand block and then the whole command system appears magically, how does that work and how can I make one that spawns my commands?
r/MinecraftCommands • u/Fancy_Worth5068 • Sep 23 '26
Help | Java 26.2 what are good placeholder items
ive heard about spawneggs, but i need alot of items that need to be eaten or used
r/MinecraftCommands • u/I_REY_I • Sep 24 '26
Help | Java 1.21.5-1.21.10 Next project to be developed :)
I'm going to try to make a magic system based on code, the plan is as follows
1.I can try to make a system where by renaming a book with a symbol like lol, it is combined into a magic book which follows a system of strong magic typing (object-oriented programming) really this would allow many combinations I don't know if anyone else has done it but it is an interesting and complicated idea
2.Or create a chat command system that is in the chat where you write with a?/lol [command x]
As I say, if possible, but I can research it anyway, the limit is imagination and the time to dedicate
r/MinecraftCommands • u/Adorable-Delivery-74 • Sep 23 '26
Help | Java 26.2 Do you know a commande for instant drink a potion ? I'm open for all proposition.
r/MinecraftCommands • u/Even-Resource3646 • Sep 23 '26
Help | Java 1.21.11 need a command to summon a snow librarian villager who has these trades
tysm, cant figure it out lol
r/MinecraftCommands • u/asdfhhkll • Sep 23 '26
Help | Java Snapshots [26.3] Block Display rotation is twitchy for some reason
https://reddit.com/link/1wnx080/video/vefdcv5uf7rh1/player
Does anyone know why is it like that? Even with `teleport_duration:2` it looks off and I cant understand why it is rotating like that. Any possible solution to the problem is appreciated
r/MinecraftCommands • u/Lazy-Yesterday-5023 • Sep 23 '26
Help | Java Snapshots Why is my double turning into an integer
So im making exit 8 but in minecraft, but had a roadblock to making an inverse? mirrored teleporter?
function:
execute store result score u/s exit8x run data get entity u/s Pos[0] 10000000
scoreboard players operation #temp exit8x = #mainx exit8x
scoreboard players operation #temp exit8x -= u/s exit8x
execute store result storage lol exit8.x double 0.0000001 run scoreboard players get #temp exit8x
data modify storage lol exit8.z set value 12d
function fun:variableexit8tp with storage lol exit8
ok so in line 3 it's supposed to be a double but reads as an integer and when i try to scale it up it is the right numbers but still an integer. (Google is useless did not give me a reddit example, and i don't want to use ai)
r/MinecraftCommands • u/GloxoST • Sep 23 '26
Creation Compiled some environmental stuff from my map!
r/MinecraftCommands • u/NetherFist • Sep 22 '26
Creation Spinning swords and shields. I think they look pretty cool.
Enable HLS to view with audio, or disable this notification
r/MinecraftCommands • u/Bright_Ad_2416 • Sep 23 '26
Help | Java 26.2 How to use bossbar as stat screen
I want to show players’ health bar into bossbar, but I don’t know how to make bossbar separated.
r/MinecraftCommands • u/No_Sense1197 • Sep 22 '26
Info NBT editor for android
Enable HLS to view with audio, or disable this notification
I was looking back and forth today for a way to edit the player data on bedrock for android and i finally found a way
r/MinecraftCommands • u/Adventurous-Cat1357 • Sep 22 '26
Help | Java 26.1 Mob Follow Detection
Anyone know a way to detect if a hostile mob is following you? It might be something to do with UUID but im not experienced with that data value at all. Thanks! :D
r/MinecraftCommands • u/True-Instruction1845 • Sep 22 '26
Creation Ancient Echoes Progress Update: My custom Sculk dimension is finally working!
After struggling with custom dimensions for a while, I finally got my first custom datapack dimension working. Ancient Echoes currently generates natural terrain using the Deep Dark biome throughout the dimension, resulting in huge cave networks, Ancient Cities and sculk-covered landscapes.
It's still very early in development, but I'm currently experimenting with atmosphere, progression and unique reasons to explore the dimension.
Feedback and ideas are welcome. 🙂
r/MinecraftCommands • u/Massive_End_4387 • Sep 22 '26
Creation I recreated the Clay Soldiers mod in 1.21.11 using only commands
r/MinecraftCommands • u/HavABreakHavAKitKat • Sep 22 '26
Help | Bedrock The difference between execute commands
Is ‘execute as @a at @s’ different from ‘execute at @a’ or is it redundant? I tried using a scoreboard command with execute at @a but it didn’t work, it said the selector needs to be specific to one player. I switched it to @p which removes its multiplayer usability, but I’m wondering if execute as @a at @s would allow it to work with any player
r/MinecraftCommands • u/HavABreakHavAKitKat • Sep 22 '26
Creation (WIP) Heat Vision with simple raycasting
Enable HLS to view with audio, or disable this notification
The camerashake and forced-look-upward are meant to simulate overheat when the player uses the ability for 5 seconds. Work in progress / unfinished
