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

9

Mcfunction formatting

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    If you start the line with # that line will be ignored and not executed. So comments

    But only if that is the first character.

    Also, tabs/4spaces would be entirely pointless as you cannot encapsulate a series of commands in {}, only in another mcfunction file. Just put a double linebreak between commands for clarification.

    So

    command1

     

    #Section comment

    command2

  • 0
    Registered User commented
    Comment actions Permalink

    Adding onto what deathconekul said, spaces before commands in functions are already perfectly allowed

  • 1
    Registered User commented
    Comment actions Permalink

    It'd be nice to be able to break out json payloads to commands in nice formatting, they're a pain to edit all one line.