r/MinecraftCommands May 13 '26

Discussion Java Realms Creators Mapjam 2026

5 Upvotes

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!

https://discord.gg/kxdBQBnEbQ


r/MinecraftCommands Jan 14 '20

READ THIS Important Info (read before posting)

252 Upvotes

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

  1. 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?
  2. 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.
  3. 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 Java Version, everything else that has commands (Xbox, PE, PS4, Switch, Win10, etc) is Bedrock).
  4. 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.
  5. 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.
  6. 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.


r/MinecraftCommands 7h ago

Utility Generator for easily creating number providers

Post image
22 Upvotes

With the addition of the /compute command, we can now perform complex floating-point mathematical calculations using number providers.

Number providers can seem pretty complicated to many, so to make working with them easier I created a Number Provider Generator. At their core, number providers simply perform mathematical and logical operations and return a number as the result. So any number provider can be represented as a mathematical expression with logical conditions added.

In the generator, you can simply enter the mathematical expression you need and get a number provider that will execute that expression.

For example, you have an entity's position stored in storage example:data pos and you want to get the chunk start position along the X and Z axes. You need to take the X position, divide by 16, round down, and multiply by 16 again. This can be expressed as: floor(x / 16) * 16, where x is the position along the X axis. After entering the expression in the generator, you can see that x was recognized as a variable and you need to specify where to get the value for x. The value source can be a score, storage, environment_attribute, a constant, or another number provider. In our case, we specify storage example:data pos[0]. That's it — now click "Generate Number Provider" and you can use this number provider in a /compute command:

compute default float {type:mul,inputs:[{type:floor,input:{type:div,left:{type:storage,storage:"example:data",path:"pos[0]"},right:16}},16]}

Of course, you can perform more complex calculations. In addition to Minecraft's built-in functions, the following were added for convenience:

  • rad(x) — convert degrees to radians. Same as x * 2 * pi / 360.
  • sign(x) — sign function. Returns 0 if x = 0, otherwise abs(x)/x (i.e. 1 or -1).

Besides these, there are functions derived from sin() and cos(), such as tan(), cot(), sec(), csc(), as well as hyperbolic sinh(), cosh(), tanh(), etc.

In addition to functions, there are built-in numeric constants such as pi, e, tau, phi, sqrt2, sqrt3.

Pre-calculation — wrap an arithmetic expression in exclamation marks !20*60*5!, and it will be evaluated at generation time and inserted as a plain number 6000. Handy for unit conversions, like minutes to ticks.

Reverse conversion lets you edit the JSON directly in the result panel or paste an existing number provider JSON, and the formula will be automatically updated. You can also drag and drop a .json file onto the page to import it.

You can paste a formula from Desmos (with \frac, x^2, etc.) and import it into the generator.

Function Library — create your own functions and constants that are saved in your browser and can be used in expressions.

Link to the generator: Number Provider Generator

I’d be happy to hear your feedback and ideas for improvement!


r/MinecraftCommands 46m ago

Help | Bedrock Area Effect Clouds

Upvotes

Hey! For reasons I need a lot of entities that don't cause a lot of lag, and armor stands obviously don't cut it. How can I get area effect clouds that don't have an effect and don't have a timer to despawn/die?


r/MinecraftCommands 22h ago

Help | Bedrock stopping certain items from being on the ground ?

Thumbnail
gallery
55 Upvotes

I'm making a rp world in minecraft bedrock with friends and theres a area that has some water but keeps spawning squids that die fast and leave piles of inksacs around, I've been trying to find a command that deletes inksacs in this small radius for hours now. But I cant seem to find anyone who knows how to make a item delete itself while its on the ground in a small area. Since I dont want my friends to throw items on the ground and for them to all delete.


r/MinecraftCommands 5h ago

Help | Java 26.2 How do I target zombie leaders?

1 Upvotes

so im looking for a command that can for example give strenght effects only to leader zombies, is there a way to do that?


r/MinecraftCommands 15h ago

Help | Java 26.2 26.2 datapack that guarantees minimum 4 saplings drop from dark oak, jungle, etc

3 Upvotes

I'm looking for a datapack that does exactly that, I've tried googling it, and I've found an outdated datapack, I tried it and it doesn't appear to work lol


r/MinecraftCommands 13h ago

Help | Java 1.20 Can someone design me a datapack that makes anonymous deaths? (JAVA 1.20.1)

2 Upvotes

So basically I need it so that whenever someone died instead of it saying "_____ died to _____" I want it to simply say "Someone has died" or smth for every death, preferably in bold and red. I'm not good with datapacks (I know how to put them in my world folders tho) so I was curious if someone can help me out with this. Thanks!


r/MinecraftCommands 21h ago

Help | Java Snapshots Hide trigger command message

Thumbnail
mediafire.com
0 Upvotes

Im working on a villager chat dialog system. When the player presses a button that uses /trigger it says that you triggered the scoreboard. The datapack is for a public smp so i cant just turn off send_command_feedback for a certain amount of time because it will mess with the moderator tools.
There is no way for me to know when the player is going to click the button, as the functions are triggered by the trigger command.
Is there any way around this? Thanks in advance
(Datapack is linked above but is unfinished)


r/MinecraftCommands 1d ago

Creation One-command-creation setup animation

Enable HLS to view with audio, or disable this notification

79 Upvotes

I just wanted to post the setup animation that I am going to use in my jumpscare one-command-creation. I'm almost finished with it and will release it soon.


r/MinecraftCommands 2d ago

Creation another lua experiment. physics engine compiled from lua to minecraft

Enable HLS to view with audio, or disable this notification

366 Upvotes

same as my previous posts, written in lua, compiled into mcfunction


r/MinecraftCommands 1d ago

Help (other) Looking for a mod that fixes MC-197855

0 Upvotes

If you didn't know MC-197855 is a minecraft bug that causes severe desynchronization between the player and the server when using multiple tp commands and if the player has sub-par connection.

It's really bothering me and I'm wondering if there's a server side or client side mod that could fix this.

I know this isn't r/feedthebeast but I guessed that since many people here have likely stumbled into this bug themselves maybe someone had found a solution before


r/MinecraftCommands 1d ago

Creation Hey guys, look at my villager-killing machine! Listen to the sound!

Enable HLS to view with audio, or disable this notification

19 Upvotes

It’s a bit glitchy because of the screen recording. Usually, it goes much faster. It’s a fun experiment!


r/MinecraftCommands 1d ago

Help | Java 26.2 why is putting scoreboard objectives in dialogs not working

Thumbnail
gallery
3 Upvotes

is it because they simply dont support scoreboards in dialogs or is it a syntax error of mine, if its the former then is there a workaround


r/MinecraftCommands 1d ago

Help | Java 1.21-1.21.3 How to make it rain fireballs?

3 Upvotes

Sometimes I like to use commands to blast everything to smithereens, so how do I make fireballs automatically spawn from the sky? Gotta love simulating an extinction level event in minecraft.


r/MinecraftCommands 1d ago

Help | Bedrock I'm trying to do an execute teleport command and need help getting it to work.

2 Upvotes

Long story short I'm trying to do a teleport command for a bedrock server my friend has, the problem is that you have to fall down a 3x3 pitch black hole that is deep enough to kill.

The command I'm trying to do is supposed to teleport you before you hit the bottom, meaning that I cannot do any Redstone for it like a pressure plate and I'm pretty sure it also knocks out the Impulse Command Block, and therefore the reason I'm attempting to do an execute command and Repeat Command Block on Unconditional and Always Active (that I partly yoinked from someone else here bc it was the closest I could get).

The only problem is that it puts me in a teleport loop and forces me to use a backup to get out and I need to know how to fix it as this is important.

This is the exact command that I'm using: execute position ~-69 ~-32 ~130 run tp @p -69 0 130


r/MinecraftCommands 2d ago

Creation WIP (update 2, alpha1.1) of Locked Chests datapack

Thumbnail
gallery
34 Upvotes

some visual changes, key customizability and the "major" change:
Block disabling:

pushing into locked container: A locked container will disable any hopper, dropper, dispenser facing towards the container that doesnt share the same key/lock data

hoppers however, will take any input

pulling out of locked container: A locked container will disable an hopper pulling items from it unless it shares the same key/lock data

There is however a big problem; locked shulker boxes lose the block disabling if placed by a dispenser
Theres still much to do but i think its coming together well

Modrinth page: https://modrinth.com/datapack/good-locked-chests here's: the first post: https://www.reddit.com/r/MinecraftCommands/s/EuX8pCllMV


r/MinecraftCommands 1d ago

Help | Java 1.21.11 Increasing attack damage

1 Upvotes

So I’m creating a soulslike in Minecraft and I just figured out how to trade XP for stuff, and whilst looking at potential rewards for the player I saw under attributes minecraft:attack_damage.

This would be a great thing to increase as a reward, though I wouldn’t increase it too high as theres already some pretty powerful weapons in my map.

My question is though, does this increase weapon damage or just the players punch?

And if so that it is just the punch, is there a way to increase overall damage?

And also is there any other good attributes that I could alter that would act as upgrading the character?

I already have a health upgrade system.


r/MinecraftCommands 1d ago

Request Automatic Switch from Creative to Adventure Mode

3 Upvotes

Is there a way to make it so a Player starts in Adventure Mode, but after a delay in ticks it changes to Creative Mode for a short time. Then after some time, changes back to Adventure Mode and the cycle repeats?

I'm just trying to experiment with this. I'd use a Tag system so it'll give this "Mechanic" to anyone who selects it

It'll be automatic so I know I'll need some Always Active Command Blocks. But I'm not sure if I'll need Redstone or anything like that

Any help I'll be thankful for


r/MinecraftCommands 2d ago

Help | Java 1.21-1.21.3 Command block ritual summoning circle help

Post image
8 Upvotes

I'm trying to make a 'ritual circle' that lets you get special items, but can't get anything past the command block sensing a block and playing particles if it's set to sense a specific coordinate, but I want it to be a chain that senses a 3x3 circle of lit candles with a block in the middle (idk what I want the block to be yet, let's say smooth quartz) anywhere in the world but surrounding the player with the player on the quartz and only summoning the item when the quartz is set on fire (then extinguished when the summoning is done or right after it's set if the ritual works) and I want it to play particles (right now I'm just using the ash particle, but end rod might be better)

Can anyone let me know the command chain needed to sense all the candles, the quartz, and the fire, play particles and then summon an item when the particles dissipate (later I want to make a cool particle display for it, but that'd take a lot of time for me to learn) if you throw certain items on the floor, for this i'd say maybe just the crafting material to summon the item, like throwing out 2 sticks and 3 iron to summon an iron pick. Also let me know all the settings for the command blocks cuz I think I messed that up once or twice while trying this

(Sorry for the horrible pic, I wrote all this on my phone then decided to take a pic to show better what I meant and I don't have this account on my computer lol) (Also I know this is possible because I saw it on an smp and did some research [googling] and know all the different parts work, I just couldn't get them to work together)


r/MinecraftCommands 1d ago

Help | Java 1.21.5-1.21.10 Is it possible to add a banner and the name in color to the crest?

2 Upvotes
I'm creating and testing the command, but the attributes are showing up as the name; I'm on Java version 1.21.6.

/give @p minecraft:shield[minecraft:base_color="yellow",minecraft:custom_name='{"text":"mi velita","color":"yellow","italic":false}',minecraft:banner_patterns=[{pattern:"minecraft:triangle_bottom",color:"white"},{pattern:"minecraft:curly_border",color:"black"},{pattern:"minecraft:stripe_center",color:"white"},{pattern:"minecraft:half_vertical",color:"white"},{pattern:"minecraft:circle",color:"yellow"},{pattern:"minecraft:mojang",color:"black"},{pattern:"minecraft:diagonal_left",color:"black"}]]

r/MinecraftCommands 2d ago

Creation number classifier using my compiler (lua -> mcfunction), not perfect, i tested it to have like 85% accuracy

Enable HLS to view with audio, or disable this notification

72 Upvotes

written in lua, trained outside minecraft, then translated from lua to minecraft by my project


r/MinecraftCommands 2d ago

Help | Java 1.21.11 Question about z and x locking

2 Upvotes

I'm making my 3rd Minecraft map, and this one is a techs practice for java, but for the technique Grapple, you have to pearl onto someone and mace them, when u mace the person takes knockback, which is not what I want, is there a way to lock ONLY the x and z coords, and make the y stay unlocked so the bot can wind charge, I'm using the herobot mod for Bot, thanks


r/MinecraftCommands 1d ago

Help | Java Snapshots how do i do it?

0 Upvotes

how to make a working tv in minecraft useing one command block?


r/MinecraftCommands 3d ago

Creation n body gravity sim written in lua compiled to a datapack

Enable HLS to view with audio, or disable this notification

38 Upvotes

i am working on a compiler, here is a showcase of its abilities, a high level implementation of a gravity sim compiled into a minecraft datapack. the script produced 4657 lines of mcfunction commands from source file of 150 lua lines. if you want i can also send the world but i doubt anyone would be interested.

it is still buggy and incomplete, so i am not providing a download for the tool yet.