-
Notifications
You must be signed in to change notification settings - Fork 18
Merge novalattasya's Baritone only fork #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 1.21.10-Only-Baritone
Are you sure you want to change the base?
Changes from all commits
a94a953
9682295
4335c59
b1e63df
d799c27
d5d37fd
ebb7459
828773a
fd1afb1
51253ad
50e6f70
78ecfb0
8924f9c
fefc6f9
724a6f7
ab5b111
12ca791
d9bc6ad
9b39dc0
1be9738
6a67b9c
c26b741
8d19284
adf5a30
a6ce9b5
be5ac37
454aeb0
82874c2
6cfb4a5
e0027ac
6a08432
888e0cb
26aba60
438eb4d
f29d40b
538dda9
1b79769
061d043
c1ed6bf
3ab97ae
8fb3b0d
eac939d
4df6adf
7474dea
37f5a98
4a46d71
a379ff1
807ccae
bf546fd
6afb4e4
dbec1da
da60084
db3bab2
19098ac
1dc9cba
c4142fb
d2cbf40
6b93605
f6f7fd0
9924906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Auto Build on Push | ||
| on: | ||
| push: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache Gradle | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.gradle/caches | ||
| ~/.gradle/wrapper | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle/wrapper/**', '**/gradle-wrapper.properties') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
|
|
||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
|
|
||
| - name: Set up Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: 21 | ||
| cache: 'gradle' | ||
|
|
||
| - name: Make gradlew executable | ||
| run: chmod +x ./gradlew | ||
|
|
||
| - name: Build with Gradle | ||
| run: ./gradlew build -Pcommit=${{ github.sha }} | ||
| env: | ||
| CI: true | ||
|
|
||
| - name: Upload Build Archive | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build-archive | ||
| path: build/libs/*.jar |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,42 @@ | ||
| package xyz.omegaware.addon; | ||
|
|
||
| import meteordevelopment.meteorclient.MeteorClient; | ||
| import meteordevelopment.meteorclient.commands.Commands; | ||
| import meteordevelopment.meteorclient.pathing.BaritoneUtils; | ||
| import meteordevelopment.meteorclient.systems.hud.Hud; | ||
| import meteordevelopment.meteorclient.utils.Utils; | ||
| import net.fabricmc.loader.api.FabricLoader; | ||
| import net.fabricmc.loader.api.metadata.ModMetadata; | ||
| import xyz.omegaware.addon.commands.LinkCommand; | ||
| import xyz.omegaware.addon.commands.ShulkerQueueCommand; | ||
| import xyz.omegaware.addon.hud.OnlineTSRMembersHUD; | ||
| import xyz.omegaware.addon.modules.*; | ||
| import com.mojang.logging.LogUtils; | ||
| import meteordevelopment.meteorclient.addons.GithubRepo; | ||
| import meteordevelopment.meteorclient.addons.MeteorAddon; | ||
| import meteordevelopment.meteorclient.systems.hud.HudGroup; | ||
| import meteordevelopment.meteorclient.systems.modules.Category; | ||
| import meteordevelopment.meteorclient.systems.modules.Modules; | ||
| import org.slf4j.Logger; | ||
|
|
||
| import java.io.File; | ||
|
|
||
| /** | ||
| * Slimmed-down addon entrypoint: only registers BetterBaritoneBuild. | ||
| */ | ||
| public class OmegawareAddons extends MeteorAddon { | ||
| public static final String MOD_ID = "omegaware-addons"; | ||
| public static ModMetadata MOD_META; | ||
| public static final Logger LOG = LogUtils.getLogger(); | ||
| public static final Category CATEGORY = new Category("OmegaWare"); | ||
| public static final HudGroup HUD_GROUP = new HudGroup("OmegaWare"); | ||
|
|
||
| public static File GetConfigFile(String key, String filename) { | ||
| return new File(new File(new File(new File(MeteorClient.FOLDER, "omegaware"), key), Utils.getFileWorldName()), filename); | ||
| } | ||
|
|
||
| @Override | ||
| public void onInitialize() { | ||
| LOG.info("Initializing OmegaWare Addons"); | ||
| LOG.info("Initializing OmegaWare Addons (pruned, BetterBaritoneBuild only)"); | ||
|
|
||
| MOD_META = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow().getMetadata(); | ||
|
|
||
| // Modules | ||
| Modules.get().add(new TPAAutomationModule()); | ||
| Modules.get().add(new BeaconRangeModule()); | ||
| Modules.get().add(new ChatFilterModule()); | ||
| Modules.get().add(new ItemFrameDupeModule()); | ||
| Modules.get().add(new BetterStashFinderModule()); | ||
|
|
||
| if (FabricLoader.getInstance().isDevelopmentEnvironment()) { | ||
| Modules.get().add(new TSRKitBotModule()); // Is not ready yet | ||
| } | ||
|
|
||
| // Only register the BetterBaritoneBuild module if Baritone is available. | ||
| if (BaritoneUtils.IS_AVAILABLE) { | ||
| Modules.get().add(new BetterBaritoneBuild()); | ||
| Modules.get().add(new xyz.omegaware.addon.modules.BetterBaritoneBuild()); | ||
| } | ||
|
|
||
| Commands.add(new LinkCommand()); | ||
| Commands.add(new ShulkerQueueCommand()); | ||
|
|
||
| Hud.get().register(OnlineTSRMembersHUD.INFO); | ||
| } | ||
|
|
||
| @Override | ||
|
|
@@ -74,9 +54,10 @@ public String getWebsite() { | |
| return "https://github.com/Omega172/OmegaWare-Addons"; | ||
| } | ||
|
|
||
| // Update repo version tag to reflect Minecraft target (kept simple). | ||
| @Override | ||
| public GithubRepo getRepo() { | ||
| return new GithubRepo("Omega172", "OmegaWare-Addons", "1.21.4", null); | ||
| return new GithubRepo("Omega172", "OmegaWare-Addons", "1.21.10", null); | ||
| } | ||
|
Comment on lines
+57
to
61
|
||
|
|
||
| @Override | ||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow hardcodes
mc_version=1.21.5, but the build defaults totarget_version=1_21_10inbuild.gradle.kts(andgetRepo()also reports1.21.10). This can create release tags/names that don’t match the jar that was actually built. Consider derivingmc_versionfrom the same Gradle property used for the build, or pass-Ptarget_version=...explicitly and setmc_versionaccordingly.