.ZS File Extension
What is a ZS file?
A ZS file contains ZenScript programming language, which is used by various Minecraft mods, such as CraftTweaker and MineTweaker, to modify game content. It features a syntax similar to Java and is designed to be simple for Minecraft gamers who do not have extensive programming knowledge.
The ZenScript programming language was originally developed for use with CraftTweaker, a Minecraft mod that enables gamers to modify content, which includes "recipes" These recipes allow users to create new items with resources they gather. The ZenScript programming language is primarily used by modders to add, edit, and delete recipes in the game.
Since ZS files store commands in plain text, you can open and edit the files with any text editor. However, select text editors, such as Notepad++, Visual Studio Code, and Sublime Text, are better options for editing ZS files since they support syntax highlighting of the ZenScript language or plugins that support the language.
NOTE: ZS files must be stored in the [gamedir]/scripts folder to be loaded when a player joins a world in Minecraft.
Programs that open or reference ZS files
What is a ZS file?
A ZS file is a Z-Sharp script. It contains source code written in the Z-Sharp programming language, developed by Sam Astro.
In 2022, YouTuber Sam Astro (also known as AstroSam) posted a video detailing his efforts to create his own programming language and code a game using that language. The language Astro created is known as Z-Sharp.
Z-Sharp uses syntax and formatting similar to the C# and Python programming languages. It contains enough features to code the game Pong (which was Astro's overall goal). According to Astro, the language will likely never be finished. Nevertheless, developers who want to create programs using the Z-Sharp language can save those programs in ZS files, which the Z-Sharp interpreter recognizes as Z-Sharp scripts.
Common ZS Filenames
script.zs - The name of example Z-Sharp scripts included in Z-Sharp's source code.
How to open a ZS file
You can open and edit a ZS file in any text or source code editor, such as Microsoft Visual Studio Code or GitHub Atom. You can run the script a ZS file contains using the Z-Sharp interpreter (Windows, Linux).