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

6

Advancements can run functions as macro

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    This would add a lot of functionality. Think of adding custom scoreboard data and announcing it to the player just by doing something like (but in datapack advancement format):

    /function pack:currency {add:10}

    That way only one function has to be created to be used by normal functions and advancements.

  • 0
    Registered User commented
    Comment actions Permalink

    I don't see the use in accessing player nbt, since the function will be ran from the player getting the advancement. Something like the following would already be more than plenty useful: 

    "function": "datapack:function {\"value\":\"10\"}"

    This would keep the same structure, or something like:

    "function": {
    "path": "datapack:function",
    "macro": {
    "value": 10
    }
    }