一个模板项目,帮助人们使用 Meteor Client Addon API。
A template to allow easy usage of the Meteor Addon API.
Use this template button in the top right corner of this page.git clone --depth 1 https://github.com/MeteorDevelopment/meteor-addon-template your-addon-name
cd your-addon-name
rm -rf .git
git init
git add .
git commit -m "Initial commit from template"Minecraft Client configuration in your IDE.
This will start a Minecraft client with the Meteor Client mod and your addon loaded.build task. This will create a JAR file in the build/libs folder.mods folder of your Minecraft installation, alongside the Meteor Client mod and run the
game.To update this template to a newer Minecraft version, follow these steps:
gradle/libs.versions.toml (the versions catalog):versions.minecraft - Minecraft versionversions.fabric-loader - Fabric loader versionversions.meteor - Meteor Client snapshot version[libraries] section, update their versions there as
needed.loom version in gradle/libs.versions.toml (the versions.loom entry) to the latest version
compatible with the new Minecraft version../gradlew wrapper --gradle-version && ./gradlew wrappergradlew.bat wrapper --gradle-version && gradlew.bat wrappergradlew, gradlew.bat, etc.) for the specified version.build task.…This is the default project structure. Each folder/file has a specific purpose.
Here is a brief explanation of the ones you might need to modify:
.github/workflows: Contains the GitHub Actions configuration files.gradle: Contains the Gradle wrapper files and the versions catalog. libs.versions.toml: Defines version numbers for Minecraft, Loom, Meteor, and other dependencies.wrapper: Contains the Gradle wrapper executable files.src/main/java/com/example/addon: Contains the main class of the addon.getPackage method to reflect the package of your addon.src/main/resources: Contains the resources of the addon.assets: Contains the assets of the addon.template: Contains the assets of the template.icon.png file with your own addon icon.addon-template.mixins.json: Contains the Mixin configuration for the addon.client array.fabric.mod.json: Contains the metadata of the addon.build.gradle.kts: Contains the Gradle build script.fabric-loom version up-to-date.gradle.properties: Contains additional build properties used by the build script
(for example maven_group and archives_base_name).gradle/libs.versions.toml.LICENSE: Contains the license of the addon.README.md: Contains the documentation of the addon.This template is available under the CC0 license. Feel free to use it for your own projects.
暂无开放 Issues,或尚未同步最近议题。