在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):minecraft-addon-tools/minecraft-addon-toolchain开源软件地址(OpenSource Url):https://github.com/minecraft-addon-tools/minecraft-addon-toolchain开源编程语言(OpenSource Language):JavaScript 80.7%开源软件介绍(OpenSource Introduction):NoticeMojang has deprecated the bedrock scripting API in favour of the GameTest API. This repository has been archived as a a result. minecraft-addon-toolchainHelps with some common tasks when building a minecraft mod for Bedrock edition:
Prerequisites
Scripting in Minecraft is currently only officially supported on Windows 10 Bedrock Edition Beta, however there have been reports that users have been able to use alternative launchers to get scripting working on other platforms, and although the toolchain attempts to support Linux, Mac OS and Android, they are currently untested and support for these platforms is limited. (I am happy to take PRs to improve the experience) Getting the Bedrock Edition BetaMojang provides instructions on how to get into the Beta program here: How to get into Minecraft betas Getting StartedEnsure you have a package.json file present in your development directory, if you do not, you can create a minimal valid package with the following contents: {
"private": true
} install the package (It's not currently available on NPM, you'll have to use the Github repository)
This will automatically install gulp vNext (4.0.0) Create a gulpfile.js gulp configurationuse the following as a template for your gulpfile.js, replacing const MinecraftAddonBuilder = require("minecraft-addon-toolchain/v1");
const builder = new MinecraftAddonBuilder(<youraddonname>);
module.exports = modBuilder.configureEverythingForMe(); The MinecraftAddonBuilder object can be used to create your own tasks, but the default tasks configured by Next, update your package.json with appropriate scripts, here are some useful scripts "scripts": {
"build": "gulp build",
"installaddon": "gulp install",
"rebuild": "gulp rebuild",
"watch": "gulp watch"
},
ConventionsThese scripts will assume a certain directory structure by default. These can be overridden by altering properties on the
an example of changing the build directory would look something like this: const MinecraftAddonBuilder = require("minecraft-addon-toolchain/v1");
const builder = new MinecraftAddonBuilder(<youraddonname>);
builder.bundleDir = "./bundle";
builder.packageDir = "./package"; Using pluginsWe provide the following plugins. Because plugins insert themselves into the toolchain, their order is dependent. Refer to their individual read me files for installation and usage.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论