John-Paul-R / Essential-Commands

Configurable, permissions-backed utility commands for Fabric servers (tpa, home, warp, spawn, back, nick, rtp)
MIT License
108 stars 34 forks source link

✨40+ New commands for this mod #275

Open User4716 opened 6 months ago

User4716 commented 6 months ago

I found this mod https://modrinth.com/mod/essentials-commands with some amazing utility commands, but its for Forge and I don't use Forge and I want these commands on Fabric, so here I am. Here's a list of commands you can develop overtime, and remember of course you don't have to do any of these, I'm just giving ideas.

And yes, I think that the list below might still contain some unnecessary commands, but I left them in because the thing is that there's always someone in some specific scenario who will find it useful.

β€Ž

πŸͺ„ Additionally when playing on a multiplayer server where you do not have operator status, your client should not show operator-only commands or any commands that wouldn't work in the server in the TAB completion list. This function could be turned off if you wish to see the commands that this mod adds even if you can't execute them. But the config will by default hide these commands.

πŸͺ„Every [player] argument will not only show a list of all the online players in the TAB completion menu, but also the entity selectors that you can find in any vanilla command (@p, @s, @e etc...)

Old list: https://gist.github.com/User4716/91fdf30b40c3d6804c75d89edc75ab63

β€Ž πŸ’I hope you didn't get overwhelmed by the amount of these commands, but if you do feel overwhelmed or pressured to do all this, you're taking this the wrong way. I spent a lot of time coming up with this list of ideas, and I'm only presenting this list to you for you to just look at it! And maybe you'll find a few of them useful and consider making them into reality. I'm sure there are many people who would appreciate many of these commands available on Fabric servers. And when you have the time and motivation to improve this mod, you could just start one by one making the commands you feel are the most important ones. This way I'm sure this mod will be a necessity for all modded servers in just a few months! πŸ˜‰ β€Ž

v2.4

orxngc commented 5 months ago

+1 for mute, sudo, and suicide. I believe /trash (it's called wastebin) and /top has already been implemented.

User4716 commented 5 months ago

I removed the /trash command from the original suggestion

arnokeesman commented 4 months ago
John-Paul-R commented 4 months ago

O.o github? I can edit someone else's list. Not sure if that's cool or terrifying lol


Anyway, some comments:

mute, unmute - EC doesn't aim to be a moderation tool

+1 to the rest of arno's comments, ty for going through those full agree on the rest from arno

Dragonizedpizza commented 4 months ago

could you also add /msg (message user), /r (reply to the last person you sent a message to) and /spy (view other people's whispers)

User4716 commented 4 months ago

Yeah, I'm sorry I was lazy when I made this suggestion. I didn't have time to go through all of the commands and remove the unnecessary ones

John-Paul-R commented 4 months ago

Can someone explain to me how a /sudo would differ from /execute? (I ask because it was mentioned a second time and got thumbsups)

orxngc commented 4 months ago

Can someone explain to me how a /sudo would differ from /execute? (I ask because it was mentioned a second time and got thumbsups)

/sudo would not just be a /execute alias. One difference would be for example: /sudo orangc summon minecraft:cow Which would summon a cow at the location of orangc. Using /execute with this though would just summon the cow at the location of the executer, even if you used relative locations like this: /execute as orangc run summon cow ~ ~ ~ I might be wrong though.

arnokeesman commented 4 months ago

/execute at name run summon cow

orxngc commented 4 months ago

/execute at name run summon cow

Good point, I feel like there's something I'm missing. Other than this: What about summoning the cow ~ ~ ~50 instead of ~ ~ ~? I'm forgetting something important though πŸ€”

John-Paul-R commented 4 months ago

Fundamentally, you can think of /execute as changing the context of the command you run with it. This means /execute at <player> run <command> runs the command as if the command sender had the position of <player>.

Knowing that, to summon the cow 50 blocks +Z of the target player (I assume that's what you want with ~ ~ ~50), you would do: /execute at <player> run summon cow ~ ~ ~50. To summon it a few blocks above their head, similarly: /execute at <player> run summon cow ~ ~5 ~.

John-Paul-R commented 4 months ago

Further reading (the docs on /execute are actually quite nice, and come with examples): https://minecraft.fandom.com/wiki/Commands/execute#at

User4716 commented 3 months ago

I updated the list and actually went trough all of them, removed unnecessary ones, and added a little too many new ones to it. At least you won't run out of ideas πŸ™„

Also, a little disclaimer, I understand that you said that "EC doesn't aim to be a moderation tool" but I couldn't resist but to just leave /mute, /unmute and /tempban in the list :> I know most people will use a plugin to moderate servers, but if someone can only have mods their server this would be a lifesaver.

And finally, the only way we could make the /sudo command useful is to actually make it force players to run the command, ignoring their operator status. You see where I'm going? With this you could sudo a non-OP player to for example go to creative, or do anything. Your imagination is the only limit now! (And this is not unheard of, a plugin managed to accomplish this simple goal of ignoring the permission check when running a command, so a mod should also probably be able to do it.) This would allow for some crazy things and creations πŸ‘

Dragonizedpizza commented 3 months ago

you forgot message and reply

User4716 commented 3 months ago

you forgot message and reply

Thanks for letting me know, I added /reply and /msgtoggle commands to the list. (Also an alias /r) Minecraft already has a /msg command so I didn't see a reason to suggest that command. Could you tell me why would you want that?

PS. For the owner of this mod, I added a little ending speech to the original suggestion for you, so you won't take this huge list of commands the wrong way :)