X

NOTICE

Are you sure you want to report this?

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

336

Add the /customcommand

54 Comments

Post a new comment:

Please sign in to leave a comment.

  • 9
    tryashtar ⁣ commented
    Comment actions Permalink

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

  • 8
    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.

  • 3
    Tonl YT 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

  • 2
    Comment actions Permalink

    No.

  • 2
    Xdpro2818 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

     

  • 2
    RomaqRosher 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
    Comment actions Permalink

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

  • 1
    OrlaDog 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

  • 1
    Comment actions Permalink

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

  • 1
    iGODfSOUND commented
    Comment actions Permalink

    This would be usefull

    /customcommand add <commandname> (extra) (trigger|function)
    <commandname> : name of the command used

    /customcommand add <commandname> function <function> <operator>
    ex.  /customcommand add home function gos_sethome:home false
           /customcommand add god function gos_admin:god true

    /customcommand add <commandname> trigger <trigger> <parameter> <operator>
    ex.  /customcommand add bid trigger bid true false
           /customcommand add giveDiamond trigger giveItem 8 true
    /customcommand add <commandname> extra <name> trigger <trigger> <parameter> <operator>
    ex.  /customcommand add warp extra spawn trigger warp 1 false
           /customcommand add warp extra adminZone trigger warp 10 true

    /customcommand remove <commandname>
    /customcommand list

  • 1
    Comment actions Permalink

    not gonna lie, I like that idea!

  • 1
    Platacats commented
    Comment actions Permalink

    Agreed

    Would be great for:

    • /discord - For server / realm voicechats
    • /rules - Again for servers

    Adding the ability to use JSON elements with it or a separate file to control them.

  • 1
    Esgow commented
    Comment actions Permalink

    This already exist... You can use the /trigger [Custom Command] there are plenty tutorials on youtube

  • 1
    Louis Spielt commented
    Comment actions Permalink

    It already exists, is called bukkit / spigot.

    Hopefully this mention is allowed here.

  • 1
    Comment actions Permalink

    I would have put in the description:

     

    So let's say that you have a survival world. You made a spawn and you want to teleport to it. You use /customcommand add spawn=[execute=tp coordiates]

    and you use that command like: /spawn

     

    or a rules command: 

    /customcommand add rules=[execute=say these are the rules: igdueweiugewyf]

    and you use that one as /rules.

     

    other subcommands of the /custom command would be /customcommands add[usable=(op / everyone] (command)[execute=command you want it to execute]

    and

    /customcommands remove <command name>

     

    please support this idea if you like it. I have always wanted to have custom commands in minecraft!

  • 0
    Pe brito 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.

  • 0
    Indseta 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.

  • 0
    tryashtar 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

  • 0
    isaac manning 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?

  • 0
    isaac manning commented
    Comment actions Permalink

    ok sounds like a plan

  • 0
    Comment actions Permalink

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

  • 0
    Comment actions Permalink

    とても良い考え :3

  • 0
    s1lv3rm0nster commented
    Comment actions Permalink

    Yesss please mojang add this please to bedrock edition

  • 0
    PastorDarling 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
    CloudPhase 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
    NinjaPuffin5 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

  • 0
    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
    Comment actions Permalink

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

  • 0
    Comment actions Permalink

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

  • 0
    Agrajag1872 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.