Package: innercore-mod-toolchain
Inner Core Mod ToolchainInner Core Mod Toolchain for Horizonis a toolchain that allows you to efficiently develop and build modifications for mobile Minecraft: Bedrock Edition directly from your PC.RequirementsTo work correctly, this toolchain requires:Python3.7 or highernode.js10.15.1 or higher (for TypeScript modding),tscmust also be installed (to do this, runnpm install -g tsc)Android NDKversion r16b (for C++ modding), otherwise it can be installed by toolchain when neededJava Development Kit 1.8(for Java modding)It is obligatory to install only first component, the rest can be installed when necessary.InstallationYou can simply download repository, however we recommend using install script. It will help you install all necessary components for more efficient use. Open a terminal in the folder that will be used to install toolchain and enter command following the information from interactive console.python-c"from urllib import request; exec(request.urlopen('https://raw.githubusercontent.com/zheka2304/innercore-mod-toolchain/master/toolchain-setup.py').read().decode('utf-8'))"Alternatively, savetoolchain-setup.pyfor more installation and import options. Run the following command for more details.pythontoolchain-setup.py--helpModding with Visual Studio CodeFor the best user experience, it is recommended to installVisual Studio Code. This environment is great for modding and can be easily improved with extensions and toolchain itself. This repository already contains all necessary files for easy interaction with this editor.It is also recommended to install the following extensions:ESLint (Microsoft), TSLint now deprecatedC/C++ Extension Pack (Microsoft)Extension Pack for Java (Microsoft)Just clone ordownload this repositoryand opentoolchain.code-workspace, it contains everything you need to start your journey! UseCtrl+Shift+Bto access all available options.Modding with IntelliJ IDEAMost of the features are also implemented to work withIntelliJ IDEA. Use build menu to access the available scripts, or use console for more information.Modding with a third party editorInner Core Mod Toolchain does not require an installed editor, much less an environment, to develop mods. You can run build and configuration scripts directly from console or by opening files located intoolchain/toolchainfolder. We recommend checking out thetoolchain/toolchain/python/task.pyscript for details.Multiproject? I really want it?Now toolchain works with projects as separate components. We've just made things easier for you by separating the settings of toolchain from most build.Use the imports below to simply copy yourmake.jsonproject into updated toolchain, and if you don't like something, you can always revert to old one. Shall we try?First buildTo start the first build, useBuildtask or run./build-all.bator./build-all.shfrom console. You will be prompted to select a project, install additional components, and connect to the device. Most of these operations will no longer be required.Configuration filesThere are three types of configurations for managing projects, builds, and the toolchain itself. They describe complete process of building your project.make.json — to control the assembly of projectstoolchain.json — toolchain configuration and basic properties formake.jsontemplate.json — template for subsequent generationmake.jsonA detailed description of each of the files can be found inarticle.Importing, creating and removing projectsFor each of the operations, tasksImport Project,New ProjectandRemove Projectare provided, respectively, as well as commands./import-project.bat,./import-project.sh,./new- project.bat,./new-project.sh,./remove-project.batand./remove-project.sh. All operations are accompanied by interactions in console, which means that a detailed description of each of them is not required.Selection between your projectsUse theSelect Projecttask or./select-project.bator./select-project.shcommand to open selection menu. In case you can't find your project, checkprojectLocationsproperty in yourtoolchain.jsonor import the project using toolchain.In addition, for Visual Studio Code tasksSelect Project by Active File,Build by Active File, e.g. are provided. They are hidden fromCtrl+P > Tasks: Run Taskmenu by default, but are available from the build menuCtrl+Shift+Band can be displayed by changing.vscode/tasks.jsonmanually.Distribution updateRun theCheck for Updatestask or./update-toolchain.bator./update-toolchain.shcommand. Local components and toolchain itself will be rechecked for updates. When updating, only the folder of toolchain itself is affected, only configuration files and scripts are changed. The rest of files cannot be deleted under any circumstances, or they will be moved to a copy with.baksuffix.Component managementComponents can be installed usingIntegrity Componentsor commands./component-integrity.bator./component-integrity.sh. You can install or update them at any time using the same command, there is no uninstallation for components.Publishing projectOnce development is complete, the next step is to publish toMod Browser. Execute theAssemble Mod for Releasetask or./assemble-release.bator./assemble-release.shcommand. An archive<folder_name>.icmodwill be created at the root of folder. It is already completely ready for publication to site. Readarticlefor details.Documentation and futher stepsAll documentation is available athttps://docs.mineprogramming.org. Here you can find information about available APIs, learn the basics of modding and get acquainted with existing projects.Slightly outdated, but no less useful information can be found athttps://wiki.mineprogramming.org.ContributionYes, and yes again! Fork repository to yourself, we will all be happy with the new functionality. Development is done ondevelop branch, any pull requests outside this branch will be rejected.