![]() That file may contain other messages, but this should be found somewhere within it. The print function will log a message into the minetweaker.log file in your minecraft directory. The most basic function in the print function, as shown below. In ZenScript, a function is a procedure that does something, like add or remove a recipe. It is recommended you use the Atom Text Editor, along with the Atom-MineTweaker package rather than a normal text editor, but it is not required.Īlternative packages exist for other editors, including Notepad++, Visual Studio Code, and Sublime. ZenScript is relatively simple compared to other programming languages, as it is created specifically for MineTweaker. ZenScript looks much like JavaScript or Java. It allows for more advanced features, such as loops. Unlike in MineTweaker 2, MineTweaker 3 is built on top of a custom programming language named ZenScript. ![]() ![]() The name of these files does not matter to the scripts or MineTweaker, however it is recommended to not uses spaces or symbols (excluding underscores) for the sake of convention and ease of access. All scripts are written in files with the ".zs" file extension (for example, "witchery.zs"). ![]() ![]() This should be at the same level as the "/mods/" and "/config/" directories. 4 Calling a function with multiple parameters and adding shaped recipesīefore you can write any MineTweaker scripts, install MineTweaker and create a "/scripts/" directory in the "/minecraft/" directory, if it is not already there. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |