r/MinecraftCommands • • 1h ago

Help | Java 26.2 Is it possible to create a dynamic player list in a dialog using only command blocks? [1.21.11]

1 Upvotes

I'm trying to create a simple ban menu in my vanilla Minecraft world that opens when I run /trigger banmenu.

The idea is to automatically display a list of all currently online players, with a "Ban" button next to each player's name. Banning a player would simply teleport them to a specific location rather than actually using the /ban command.

The teleportation part isn't a problem. What I can't figure out is how to dynamically retrieve the list of online players and generate dialog buttons for each of them.

I want the player list to update automatically whenever the menu is opened, without having to manually specify player names.

Is this possible using vanilla commands or a datapack, or is it a limitation of the dialog system?

I'm open to any vanilla workarounds.


r/MinecraftCommands • • 17h ago

Help | Java 26.3 how to modify a sulfur cube to have wood/bouncy physics while having a beacon as physical block?

3 Upvotes

doing an "data merge entity @ selector {equipment:{body:{id:"minecraft:beacon"}}}" changes it visually to a beacon, but changes the physics from bouncy to heavy, making it no longer work for a minigame where the goal is to knock sulfur cubes into buckets, the weight prevents it from properly being scored


r/MinecraftCommands • • 20h ago

Creation I made an economy system for singleplayer Minecraft: summon a chest shop anywhere and earn coins by playing (pure data pack, no mods)

7 Upvotes

I wanted a real economy in my singleplayer worlds — a shop to buy and sell items, and coins for just playing — without installing mods. Nothing like it existed as a data pack, so I built one.

Vanilla Economy (Java 26.3):

  • /trigger shop summons a 6-row shop chest in front of you — 1,535 items in 10 categories
  • you earn coins for mining, digging, chopping, farming, fishing and fighting
  • prices are calculated from the real crafting recipes, so there's no craft-and-sell money loop
  • selling never touches your hotbar, armour or enchanted items
  • Nether/End/boss items unlock as you progress

No mods, no resource pack, works without cheats.

Download: https://modrinth.com/datapack/vanilla-economy · Source: https://github.com/vanilla-economy/vanilla-economy

It's my first public pack, so feedback and bug reports are very welcome!


r/MinecraftCommands • • 23h ago

Help | Java 1.21.11 Changing a scoreboard when an entity is near, and again when they're far away.

2 Upvotes

Heya, been trying to do this with drowneds to change day to night temporarily to make them aggro for an indoors adventure map i'm doing.

What i've figured out now is:

execute unless score %DrownedAggro enemyVariables matches 1 at @ a if entity @ n[type=drowned, distance=0..5, limit=1] run scoreboard players set %DrownedAggro enemyVariables 1

execute unless score %DrownedAggro enemyVariables matches 0 at @ a if entity @ n[type=drowned, distance=5..100, limit=1] run scoreboard players set %DrownedAggro enemyVariables 0

The problem with this is that when there's more than one drowneds spawned on different positions, it'll start constantly going changing from 0 to 1 and stuff, haven't found a way to fix this. Any help?


r/MinecraftCommands • • 1d ago

Creation Zelda series Boomerang recreated with vanilla commands

52 Upvotes

Something I've wanted to make for a long time, but I didn't have enough command experience to be able to do so until now. There's a few things here and there that could use some polish (the hitbox for activating levers is a bit odd) but apart from that I'm more than happy with how it turned out.

Video aspect ratio's a bit weird because I'm playing on mobile using a controller, I figured that being able to drop items instantly with a controller instead of waiting a few seconds every time I wanted to throw the boomerang would make for a better viewing experience.


r/MinecraftCommands • • 1d ago

Creation Chess in one command - finally in a decently usable state.

92 Upvotes

I've been slowly developing this and other projects over the years and my chess board is finally at least somewhat usable. I figure I might as well share it now that I've learned git (it's a miracle I made it as far as I did without git) and got everything onto github instead of waiting forever for it to be perfect. The good news is that it should be far easier to do what I want with it now that I don't have to care too deeply about the character limit of a command block.

I don't have a whole lot to say about it that matters from a non-technical standpoint, it's chess, what do you expect.

Github


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Natural Structure Generation in Custom World

Thumbnail reddit.com
1 Upvotes

r/MinecraftCommands • • 1d ago

Help | Java Snapshots Display entities can't show just part of a map or texture. I made a feedback post to fix that

4 Upvotes

If you've worked with display entities, you've probably hit this: a filled_map on an item_display always shows the whole 128x128 image, and vanilla textures always show in full too. There's no way to show only a section.

So if you want 50 different 16x16 tiles, you need 50 maps (and 50 map IDs), or a pile of entities. It costs network traffic, memory and entity count, and servers without a resource pack have no better option.

What I'm asking Mojang for:

- A crop region (x, y, width, height) for maps and vanilla textures on display entities, usable with scale. Send one map to the client once, and each entity shows its own section of it. One map could act as an atlas of 64 tiles.

- A way to build a new texture by picking pixels or regions from existing vanilla textures.

Things this would make easy: custom UIs and screens, tile-based decorations, zoomed-in sections of a minimap, and far fewer entities for the same visuals.

If this would help you too, a vote and a short comment on the feedback site really helps Mojang see that it matters:

https://feedback.minecraft.net/hc/en-us/community/posts/50624281244941-Crop-and-pixel-select-support-for-maps-and-vanilla-textures-on-Display-Entities

Thanks!


r/MinecraftCommands • • 1d ago

Help | Java Snapshots Как зделать так чтобы можно было обойти NBT предметов в майне зделать например атрибут 1000 чтобы сервер его не подменивал на дркгой уровень атрибута

1 Upvotes

r/MinecraftCommands • • 1d ago

Help | Java Snapshots Como se hace el chat de EliteCraft 4?

0 Upvotes

El chat incluye varias cosas como:

La cara del jugador, si está o no en stream (poco útil si no eres creador de contenido) y texto personalizado antes y después del nombre del jugador.
Según sé, no hay mods que se estén usando, es un server vanilla.

Si me pidieran que haga este tipo de cosas sin mods no sabría ni por donde empezar.


r/MinecraftCommands • • 1d ago

Help | Java 1.21.5-1.21.10 Display Entity rotation jank

1 Upvotes
rotate [tag=FreddyH,limit=1] facing entity eyes

execute at [tag=Freddy] run tp @e[tag=FreddyH,limit=1] ^ ^2.7 ^ ~ ~
 
[resolved]
execute as @e[tag=FreddyH] rotated as @s on passengers run rotate ~ ~

and if you wanna link it to an armor stand modify it like this
execute at @e[tag=Freddy] run tp @e[tag=FreddyH,limit=1] ^ ^2.7 ^

Im trying to move the grouped display entities as a single unit but it just rotates the snout around the main one that is working correctly
I have it linked to an armour stand and when i disable it the snout stops spinning but still doesn't stay with the parent entity


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Learn the basics of Minecraft commands

Thumbnail reddit.com
1 Upvotes

here's the translation :

I would like to make a role play with dice Minecraft map and would like to do it without mods

Could you help me about commands ? I want to especially make variables (i know it isn't named like this) and commands that verify a condition ("if{} else {}"'s equivalent)


r/MinecraftCommands • • 2d ago

Help | Java 26.3 How do i make the mobs not clump up when walking along a path?

2 Upvotes

I'm trying to make a tower defense game and is using this

execute as u/e[tag=controlMe] at u/s if block ~ ~-2 ~ minecraft:green_wool run tp u/e[tag=controlMe] ~-.1 ~ ~ 90 0 (apparently the at-sign turns into u/ on reddit, huh)

in a command block to make them "walk" along a straight path, but when multiple mobs are on the path they get teleported into each other and walk in a clump.

I haven't really tried fiddling around with the command because i really don't know how they work in depth.


r/MinecraftCommands • • 2d ago

Creation Releasing my project Payload - an All in One command development tool to run commands far longer than the command block character limit of 32500.

19 Upvotes

I've spent the past little while making this project and getting it to a usable state that I'm happy with to finally share in its current state. By no means am I anywhere done with what I can do, but I thought I'd share it in its current status with its fully working main appeal, running very long commands and developing them far easier without the pesky character limit standing in my way.

The demonstration model used is of course glados from portal: "Portal 2 - GLados" by RstoneCommand on Block Display Engine. Conventionally it would take 16 commands to paste. Payload is not yet in a state where it can support the entire raw data, so I gave it some tiny lossy compression beforehand where each block was allowed to wiggle a little bit in favor of compressibility. The full compressed block display data is about twice the current capacity of Payload. And yet the raw length of the lossy model is still a double digit amount of command blocks needed to paste, so it doesn't help a whole lot in that regard, but it's able to be condensed down to one with Payload after the lossy compression. I've published the compiled glados as well.

I could rant about more detail here, but I've already done that on the github page: Payload github. It should be straight forward to use if the goal is simply using a long command, which is why I'm releasing it now, but some of its other tools are in uncertain development and may not work reliably or continue working the way that they currently do for a little while. I'd be happy to answer any questions or discuss.

This project literally combines everything I know about commands and makes use of pretty much every single obscure trick I know of, it's the summation of everything I've been doing with all in one commands, all so that I can make the giant self assembling monolith of command blocks far easier than I otherwise would be able to. Reject modernity, return to tps lag!


r/MinecraftCommands • • 2d ago

Help | Java 26.3 /forceload still causes a teleport to lag behind

1 Upvotes

MC version 26.3, Java edition, vanilla, I'm using datapacks for coding

I'm working on an adventure map where the player can teleport back and forth between two dimensions. The two maps are identical, save for the colour scheme and little details. Therefore it's super important that the teleportation is seemless, so the illusion is perfect.

This worked very well in the prototype, but for reasons unimportant to this question I had to move the two maps 400 blocks apart. I added all chunks in both maps to /forceload and tested with growing wheat that they do indeed stay loaded. However, every teleport takes a split second now and there's a fog that clears quickly, but it's very noticeable and destroys the illusion. Didn't have this problem when the maps were only 180 blocks apart.

I've also tried to forceload only the single chunk the player is in (= well, the identical one in the other map), because loading everything means keeping 140 chunks active and I thought it might be a performance issue. Didn't change anything, still the delay and fog. I've also tried summoning an enderpearl in that chunk both with and without the forceload, no difference.

How can I make the teleport more seemless?


r/MinecraftCommands • • 2d ago

Creation This was genuinely hell to do, as there was basically zero information on this online. (Especially on modern versions.)

525 Upvotes

This was genuinely hell to do, as there was basically zero information on this online. (Especially on modern versions.)


r/MinecraftCommands • • 2d ago

Discussion Hrlp

Post image
0 Upvotes

Hey guys! I’m working on a big project in Minecraft: making a fully functional Granny map! I’m trying to make everything work just like the original Granny horror game, but I need your guys’ help.

Here are the three things I want to start with:

  1. The bells: How can I make a simple bell-ringing system using just a bell and other items for the backyard and front door, so that when I walk over it, the bell rings?
  2. The bed: How can I make a bed that I can actually hide under?
  3. The attic spider room: How can I make a door that opens into the spider room in the attic when I use the special key?

I’ll be using your suggestions to help bring the Granny map to life! The only thing is, I’m not sure whether my Minecraft is Java or Bedrock Edition.

If you need to know, I play Minecraft on my Nintendo Switch 2, so that’s how I play!

BTW I’m talking about the Granny horror game


r/MinecraftCommands • • 3d ago

Help | Bedrock How would I change biomes in minecraft bedrock?

2 Upvotes

Like how would i change a bit of the plains biome into a snowy tundra for example.


r/MinecraftCommands • • 3d ago

Help | Java 26.3 Use /title command to show dummy scoreboard

1 Upvotes

I'm new to using scoreboards and am making a team game. Made two scores with

/scoreboard objectives add redscore dummy {text:"Red Score"}

/scoreboard objectives add bluescore dummy {text:"Blue Score"}

And now I'm trying to print it to players whenever a point is won with /title, but no matter what I try, the title comes back up empty.
I've been using the command as /title \@a title [{"score":{"name":"*","objective":"*"}}] with as many permutations as possible in name and objective and it always comes back blank, and looking it up online doesn't bring me any answer

Does anyone have any answer on how I can make the scoreboard show up? Thank you in advance!


r/MinecraftCommands • • 3d ago

Help | Bedrock Can some one help with commands in bedrock

2 Upvotes

I want an orbital strike cannon in bedrock but i tried many times but it didint work


r/MinecraftCommands • • 3d ago

Request how to showcase my pack?

6 Upvotes

Hi guys! I'm a small mod/datapack creator but I'm so bad at the video making and such.
I think that my content would be more appreciated if I could "showcase" it with a small 30s - 1min video or tiktoks.
It's not really about money, it's just about my work behind recognized.

Do you think I could pay someone for that? How could I be sure their video content is going to be good? Is there even a market for this?
Tell me where and who to look for.

Thanks for the help ;)


r/MinecraftCommands • • 3d ago

Help | Java 1.21.11 Help: playing global world sounds from java command blocks (1.21.1)

0 Upvotes

(the flair says 1.21.11, but I run java 1.21.1, thats as far back as the flairs will let me go though, also, & is used in place of the AT symbol, because reddit mistakes it for a user request and overwrites it)

Hi, I have been working on a redstone build that makes use of this command "execute as &a run playsound minecraft:block.bell.use master &s" inside an impulse redstone triggered setup, I was wondering if theres a way to, for example, make it heard anywhere in the world, either by changing the attenuation distance, that being the point where the sound cuts out X blocks away from the block or entity emitting the sound in question, or if I could use the execute command (shown above, doesnt work for some reason), to just play it wherever I happen to be in the world, and then forceload the chunk with the logic and/or command block that runs the sound command, is that possible, please let me know if it is, thx.


r/MinecraftCommands • • 4d ago

Creation It was fun making this and figuring it out

12 Upvotes

idk why it didn't get many views


r/MinecraftCommands • • 4d ago

Help | Java 26.3 Playsound Help (to combine with other commands)

1 Upvotes

Hi All. I currently have a set of command blocks that upon a players death, teleports them all to the same place, displays text and decreases the world border.

I really want to include the thunder sound to play once upon the player's death. I've tried including it in my current command chain, setting it aside in a repeating and impulse command block, but it never activates?

I have a video of the closest I've gotten (it repeats 10x upon death), but I've lost how I achieved it. Happy to post it if needed.

Current Setup:

Impulse (separate)

/scoreboard players add (@)a deaths

Repeating

/execute if entity (@)e[type=minecraft:player,scores={deaths=1}] run scoreboard players set (@)a deaths 0

Chain

teleport (@)a 0 0 0

Chain

title (@)a title {"text":"Someone Has Died"}

Chain

worldborder add -50

Repeating (separate)

/execute if entity (@)e[type=minecraft:player,scores={deaths=1}] run playsound minecraft:entity.lightning_bolt.impact master (@)a ~ ~ ~ 10 0.5 0.5