r/MinecraftCommands • • 11h ago

Creation Tesla coil ability

3 Upvotes

first of hopefully many abilities


r/MinecraftCommands • • 11h ago

Help | Java 26.2 How to detect projectile hits?

5 Upvotes

I want to make a custom projectile that doesn't do damage but instead subtracts an amount from a score from the hit player but I don't know how to get the hit detection right. using distance doesn't work since it tracks position and not the player hitbox.

I already know how to get the projectile moving, just need help with the hit detection.

Any help is appreciated.


r/MinecraftCommands • • 19h ago

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

2 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.