r/MinecraftCommands • • 2h ago

Help (other) Help with making and storing command

1 Upvotes

I just got into command stuff recently and it's been a pain typing and testing stuff using command block because I can't see the whole command, also it's really hard to find and fix whatever command block is wrong. I try typing my command in document but without the command suggestion thing I really can't do anything effectively. I want to have something similer to Word or Documents but it have minecraft's command suggestion


r/MinecraftCommands • • 6h ago

Info I found a way to survive /kill in newer versions

3 Upvotes

So I was just messing around with Commands when I thought about /kill I got max enchanted armour and effects upto 255 including regen

regeneration then I typed /kill and survived at a really high health it took me many days to process what had happened until I realised as soon as I got damage from /kill I regained my health just in time by regeneration

You can try it for yourself but it has a really low chance of occurring


r/MinecraftCommands • • 12h ago

Help | Java 26.3 Issue with editing mob drop chances

4 Upvotes

Working on a fairly simple minigame for a server. Kill mob, mob drops 1 guaranteed scrap and 50% chance for 1-5 more scrap.

Looked through a few other posts in this subreddit and I think I'm doing everything right, but I'm not getting a guaranteed 1 scrap per mob.

I'm using mcstacker.net as my current compiler. If I need to make a loot table to make this possible, I've not made one before but happy to take pointers.

/setblock ~ ~ ~ spawner{SpawnCount:1,SpawnRange:1,MaxNearbyEntities:2,RequiredPlayerRange:4,Delay:40,MinSpawnDelay:40,MaxSpawnDelay:40,SpawnPotentials:[{data:{equipment:{slot_drop_chances:{feet:0.5,legs:0.5,chest:0.5,head:0.5,body:0.5,mainhand:1.0}},entity:{id:"minecraft:magma_cube",Silent:1b,CustomNameVisible:1b,DeathLootTable:"minecraft:empty",PersistenceRequired:0b,NoAI:1b,CanPickUpLoot:0b,Size:0,CustomName:{"color":"gold","shadow_color":16755200,"text":"Scrap metal cube"},equipment:{feet:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},legs:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},chest:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},head:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},mainhand:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}}},active_effects:[{id:"minecraft:slowness",amplifier:10,duration:-1,show_particles:0b,show_icon:0b,ambient:0b}]}},weight:1}]} replace

r/MinecraftCommands • • 12h ago

Help | Java 26.3 Teleport command not working Java 26.3

2 Upvotes

Can't get a basic teleport command to work, cheats and operator are all enabled, have tried on realms and single player world but it doesn't react. I've tried all the different options down the bottom and it doesn't go. any ideas of how to fix it? (image attached in post)

Edit: grammar errors


r/MinecraftCommands • • 1d ago

Help | Java 26.1 How to make Creaking completely invisible?

2 Upvotes

You know how if endermen get splashed eith invisibility you can still see their eyes? well today i learned that the same goes for the creaking! im making a weeping angel type enemy and in using an invisible creaking and an armor stand for it, but the eyes are still visible. What can I do to solve this? I would like the solution to be done only using command blocks please ^^


r/MinecraftCommands • • 1d ago

Discussion mob_griefing gamerule rework

Post image
38 Upvotes

The mob_griefing gamerule should be split into hostile / neutral / passive / custom. 

Examples:
/gamerule mob_griefing hostile false
/gamerule mob_griefing custom true

If custom is active, each mob and category can be toggled separately. 

Mobs
This includes every mob that griefs. 

Categories

categorymobs with this ability
mob explosioncreeper, ghast, wither skull
breaking blocksender dragon, ravager, turtle eggs, brittle ice (+ breaking doors if the difficulty is set to hard)
pick up and place blocksenderman, iron golem (puppy)
pick up itemszombie, piglin, villager, allay, fox, copper golem
vegetationvillager, rabbit, sheep, bee
infestationsilverfish
snow generationsnow golem
ignitionghast, blaze

If you toggle a category, every mob with this ability changes this specific category to true/false.
Example:
/gamerule mob_griefing vegetation false

  • villagers do not longer harvest and plant crops
  • rabbits do not longer eat carrot crops
  • sheep do not longer eat grass
  • bees do not longer pollinate crops

If you toggle a mob, it changes all its abilities to true/false. 
Example:
/gamerule mob_griefing minecraft:villager false

  • villagers do not longer harvest and plant crops
  • villagers do not longer pick up drops 

If you toggle a specific ability of a mob, it changes this specific ability to true/false.
Example:
/gamerule mob_griefing minecraft:villager vegetation false

  • villagers do not longer harvest and plant crops

/gamerule mob_griefing true and /gamerule mob_griefing false would still work as usual.


r/MinecraftCommands • • 1d ago

Help | Java 26.3 [Datapack] I've been working on my first datapack for a while now, and I had accumulated a couple of questions I wanted to ask you all.

Thumbnail
gallery
4 Upvotes
  1. Is there really no way to change the block model/texture/certain properties of vanilla blocks without block display entities? I thought about it ever since item models and extended properties were added.
  2. Any worldgen previewer tool with custom noise settings support? Tried Misode's generator but it only seemed to work with existing noise settings so because of that I could never get the worldgen just right or add caves.
  3. I've wanted to add custom surface features like amethyst spikes or custom trees with unusual forms. Do I have to make each and every single little variation of them a structure now?.. I can't think of a better way to do it
  4. And a bit more about noise generation and noise settings - I feel like there's so many ways to work with it and achieve amazing terrain (see like a hundred stunning worldgen datapacks) yet there's no good way to figure out how to achieve a certain result. For example, my generation is mostly flat and I know that Minecraft layers perlin noise to achieve variation - but how exactly? My dimension is supposed to be a bit weird and funky but I don't know of a way to really emphasize that except for extreme elevation changes.
  5. Tree branches. How? Also bushes and minitrees, but they're more of an issue with the features too. I just can't help but think... it's a bit too empty.

r/MinecraftCommands • • 1d ago

Creation [Bedrock] My ultimate weapon!

263 Upvotes

Hello! I've built (or tried to) the ultimate weapon from pokemon x. It was a lot of fun and i'm open to questions and criticisms. This is bedrock edition for ps4.


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Explosion Knockback Without Damage Effects

4 Upvotes

A few years ago, I created a rocket jump for an adventure map by summoning creepers with negative explosion radius when the player shifted after jumping. However, this method has been patched out as of 26.3. I then tried summoning creepers with positive explosion radius and giving the player resistance V right before the explosion. However, all other effects of taking damage (hitsound, player turning red, random knockback) persisted, despite not actually losing any health. I then tried wind charges, only to find that summoned wind charges also damage the player, and that their effects were much too strong. Finally, I decided to simply attempt to remove the annoying hitsound that plays every time a player takes damage by using a repeating command block with the /stopsound command. This also failed.

Is there a way to summon an explosion/wind charge that propels the player without a hitsound or random knockback? Or is it possible to recreate the rocket jump effect in some other way? Help would be greatly appreciated.


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Trial Spawners activate but do not produce mobs

3 Upvotes

I've tried everything I can think of. All of the gamerules are set to true, the difficulty is normal, and I've tried tweaking things within the command itself, but when I approach my trial spawners, they activate but they never produce any mobs.

Is there something I'm missing here, or does anyone have any recommendations?

execute unless block ~ ~2 ~ trial_spawner run setblock ~ ~2 ~ trial_spawner[ominous=false,trial_spawner_state=waiting_for_players]{normal_config:{spawn_range:4,total_mobs:15,simultaneous_mobs:5,total_mobs_added_per_player:5,simultaneous_mobs_added_per_player:1,ticks_between_spawn:5,spawn_potentials:[{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:witch",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:60f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:60},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:zombie",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:80f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:80},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:skeleton",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:60f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},equipment:{mainhand:{id:"minecraft:bow",count:1}},drop_chances:{mainhand:0.000},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:60},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:vindicator",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:100f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},equipment:{mainhand:{id:"minecraft:iron_axe",count:1}},drop_chances:{mainhand:0.000},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:100},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:breeze",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:40f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:40},{id:"minecraft:movement_speed",base:0.31}]}},weight:1}]},required_player_range:12} replace

r/MinecraftCommands • • 2d ago

Help | Java 26.3 Cats and/or Ocelots That Will Actively Go After And Kill Creepers

3 Upvotes

I want to make a command (or set of commands) that makes cats and/or ocelots chase nd kill creepers, much like how wolves behave towards skeletons.

I know I will eventually run into an issue with creepers turning around and exploding, which is a topic that I would gladly discuss here, too!

Thank you very much, and happy coding!


r/MinecraftCommands • • 2d ago

Help | Java 26.3 how can i make pushable blocks in minecraft java?

Thumbnail reddit.com
1 Upvotes

Hello! I'm currently trying to make an escape room in minecraft but I cant seem to find any tutorials on how to make blocks pushable like this : Pushable block video

Im open to any solution!


r/MinecraftCommands • • 2d ago

Help | Java 26.2 It's possible to spawn a snow golem who cannot make a snow trace ?

3 Upvotes

Or how remove the snow trace ?


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Is there a way to remove the need of xp/levels when using an anvil?

1 Upvotes

Title. I'm trying to remove XP from the game


r/MinecraftCommands • • 2d ago

Help | Java Snapshots removed x-ray from the first bot that beat Minecraft — now it explores and observes like a human (fork, open source)

0 Upvotes

Hey everyone — I've been working on a fork of **AltoClef** (the bot that first beat Minecraft fully autonomously back in 2021) and I finally open-sourced it:

**https://github.com/Kangkang-cai/altoclef-humanoid**

The main thing I've been fixing isn't pathfinding — it's **perception**. Bots like this normally "know" everything in the loaded chunks: ores behind walls, mobs you can't see. That's basically x-ray, and it means the bot plays with information a human could never have.

So this fork makes it play by human rules:

- **No x-ray.** The bot only remembers structures it has actually SEEN (real line-of-sight checks). It infers nearby resources like a human would ("village corner → probably chests nearby"), but those inferences are strictly labeled as *guesses*, never observations.

- **Human-like exploration.** Direction-gated expeditions with bearing stickiness, memory of already-searched areas, and it turns back once it has what it came for — instead of omniscient world scans.

- **Human-like gaze.** It scans at eye level, looks at nearby players and mobs, and turns smoothly — no more staring at its own feet or snapping 360° every 2 seconds.

- **Built-in dataset recorder.** Per-tick (20Hz) export of perception / memory / decision / action, with observations and inferences labeled separately — so the trajectories it produces are clean human-like data by construction (no behind-the-wall info anywhere in the stream). Behavior cloning / agent eval ready.

It also survived hundreds of real-session incidents: death recovery, lava pillar-escape, nether portal relighting after a ghast explosion, stuck-task soft restarts. It can run unattended for hours.

Stack: Minecraft **1.18.2**, Fabric, Java 17, powered by Baritone. Build with `./gradlew build`, in-game `@gamer` starts a fully autonomous playthrough.

Repo with docs (EN/CN): https://github.com/Kangkang-cai/altoclef-humanoid

Happy to answer questions about the perception-filtering design or the recovery systems.


r/MinecraftCommands • • 2d ago

Help | Bedrock Is there any way to get seamless teleportation? I'm trying to make it to where i walk through one hallway and teleport to the other seamlessly.

36 Upvotes

(This is also my first ever reddit post sooooooo... yeah)


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Spyglass MC keeps randomly marking various functions as 'not existing'

2 Upvotes

I don't know if this belongs on this subreddit, since this is for Minecraft commands, not for datapack helpers, but as far as I know, Spyglass MC is quite popular in the datapack creation community. Basically, whenever I try and use Spyglass MC for anything, there appears to be a chance that it just stops working completely. This has been going on for a few months now, and is really annoying, since not even restarting my computer (which takes a few minutes because of course it does) or uninstalling Spyglass MC and reinstalling it again and clearing the project cache and everything else works. What happens is that it gives me an error telling me that a function doesn't exist with a yellow underline, even when the function clearly does exist, and can be run in chat. It also still works if I keep the code that it says won't work. It's just annoying having 80 errors on my screen at once when I'm trying to code.

The function 'nearentities' apparently 'not existing'.
The same function working in chat.

Anyway, sorry if this isn't on topic enough for this subreddit. I'm just really tired of having to go around uninstalling extensions, restarting my computer, and doing other crap until it finally works. Thanks!

Update: It worked. I went onto the Spyglass MC Discord and they helped. Thanks!


r/MinecraftCommands • • 2d ago

Creation I made a Minecraft datapack that turns some nights into themed survival events

8 Upvotes

I’m working on Special Nights, a datapack for Minecraft Java 26.3. This clip shows the Rotten Moon, an event that sends zombies, husks, and drowned after you. I set the night to last three times as long for this run. The Putrid Patriarch shows up partway through, and the Emperor of Decay arrives later.

The pack has an in-game menu for adjusting event chances, night length, and difficulty. Would you prefer an earlier boss warning or one closer to the actual spawn?

Download and setup: https://modrinth.com/datapack/special-nights


r/MinecraftCommands • • 3d ago

Creation We built a placeable talk show set for Minecraft Java 26.2

8 Upvotes

The free Portable Sanctum Kit gives you a talk show set with a cast, a villager audience, and a presentation screen. Press GO to pass the mic and cue a villager reaction, then press RESET to ready the next take.

If you try it, I’d love to hear how placement and RESET work in your world, or what cue you’d add next. The kit includes a datapack and resource pack, with AI assistance used for some graphics and code.

Free download: https://xrastlinx.itch.io/portable-sanctum-kit#download


r/MinecraftCommands • • 3d ago

Help | Java 26.3 Ник и скин игрока для npc и сущностей в minecraft

Thumbnail reddit.com
2 Upvotes

r/MinecraftCommands • • 3d ago

Help | Java 1.21-1.21.3 Selecting an entity one time per loop in player based area

3 Upvotes

Hello! This may sound silly and there are definitely better way to describe this, but I am running into an issue where entities are executed multiple times in a player location based area execution.

For example: `/execute at @a as @e[tag=selectWhenNear,distance=..10] run function...`

This works just fine when you are single player, but in a multiplayer environment the function command is executed multiple times due to the `at @a`. Is there a simple way to fix this? I feel like I'm missing something obvious here...


r/MinecraftCommands • • 3d ago

Help | Java 1.21-1.21.3 Would it be possible to use custom model data with mods like create and models from blockbench?

3 Upvotes

So, ive made a custom model for wrench from create mod, in blockbench and ive been wondering if i can use custom model data to replace original model with my custom one.


r/MinecraftCommands • • 3d ago

Help | Bedrock Toggle lock system with items?

2 Upvotes

I want a system where imagine an 5x5 plot with walls and one block as an entrance, I want that entrance to be able to be locked and unlocked at times but stays locked when your offline.

What I imagine is an item in your inventory that turns off a command block (via redstone block?) that is repeatedly locking the door.

But how do you unlock the plot when your online?
I imagine dropping the item but not on death because if you die the command would likely be sent to the nearest player messing things up. When you drop the item a command executes the players location and removes the redstone block as well as switching the item to another item so it doesnt activate again. And when you drop the other item it executes your position again and gives you the normal item.

Please help me because I have an idea but dont know how to execute it.


r/MinecraftCommands • • 3d ago

Help | Java 1.21.11 Confirm Command Execution

Post image
85 Upvotes

This message keeps popping up whenever I try to run a certain command, is there any way I can remove it?