ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

MCFunction

by AjaxGb ST3

A Sublime Text 3 plugin to add support for Minecraft function files (.mcfunction).

Details

Installs

  • Total 3K
  • Win 2K
  • Mac 245
  • Linux 179
Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6
Windows 1 1 0 0 0 1 0 1 0 0 1 0 0 0 2 0 1 3 0 0 1 0 0 1 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime-MCFunction

A Sublime Text 3 package that adds syntax highlighting and other functionality for Minecraft's function file format (.mcfunction) added in the 1.12 prereleases.


WARNING: This package is no longer being maintained! It does not support Minecraft 1.13, or any version afterwards. I recommend moving to Arcensoth's language-mcfunction package, which supports both VS Code and Sublime Text, and is being actively updated.


Demonstration of highlighting
Shown using Monokai

Highlights comments, commands, entity selectors, numbers, namespaces, NBT, this.sort.of.thing, blockstates, and more (depending on color theme support).

Points out errors in NBT syntax, as well as invalid forward slashes at the beginnings of lines.

You can add special highlighting to comments by beginning them with #~.

Package Control Installation

Recommended! Among other things, Package Control will automatically keep this package up-to-date.

  1. If you have already installed MCFunction manually, delete the manual installation. Sublime may warn you that it is unable to find the package; this is fine. You'll be adding it back in a moment.
  2. If you haven't already, install Package Control. https://packagecontrol.io/installation
  3. Follow Package Control's instructions for installing packages. https://packagecontrol.io/docs/usage
    1. Open the Command Palette with Ctrl+Shift+P or Cmd+Shift+P.
    2. Select the command “Package Control: Install Package”.
    3. Select “MCFunction” from the list of installable packages. Don't see it? Make sure that you have the latest version of Sublime Text 3, and that you have completed step 0.

Manual Installation

  1. Download the repository. You can do this by using Git or by downloading it as a .zip.
  2. Open the Packages folder by selecting “Preferences” > “Browse Packages…” in Sublime Text.
  3. Place the (extracted) repository folder in the Packages folder.