We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

500

Add the /customcommand

74 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 22
    Registered User commented
    Comment actions Permalink

    First of all, that would take years of coding. Second of all, as far as I know, it’s impossible. Just creating your own command sounds cool, but it is way to complex to be a feature.

  • 17
    Registered User commented
    Comment actions Permalink

    if its about making a shortcut command (a custom command that you can make that does a longer command), or a command that can do a sequence of commands at once, I love it

  • 22
    Registered User commented
    Comment actions Permalink

    "/function" is an existing command that can do a sequence of commands

  • 7
    Registered User commented
    Comment actions Permalink

    No.

  • 8
    Registered User commented
    Comment actions Permalink

    I think that if this was in-game you could make it only activate multiple commands at once or a short way of typing  a long command E.G. /gohome tps you to you house 

    syntax /customcommand add <name> <command1> <command2> <command3>

    syntax details. name:what you will type in the chat to activate the command(s) will be prefixed by / automatically

    command1/2/3 the commands to execute when the command is entered

     

  • 3
    Registered User commented
    Comment actions Permalink

    Not with a command, but maybe with datapacks. I've already suggested functions with parameters and function commands that run these functions, that could do what you suggested.
    IMO it'd make much more sense than a command that creates commands.

  • 7
    Registered User commented
    Comment actions Permalink

    The problem with /function is the granting of some, but not necessarily all players the right to use it the way /trigger does.
    The problem with /trigger is the arcane way for players to do something simple like "/home": /trigger home set 1.

    I would suggest a "custom command" in the form of an *alias*. /home could be an *alias* for /trigger home set 1 with the "permissions" checking actually done by /scoreboard as part of the /trigger command, but the *player* only has to remember /home.

    Or for a function, it's the same: "/function something/dothing" can be aliased to "/dothing."

  • 1
    Registered User commented
    Comment actions Permalink

    You could just make shortcuts of existing commands, and for more advanced circuits you just setblock redstoneblock next to a chain line. /wood is much easier and shorter than /give player wood, /gm1 is much easier and shorter than /gamemode 1.

  • 1
    Registered User commented
    Comment actions Permalink

    The brigadier library makes it extremely easy to add commands with a simple mod. For that reason I don't think it's necessary to support with overkill JSON files.

    https://github.com/Mojang/brigadier

  • 2
    Registered User commented
    Comment actions Permalink

    I would love that so you could create your own commands without mods, and do you want that in MCPE, and Java edition, or just Java edition, or just MCPE?

  • 4
    Registered User commented
    Comment actions Permalink

    We like suggestions for all versions of Minecraft here. :)

  • 1
    Registered User commented
    Comment actions Permalink

    ok sounds like a plan

  • 2
    Registered User commented
    Comment actions Permalink

    "First of all, that would take years of coding." How? It would just be an alias for a /trigger or /function

  • 0
    Registered User commented
    Comment actions Permalink

    Я бы хотел создавать свои комманды и 5おd日ぇ

  • 0
    Registered User commented
    Comment actions Permalink

    とても良い考え :3

  • 0
    Registered User commented
    Comment actions Permalink

    Yesss please mojang add this please to bedrock edition

  • 1
    Registered User commented
    Comment actions Permalink

    I really did want to make my very own command 😊 ¬_¬

  • 0
    Registered User commented
    Comment actions Permalink

    I really want to do commands or like example to dance but I just can't! I want to dance or cry or do what I want to do. It is just I don't have the mods or things you need I don't know. But you get what I'm saying right?

  • 0
    Registered User commented
    Comment actions Permalink

    You could make it to were you could make your own command name (Like /hub, /spawn, or /lobby) and have them do other commands like [/tp 1 2 3]. You could make it to were only specific could use it. (So like any one could do /hub, but others could do /i commandblock)

  • 0
    Registered User commented
    Comment actions Permalink

    This would work not as creating a command but as creating a shortcut right? For example: /customcommand gms = gamemode survival @s. or maybe it could use /shortcut create/remove/view? /shortcut create killwithers = kill @e [type =wither] or somthing like that. Great idea

  • 2
    Registered User commented
    Comment actions Permalink

    I think the format would be:

    /commandalias <name> <op level> <command1> <command1's variable> <command2> and so on.

    btw op levels are 0 = anyone, 1 = any operator, 2 = the owner of the world.

    Example: /commandalias "killall" 2 /kill @a

    Or, /commandalias "what" 0 /help <page> /say what

    Usage: /killall (everyone dies)

    /what 3 (brings up page 3 of /help then says <user>: what)

  • 0
    Registered User commented
    Comment actions Permalink

    I think it’s a great idea keep coming up with those ideas!

  • 1
    Registered User commented
    Comment actions Permalink

    What your saying does not make sense. Maybe it COULD be a command that runs existing commands at the same time.

  • 1
    Registered User commented
    Comment actions Permalink

    I feel like this could almost be feasible. Because all you'd need to do is allow individual worlds to have their own command lists, which could be a good idea for adventure maps anyway. And then you could set up a similar situation like /tp and /teleport, where multiple commands do the same thing. And then you need to make the option to make the command have multiple syntax.

  • 1
    Registered User commented
    Comment actions Permalink

    This would be a really great addition to the game as things like clone commands can get messy really quickly so just being able to type a small command would make it much easier

  • 0
    Registered User commented
    Comment actions Permalink

    Like a function in java

     

  • 0
    Registered User commented
    Comment actions Permalink

    You can already sort of make "custom commands" with the /trigger command

  • 0
    Registered User commented
    Comment actions Permalink

    yeah why not add /customcommand level (1 2 3) [<trigger>] [<command>] <syntax>

    1 everyone 2 all ops 3 owner / person who created world

    syntax can me like worlds or something like you type in chat /customcommand level 1 123 5 /something 123 and when someone types "/something 123" it is the same as "/trigger add 123 5" (i thing thats how trigger works)

    so u can make something like /customcommand level 1 spawn 1 /spawn and it = /trigger add spawn 1

    or maby just add it in data packs and do something like skript commands but build into minecraft

  • 0
    Registered User commented
    Comment actions Permalink

    I would make a command which gives you a lambogini!!!!

  • 0
    Registered User commented
    Comment actions Permalink

    Tho, that would make it easier. It's time consuming and difficult for the Mojang team