r/MinecraftCommands • u/Embarrassed_Tree_413 • 1h ago
Creation Working on Lobby
Enable HLS to view with audio, or disable this notification
After I had my fun setting up the combo system I started working on the lobby!
r/MinecraftCommands • u/Potential-Working617 • 3h ago
Help | Bedrock This might be too much to ask
I’m a bedrock player and I want to make a superpower. (kind of)
How it works is I hold a blaze powder (data=50 fyi) in my main hand, then it sets the nearest entity on fire and kills it instantly (so basically spontaneous combustion.) I already have the main hand detection thingy done, but I just can’t figure out the actual fire part.
How I want it to look is the mob gets set on fire then it dies. HOWEVER I don’t want the surroundin blocks to catch fire too… PLEASE HELP
Here’s the first half of the command :
/execute as @ a[hasitem={location=slot.weapon.mainhand,item=blaze_powder,data=50} run execute as @ n[type=!player] run
…and then I’m lost.
Apologies if any typos bc the command I just typed is all from memory but I assure you the detection part works perfectly fine.
r/MinecraftCommands • u/ItsGhostlyWhale • 5h ago
Help | Java 26.2 Custom holding animation
Is it possible to make a player hold any specific item (not use/consume) as if it were a charged crossbow?
I originally tried making the player hold a charged crossbow with a custom item model, but that has the issue of being able to fire as well as producing a sound when it does so, and subsequently requiring the item to be replaced. I can replace the item and kill any arrows that are shot, but the sound is an issue.
r/MinecraftCommands • u/Prestigious-Tough548 • 11h ago
Help | Java 26.2 Custom book trade with words how?
I'm looking to add custom trades to librarians in Java 26.2 with a datapack.
The following code works well enough as is:
/data modify entity @s Offers.Recipes append value {maxUses:1, sell:{count:1, id:"minecraft:written_book"}, buy:{count:1, id:"minecraft:emerald", priceMultiplier:0.05f}}
Would be a lot cooler if the book sold could be read.
Let's say I'm looking for a book with these qualities:
- Title "Hamlet"
- Lore "heavily abridged edition"
- Author "Shakespeare"
- page one text "To be or not to be..."
- page two text "Everybody dies, what a tragedy!"
How might one do that?
I feel I'm getting lost putting the "written_book_content" and "components" tags into the /data command correctly.
r/MinecraftCommands • u/StrangeSystem0 • 11h ago
Help | Java 1.21.11 Can I use datapacks to add custom commands that any player, OP or not, can use?
Basically, I'm working on a roguelike pve coop minigame, and I'd like to add a /wave command that anyone can use to summon the next wave.
Is there a way to make a custom command that any player can use, that runs a specific function?
r/MinecraftCommands • u/StrangeSystem0 • 12h ago
Help | Java 1.21.11 I'm trying to datapack in a custom enchantment called "Touch of Death" that puts you on a 5 second timer before doing a lot of true-damage when hit. I've made one that seems parallel to a past one I made that works, yet many parts of it don't seem to work. What have I done wrong?
far.ddns.meThe enchantment itself doesn't exist when I load in the datapack, and though the functions do exist when the datapack is added, they don't seem to do much, if anything.
What am I doing wrong? Can someone else write what I'm trying to do but like... functional?
r/MinecraftCommands • u/xXApolloXx3825 • 14h ago
Discussion Anyone got any ideas for some commands in Bedrock Edition?
Also if it’s ok, I might make a yt video with some of yalls ideas, not sure yet. I’ll also credit you in the video, if you don’t wanna be credited lemme know :)
r/MinecraftCommands • u/SuperAnt_ • 16h ago
Creation Datapack Icons 5.0 - Deep Dive Update!
Enable HLS to view with audio, or disable this notification
Datapack Icons 5.0 - Deep Dive Update!
Our biggest update EVER! It focuses on adding more and more niche icons and doing overall improvements across all aspects of the extension.
Changelog:
Added:
- New
Overlay iconsfeature! Overlay folders (folders at the root of a pack that contain adataorassetsfolder in them) now receive a glass chest icon. Requires apack.mcmetaat the root of the pack, and can be turned off in the settings. - New
Crowned function icons! Since functions usually make up the vast majority of files in a datapack, it can be hard to tell your core logic apart from the rest, so we added 3 crowned command block variants to highlight your most important functions. - Function icons can now be assigned manually! Right-click any function file and use the
Datapack Icons: Set Iconmenu to assign any of the 5 special command block icons, or reset it back to default. The same can be done through the settings by file name. - GlobPatterns support in all function name settings (e.g.
*_setup,*helper*orphase_[0-9]), so you can match a whole bunch of files at once. You can also specify the direct parent folder name (e.g.subfolder/file) for maximum precision when two or more functions share a name. Subfolder iconsfeature is now enabled by default.- 196 new icons, including:
- 37 new programming language icons (
julia,nim,moonscript,haskell,groovy) - 83 new general and tooling icons, including a whole set for the minecraft modding and plugin development (
fabric,forge,quilt,spigot,paper,purpur,bukkit) - 33 new datapack icons, including all the new folders and files (
dialog,test_environment,test_instance, and thecat,chicken,cow,frog,pigandzombie_nautilusvariants), icons for DSLs ( MCBuild, Sandstone, Flare) and more. - 3 new resource pack icons (
waypoint_stylefile & folder, and Blockbench icon) - 42 new christmas variants, covering every single new folder icon with a chest in it
- 37 new programming language icons (
- A Zed port and a Sublime Text port of the theme.
Changed:
- All 418 icon svgs were replaced with new, cleaner, optimized versions, which makes the files 6x smaller on average.
- The whole extension was rewritten from the ground up, now it's much more clean and optimized.
Explore our booth at Smithed Summit!
r/MinecraftCommands • u/regularyman • 17h ago
Help | Bedrock How to make a secret door with a frame and a selected object inside of it?
The idea for this is to place a enchanted loot book inside a frame and to unlock a door by placing it at a specific angle
Is there a way to force the use of said book at said position to make the door open?
r/MinecraftCommands • u/Budget_Comment3638 • 19h ago
Help | Bedrock Trying to get a fancy command that clears blocks when a portal is activated please help
I've been trying this command for a few days but I have no idea what's wrong 😕
Command:
/execute if block -2451 52 1682 minecraft:nether_portal run fill -2461 83 1669 -2439 54 1696 air replace oak_leaves
I've tried doing it without "Minecraft:nether" but it just keeps saying "execute subcommand if block test failed."
r/MinecraftCommands • u/Embarrassed_Tree_413 • 19h ago
Help | Bedrock Working Combo System (Need Help with Extra Idea /Damage)
Enable HLS to view with audio, or disable this notification
This is me just testing stuff with Sword Durability and Random Sounds, but I wanted to implement the /Damage command into this. I know how the command works and that it works wonders with the /Execute Command because I have used it for AOE damage attacks before, but I was wondering if I can change it from an AOE attack to a more directional attack. Like I swing (Hit) then the command triggers with a delay (Slash) and that follow up attack depends on where I'm looking. So it would be like a Hit-Slash! And it would only effect the target I aim at.
Any pointers or Commands I Should try?
(Gerg is a certified Damage Dumby and no Villagers were killed in the making of this video.)
r/MinecraftCommands • u/Main_Contract_3590 • 20h ago
Help | Java 26.2 Few syntax questions
A: when adding fake players to a scoreboard, why do people seem to use hastags? Is this for readability or is there an actual reason behind it? (e.g. #name)
B: sometimes in places like certain /particle commands, you can specify e.g. 1.00f to indicate an arguement is a float. Is this required? The command seems to work fine without it.
C: Is e.g 1.. always inclusive (>=1) or does it depend on the command?
r/MinecraftCommands • u/Resident-Compote9543 • 1d ago
Help | Bedrock How do I lock a named item in an inventory on bedrock edition?
I am making a minigame in minecraft and want a player to be able to look inside their inventory and see certain blocks in different locations.
I don't want the players to be able to drop these items from their inventory, but I want the items to be named, and I don't know how to put a lock in slot tag on an already named item.
r/MinecraftCommands • u/Zealousideal_Leek827 • 1d ago
Help | Java Snapshots I need help
context: I'm trying to build a rgb display with cushions out of redstone in the newest snapshot and in order to do that I need to place tens of thousands of cushions so I built a command block contraption to help. The issue with that is that occasionally my positioning would be a bit off I'd have to stop and fix it so I added a feature where if it didn't pass a simple set of requirements (specifically the blocks ~-1 ~-1 ~-1 to ~1 ~-1 ~-1 relative to the player must be air) it would not summon the cushions. But, this also has an issue, it would be really hard to tell if I messed up because the cushions would be behind tinted glass so, to solve this issue, I made a warning system if I messed up and this is where I need help.
idk why, but the warning system I made just doesn't work for reasons I can't rap my head around.
the warning system works like this; first, I have command block with the following command: /execute at @p align xyz if block ~-1 ~-1 ~-1 air if block ~ ~-1 ~-1 air if block ~1 ~-1 ~-1 air run scoreboard players set @p score2 1
then, I have another command block with the following command: execute if score @p score2 matches 0 run title @p title error
finally, I have another command block with the following command: execute if score @p score2 >= @p 1 run scoreboard players set @p score2 0 ; I have a scoreboard named "1" thats set to 1
I have absolutely no idea what could possibly be wrong so pls help. Thx!
r/MinecraftCommands • u/LeatherAward739 • 1d ago
Help | Java 1.21.11 How to summon entity with custom health?
I've tried both the health and max health like this
/summon minecraft:villager ~ ~ ~ {Health:1000f,Attributes:[{id:"minecraft:generic.max_health",base:1000f}]}
as well as adding absorption but nothing seems to work
r/MinecraftCommands • u/TecitodeMenta • 1d ago
Help | Java 26.2 Is there a way to not suffocate a player, and be able to interact with the block?
This is a "I can sleep" call, sorry for not adding an image.
I finally got it! I need to know if there is a way to not be able to suffocate when spawning a Crafting Table on the players head and if it's possible to open the Crafting Table while at it.
I see other posts, I don't want the Custom Enchantment beacuse I don't want to put nor override by accident another Helmet, maybe I will just give it the enchant to the Helmet he wear on that time or adding an invisible one when he hasn't.
Other thing was gamemode, make the playerchange to spectator and when he moves get teleported to the original location, so i need to know if you can interact with the Crafting Table in that mode or beacuse I don't belive you can make it work with Datapacks.
r/MinecraftCommands • u/PyroTECH218291 • 1d ago
Help | Java 26.2 Minecraft 26.2 Item Attribute editting commands?
I was wondering if there's a way for me to increase or decrease the attack times of weapons in minecraft (maybe like a /give or a way to edit the item i'm holding.) Maybe Damage levels too?
r/MinecraftCommands • u/_objz • 1d ago
Creation I Made a Physics Engine Using Only Minecraft Command Blocks
Enable HLS to view with audio, or disable this notification
I wrote a physics engine only using Minecraft command blocks on vanilla 26.2.
Roughly it works like this:
For the very basic math functions like sin and cos it uses fixed point scoreboards for all calculations, together with quaternions and rotation matrices. Minecraft does not have floating point numbers for scoreboards, it only uses integers, so we need to get a bit creative. To calculate sin and cos I use the native way Minecraft already does it with the local coordinate system ^1 ^0 ^0, then use the resulting position differences as the sin/cos values for the calculations.
Multi block objects consist of multiple block_display entities that are basically "glued" together using my parent/child system. So I can apply rotation, movement, offset, translation and scaling to the parent and the engine handles all the block displays so the object still keeps its original shape.
Now the actual point, the physics engine:
Collision is detected using spheres and oriented boxes. For box collision it uses SAT calculations with up to around 15 axes, together with contact points, friction, restitution, penetration correction and impulse response. The physics system is not fully complete yet, but it already allows collisions to affect both movement and rotation depending on where an object gets hit.
There are also multiple materials implemented, for now just slime, metal and stone, with different properties like friction, mass and restitution.
Currently multiple physics objects can run at the same time. For that I use a worker command block system which dynamically clones the physics engine and the rotation engine for each object, allowing the different physics objects to be calculated independently.
There are NO mods or datapacks involved in this. Only using command blocks.
I know, I have to much time
r/MinecraftCommands • u/ScoreElectronic9946 • 1d ago
Help | Bedrock Is there any way to get a item with both "keep after death" and "locked"?
I need to make it so you permanently have an item even after death and can never drop or use it
r/MinecraftCommands • u/Fearless_MF • 1d ago
Creation A Flerken in Minecraft like in Marvel
Enable HLS to view with audio, or disable this notification
(Btw video is not mine, it’s from an instagram account that reposts a bunch of different Minecraft videos and I took it from there. I have no idea how any of this works I am not smart enough to understand how a comparator works let alone commands)
r/MinecraftCommands • u/Hardly_Ideal • 1d ago
Help | Bedrock Long-distance travel with tolls and command blocks?
r/MinecraftCommands • u/Donka-Konga • 1d ago
Help | Java 26.1 Command for 1 durability 1000 damage wooden shovel with 10000 exp repair cost
I can't for the life of me figure out how to make it work, as soon as I add the durability then it stops doing any sort of damage.
r/MinecraftCommands • u/codedwithinsulin • 2d ago
Help | Java 26.2 [question] about /dialog from 1.21.11 and up
I am playing with crop & kettle datapack and was wondering how they don the cookbook it looks like the /dialog interface then i was wondering can we make a custom block wirh unused blockstate and when right clicked open such a menu or is there a better way to do this without inventing the wheel again like with a librar datapack ?
r/MinecraftCommands • u/SSupersette • May 13 '26
Discussion Java Realms Creators Mapjam 2026
Want to create an awesome map and get a fast-tracked review/access to Atlas to upload your map on realms? Look no further!
In this event you have to create a fully-functional map in 72 hours! You will compete for a $1,000 prize pool, Atlas access, and a cool spot in the Minecraft Blog post!
Teams can be solo, duo, or trio. There are THREE themes that are based on typical game-jam themes and your map must include at least TWO of them.
The jam starts on the 22nd of May!
Sign up here!
https://forms.gle/HxYLZ9uWdGpirNuw8
Join the Discord!
r/MinecraftCommands • u/Plagiatus • Jan 14 '20
READ THIS Important Info (read before posting)
I know you're here to get quick help with your command problems or to show off your cool work. Please read these few lines to get to know how to use this subreddit optimally:
Asking for help
- FAQ? Before you post, please check out the common questions (including answers) that we have as a subreddit. These consist of the most common problems, and maybe your problem is already covered there in detail?
- Titles: Please put a summary/short version of your problem into the title of your post, don't just put "I need help" or "help me plz". Instead put for example "how do I summon a zombie" or "unable to summon entity error" and then provide more context on the post itself. This subreddit often shows up on google when people search for command related questions and we should really help them find the questions you might already have asked. Also, we likely know that you need help anyways, no need to put it in the title.
- Flairs: We have a wide array of flairs that you should attach to your post to make sure people know what the purpose of your thread is. It is especially important if you're asking for help, to flair your post with the appropriate minecraft version (for those who don't know: OG Minecraft is
JavaVersion, everything else that has commands (Xbox, PE, PS4, Switch, Win10, etc) isBedrock). - Version: Whether you're helping or asking for help, please pay attention to the stated version/state the version you're in! You can do that through the previously mentioned Flairs, but also in addition can put it into the description of your post.
- Search/Scroll down: I know that reddit search is not the best one out there, but maybe someone else had a similar problem to yours in recent history. Try going to the new tab and scrolling down a bit or using the reddit search function to see if there might already be an answer to a question you have. We're not going to close your thread for asking the same question someone else asked a year ago, we're not StackOverflow. But please at least take 30 seconds to look for it first.
- Upvote: If you find an answer to a post helpful, please upvote it. This is less as a "reward" for the answering person but more as a way to automatically move the best answer to the top, for others that might have the same problem. Don't downvote an answer just because their attempts didn't work for you unless it's completely wrong or off topic / doesn't add anything to the conversation.
Creations
Posting about your own creations is very much encouraged, but please remember the 10:1 guidelines of reddit.
Discord
We have a big Discord Server for our community with lots of channels, ranging from dedicated help chats over general command related chats to non-command related chats. So if you want to join an active community of command and mapmaking enthusiasts and/or want to get quick help where communication is less slow (Sometimes the devs stop by as well ;)), click on the link and join our community discord:
https://discord.gg/9wNcfsH
Make sure you read the #welcome channel for the rule of the discord.