X

NOTICE

Are you sure you want to report this?

A feedback area designed for scripting and mods suggestions and feedback. Please note bug reports and support issues will be removed.

116

New data for datapack : Command (Custom Commands)

8 Comments

Post a new comment:

Please sign in to leave a comment.

  • 3
    Comment actions Permalink

    I like that you can decide if non-OP player can use that command or not.

  • 6
    Dylan Jones commented
    Comment actions Permalink

    Even better than "op" requirement: allow the command to set the "operator level", the 1-4 scale.

  • 1
    Comment actions Permalink

    What would also suit this change is:

    • Scoped variables (allows function/command recursion) instead of global scoreboard
    • String variables (allows string arguments in commands)

     

  • 0
    xBowMatt commented
    Comment actions Permalink
    It's possible ? To do that  ?
  • 1
    Zarkmend ZAN commented
    Comment actions Permalink

    Well, I have an example for getting a local player name:

    `{
    "getlocalplayername": {
    "versions": [
    {
    "description": "commands.getlocalplayername.description",
    "permission": "any",
    "is_hidden": true,

    "overloads": {
    "default": {
    "input": {
    "parameters": []
    },
    "output": {
    "format_strings": [
    {
    "format": "{0}"
    }
    ],
    "parameters": [
    {
    "name": "localplayername",
    "type": "string"
    }
    ]
    }
    }
    }
    }
    ]
    }
    }`
    As you can see here, "format_strings" can be used in text formatting, set the message color and conditions for the message to display. The "permissions" object is more suitable for this. "is_hidden" is included.

  • 0
    Awin Awin commented
    Comment actions Permalink

    This is great idea

  • 1
    Tim Herten commented
    Comment actions Permalink

    I'd love for your idea to be realized, because I realized that running functions can't be compared to commands like gamemode or scoreboard. But actually, I'd want them be like that. In several projects now I simply don't need a looped function and who wouldn't prefer that if it's possible, right? But then always running /function project:blabla and quickly finding the one, within sometimes a couple 50, is a bit annoying for the purpose.

    This is my first time commenting on feedback, is there way to keep up in case something happens considering this topic? I'd love to know where this goes

    Edit: For this purpose tho it might be enough, if you could simply create an alias for a certain function. Still like the idea tho!

  • 0
    theogiraudet commented
    Comment actions Permalink

    Tim Herten
    Thanks for your answer! You can follow the suggestion by clicking on the button at the top of the topic ;)