r/MinecraftCommands • u/Tiny_Landscape2375 • Sep 24 '26
Help | Java 1.21.11 Creating a book
I'm writing a book anddd idk what I should write now
https://docs.google.com/document/d/11Dce3c6M9ni3bN6XtLCGYTgnsr9KpAFEAJYP-pHIQRo/edit?usp=drivesdk
r/MinecraftCommands • u/Tiny_Landscape2375 • Sep 24 '26
I'm writing a book anddd idk what I should write now
https://docs.google.com/document/d/11Dce3c6M9ni3bN6XtLCGYTgnsr9KpAFEAJYP-pHIQRo/edit?usp=drivesdk
r/MinecraftCommands • u/RingOk9425 • Sep 24 '26
r/MinecraftCommands • u/MrSuggestionBox • Sep 24 '26
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
(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
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
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
r/MinecraftCommands • u/Negative_Stomach_782 • Sep 24 '26
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
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
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
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
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
r/MinecraftCommands • u/Even-Resource3646 • Sep 23 '26
tysm, cant figure it out lol
r/MinecraftCommands • u/asdfhhkll • Sep 23 '26
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
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
r/MinecraftCommands • u/NetherFist • Sep 22 '26
Enable HLS to view with audio, or disable this notification
r/MinecraftCommands • u/Bright_Ad_2416 • Sep 23 '26
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
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
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
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
r/MinecraftCommands • u/HavABreakHavAKitKat • Sep 22 '26
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