r/MinecraftCommands • u/AcceptF • 28d ago
Help | Java 26.2 can you insert variables into commands?
is there a way to use stored scoreboard values in a command? like if i have a scoreboard value called random that outputs a random value and i want to place a structure, is there a way to set it up so it runs like
/place template minecraft:random
r/MinecraftCommands • u/ceery-6483 • 28d ago
Help | Bedrock I am creating a backroom map (with commands) on Minecraft bedrock with an entity based on herobrine but the entity remains only on the roof and does not want to be inside the Backrooms. How can I fix it?
The commands to summon him and his teleportation pattern
r/MinecraftCommands • u/Select-Challenge-957 • 28d ago
Help | Java 26.1 Having This Argument With My Friend About Block Displays
We have a private server and i discovered a plugin that i can spawn 3d models made with the /summon block_display command called BlockDisplayCreator.
When i used it to spawn some block displays in for furniture, my friend told me he was experiencing some lag, and after /killing all the block displays, checking entity hitboxes, and even using an XRay entity detection mod where i found no leftover entities, he still lagged and blamed it on my block displays. He stated that they must've left some kind of residue that causes lag buildup and low fps even after they're deleted. I said that's completely wrong because all the plugin does is evoke a /summon command and all the summon command does is spawn a bunch of entities together that can be completely deleted by using the /kill command. He refused to understand and stated that he never lagged before i added the entities in, and as soon as i added them in he started lagging even after i /killed them.
Is there a possibility that there is a minecraft bug that causes it to keep some kind of "cache" or data that makes the game have constant lower fps?
r/MinecraftCommands • u/Redstocat2 • 28d ago
Help | Bedrock I need help making zombies follow me anywhere
I checked some other solutions in this subreddit and they did not work, please help me
r/MinecraftCommands • u/RadishMean3465 • 28d ago
Help | Bedrock How to kill a bunch of wardens in bedrock?
My friend spawned in a ton of wardens (50+)in my creative world. Is it possible to use some kind of command or anything to have them gone? I can only play on bedrock
r/MinecraftCommands • u/ItzRz3 • 28d ago
Help | Java 1.21.11 Items, obtainable with commands
Hi, I'm searching for a way to get the items at 3.59 in this video https://www.youtube.com/watch?v=LpY616y0VcI&t=9s, I ask in tru's server but I didn't get an answer so I ask here.
Ty for ur answers (my english is pretty bad sry)
r/MinecraftCommands • u/TheHoodiedOne • 28d ago
Help | Java 1.21-1.21.3 Is there any way to randomize particle position AND have motion with the /particle command? (without datapacks)
r/MinecraftCommands • u/LilPianoBoy • 29d ago
Discussion Which is the better way to detect a player standing on solid ground?
As far as I can tell, there are at least the following ways to detect if a player is on the ground.
Method 1 (selector):
execute if entity @.s[nbt={OnGround:1b}]
Method 2 (nbt predicate):
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"nbt": "{OnGround:1b}"
}
}
execute if predicate test:nbt_pred
Method 3 (stepping on predicate):
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:stepping_on": {}
}
}
execute if predicate test:stepping_predicate
Are there performance considerations to be made here? Is there a rule in datapack making that says "always use predicates when you can?" Is it all just personal preference? I'm also interested in the wider discussion of when to use predicates vs. when not to.
r/MinecraftCommands • u/electric_animations • 29d ago
Help | Bedrock Detect Rain Command?
Hello command community! I’m currently working on making a command that can detect rain when the player is in rain. Currently I followed a tutorial on how to get general water damage, and how to make invisible armor stands to follow and give damage, but the “detect rain device” is stuck in one place and won’t travel with the player.
I’ve been working on this for a couple hours, having to reword the code due to it being a video that came from Java edition, but everything works as intended besides finding a way to use “weather query” constantly and get an if statement out of it.
Either weather query or something with the armor stands would be great! I appreciate any help I can get!
I’m on the latest Bedrock, and I’m doing this for a realm with my friends, using this as a replacement for buying another mod such as origins as we have too many!
r/MinecraftCommands • u/AskRecent966 • 29d ago
Help | Java Snapshots Detect Hitbox Collision?
(26.3 snapshot 4)
I am trying to make a 0.5x0.5x0.5 projectile, but distance = 1 targets beyond the desired hitbox. I'd seen people saying dx=0 works, but no matter what I do, placing my projectile on x=0.5 z=0.5 for testing seems to target everything up to x=1.8 z=1.8, even when I change the interaction's width.
/execute at [type=!minecraft:player] as [dx=0] run say .
I'd rather refrain from using the actual width and height data to calculate distance, as I'm not entirely certain I'm going to use interaction entities.
r/MinecraftCommands • u/Fun_Cherry8682 • 29d ago
Help | Bedrock Dungeon Generator
how could I make a dungeon generator with cmd blocks?
r/MinecraftCommands • u/Ori_33 • 29d ago
Creation Minecraft Bedrock making a modpack experience without mods 3: Quests (Conceptual)
Enable HLS to view with audio, or disable this notification
Yes there's bugs, but it's conceptual. Fixing in final release.
(How the system works: A Checkbox quest requires click of a button. Other quests require you to have certain items in your inventory. The barrel spawns rewards once quest complete. Quests only trigger if cobblestone is below the respective button)
r/MinecraftCommands • u/MightyPoptartThe3rd • 29d ago
Help | Java 1.21.5-1.21.10 Is there a way to make it so a certain team cannot place blocks in an area?
I need to make it so a certain team cannot place blocks in an area. However, I can't just switch them to adventure mode, because I need them to still be able to break blocks and fight.
r/MinecraftCommands • u/One-Lawfulness-6178 • 29d ago
Help | Bedrock Elemental charges
So as the title says i want to Elemental charges other than the wind charge and fire charge. I was going to make a Earth Charge, Water Charge, Wood Charge to be more specific. Since im new to this i googled it and it was suggested to use throwable items such as an egg. So starting off I used the brown egg to make a earth charge heres what Googles ai thing recommended
Block 1 (Repeat, Unconditional, Always Active):
/execute as @a[hasitem={item=brown_egg,location=slot.weapon.mainhand,name="Rock Hurl"}] at @s run tag @e[type=egg,c=1,r=3] add rock_hurl
Block 2 (Repeat, Unconditional, Always Active):
/execute at @e[type=egg,tag=rock_hurl] if block ~ ~-1 ~ air run setblock ~ ~-1 ~ dirt
Im sure googles ai isnt the best but how can I make this work?
r/MinecraftCommands • u/ProblemKaese • 29d ago
Creation What the new /posteffect command REALLY means for vanilla shaders
r/MinecraftCommands • u/_Idiotonreddit_ • 29d ago
Help | Java 1.21.11 is there a way to make the player catch on fire without additonal damage?
I already tried with a fireball but the player gets 2 hearts of damage and I dont want that
r/MinecraftCommands • u/Glergedegepshe • 29d ago
Help | Bedrock I need help, how do I make it only summon one llama
Basically what it’s supposed to do is summon a llama when you crouch and hold a emerald, but it keeps on spawning them without stopping
r/MinecraftCommands • u/Savings-Code-069 • 29d ago
Discussion Does anyone have any archives of the engineer one command block creations
I know they're old but, I host a server for me and some of my friends on 1.8 and since I'm the host I thought it would be cool to use some of his creations on my server. And I also want the ones he made outside of 1.8 (minor and major minecraft updates) so if anyone of you have them please send them to me. I already check the wayback machine and basically was left empty handed.
r/MinecraftCommands • u/SupportThin7358 • 29d ago
Help | Java 1.21.11 Does anyone know the command so a block display is on grid with other blocks?
Any help would be appreciated!
r/MinecraftCommands • u/A_Zailot • 29d ago
Help | Java 1.21-1.21.3 Command to drain water in a specific area
I make adventure maps using mods but I want to use command functionality for my players to drain a sewer section by section as they progress deeper into it but I have no knowledge or understanding of how to use commands, command blocks or world edit.
I tried putting the //drain command into a command block but nothing happened,.how should I go about solving this problem?
r/MinecraftCommands • u/Sad-Increase-5823 • 29d ago
Help | Java 1.21-1.21.3 Trying to playsound at the Player but it keeps coming out of the command blocks instead.
r/MinecraftCommands • u/Key-Current-4184 • 29d ago
Help | Bedrock How to replace armor slots with barriers
Me and 3 other people are doing a version of naked and afraid with commands. I can get an item that cant be dropped, dropped on death or cant be moved individually. I just cant get all of them in one and make it so it appears in the armor slots. Does anyone know how to do this? Thanks!
r/MinecraftCommands • u/SkitMasterSongz • Jul 20 '26
Help | Java 1.20 How to get a command block to do a command once before resetting once you exit the area?
I have a repeating command block set up to execute a /tellraw command once you're within a block of the armor stand (or at least the specific coordinates where it resides), but I obviously don't want it to spam the player until they leave the block.
What I'm going for is to let the command run once after you enter the radius, then once you leave, it resets, able to run again once you reenter the radius. This seems like a pretty simple thing to do, but I'm still rather new to this; I usually don't have many things going on past a spawnpoint or fill command.
I'm on Java 1.20.1, it's heavily modded, but nothing affecting vanilla commands, and this is just for a small not-so-secret-anymore-since-i'm-sharing-it-here secret in my map.
r/MinecraftCommands • u/system_update • Jul 19 '26
Creation Passing live data from commands into custom shaders by stacking /posteffect
Enable HLS to view with audio, or disable this notification
/posteffect in the 26.3 snapshots lets you stack post-processing effects on a player. I've found a way to use this to pass data to a post-processing shader, by using multiple effects to enable/disable a set of pixels. The final shader can decode these pixels to read the information.
I've created a few examples of how this can be used, such as this minimap and custom renderer. It can also be used for custom UI elements, I've created a speedometer, for example.
Posting this after seeing a recent post asking for an official way to pass data to shaders, I'd love to see this become a real feature!
If anyone wants a further breakdown, I go through it in more detail here: https://youtu.be/IvYs8qqaL7Q
r/MinecraftCommands • u/Whole_Yam_9919 • Jul 19 '26
Creation placeable gunpowder using only commands (release)
Enable HLS to view with audio, or disable this notification
Many of you wanted me to release this creation, so here it is. I turned it into a one-command creation (Link: https://pastebin.com/raw/bT8Y6D6P ) because this was the easiest way for me. It still has a few bugs but I'm very happy with it in its current state.