Skip to content

Commit

Permalink
Bye Discombobulator!
Browse files Browse the repository at this point in the history
It's time for my annual LoTAS commit that rewrites basically everything and then never touches it again. Today we're yeeting Discombobulator. LoTAS will be 1.16.1 from now on until it's fully developed. From that point we'll have to see..
  • Loading branch information
PancakeTAS committed Oct 18, 2023
1 parent cafc86d commit c384a77
Show file tree
Hide file tree
Showing 51 changed files with 905 additions and 2,069 deletions.
61 changes: 25 additions & 36 deletions .github/workflows/minecraft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,28 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'MinecraftTAS/LoTAS'
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Prepare build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: prepBase --no-daemon
gradle-version: 8.0.2
cache-disabled: true
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: buildCi --no-daemon
gradle-version: 8.0.2
cache-disabled: true
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: LoTAS
path: build/collect/*.jar
- name: Install zip
uses: montudor/action-zip@v1
- name: Zip LoTAS
run: zip -r -j LoTAS.zip collect/*
working-directory: build/
- name: Upload to discord
uses: sinshutu/upload-to-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: build/LoTAS.zip
- name: Check out repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: gradle
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: remapJar --no-daemon
gradle-version: 8.4
cache-disabled: true
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: LoTAS
path: build/libs/*.jar
- name: Upload to discord
uses: sinshutu/upload-to-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: build/libs/*.jar
25 changes: 15 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Exclude build folders
bin/
# Gradle
.gradle
build/

# Exclude more stuff
run/
run-server/
# Eclipse
.metadata/
.settings/
*.launch

# Exclude project files
.classpath
.settings
.gradle
.project
*/src
.factorypath

# Minecraft
run/
run-server/

# IntelliJ
idea/
out
*.iml
14 changes: 0 additions & 14 deletions LoTAS-1.14.4/build.gradle

This file was deleted.

14 changes: 0 additions & 14 deletions LoTAS-1.15.2/build.gradle

This file was deleted.

14 changes: 0 additions & 14 deletions LoTAS-1.16.1/build.gradle

This file was deleted.

14 changes: 0 additions & 14 deletions LoTAS-1.16.5/build.gradle

This file was deleted.

19 changes: 0 additions & 19 deletions LoTAS-1.17.1/build.gradle

This file was deleted.

19 changes: 0 additions & 19 deletions LoTAS-1.18.2/build.gradle

This file was deleted.

19 changes: 0 additions & 19 deletions LoTAS-1.19.4/build.gradle

This file was deleted.

19 changes: 0 additions & 19 deletions LoTAS-1.20.1/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# LoTAS

### Low Optimization Tool Assisted Speedrun Mod

LoTAS is a Mod used to create [Tool Assisted Speedruns](https://en.wikipedia.org/wiki/Tool-assisted_speedrun).

## Bugs / Feature Requests

For bugs and feature requests join [this discord](https://discord.gg/jGhNxpd)
117 changes: 41 additions & 76 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,81 +1,46 @@
// add required plugins
plugins {
// discombobulator preprocessor plugin
id 'discombobulator' version '1.2.1-SNAPSHOT'
// loom plugin
id 'fabric-loom' version "${loom_version}"
// lombok plugin
id 'io.freefair.lombok' version "8.4"
}

// configure discombobulator
discombobulator {
// configure versions
versions = [
"1.20.1: LoTAS-1.20.1",
"1.19.4: LoTAS-1.19.4",
"1.18.2: LoTAS-1.18.2",
"1.17.1: LoTAS-1.17.1",
"1.16.5: LoTAS-1.16.5",
"1.16.1: LoTAS-1.16.1",
"1.15.2: LoTAS-1.15.2",
"1.14.4: LoTAS-1.14.4"
]

// configure preprocessing patterns
patterns = [
GetWindow: [
"def": "mc.window",
"1.15.2": "mc.getWindow()"
],
WorldBorder: [
"def": "renderWorldBounds",
"1.17.1": "renderWorldBorder"
],
RunServer: [
"def": '"run"',
"1.16.1": '"runServer"'
],
Profiler: [
"def": "Lnet/minecraft/util/profiling/GameProfiler;",
"1.16.1": "Lnet/minecraft/util/profiling/ProfilerFiller;"
],
RandomSourceDescriptor: [
"def": "Ljava/util/Random;",
"1.19.4": "Lnet/minecraft/util/RandomSource;"
],
RngSourceClass: [
"def": "Random ",
"1.19.4": "RandomSource "
],
RandomSourceImport: [
"def": "import java.util.Random;",
"1.19.4": "import net.minecraft.util.RandomSource;"
],
PostRender: [
"def": "Lnet/minecraft/client/gui/components/toasts/ToastComponent;render()V",
"1.16.1": "Lnet/minecraft/client/gui/components/toasts/ToastComponent;render(Lcom/mojang/blaze3d/vertex/PoseStack;)V",
"1.20.1": "Lnet/minecraft/client/renderer/GameRenderer;render(FJZ)V"
],
Toast: [
"def": "render(II)Z",
"1.16.1": "render(IILcom/mojang/blaze3d/vertex/PoseStack;)Z",
"1.19.4": "render(ILcom/mojang/blaze3d/vertex/PoseStack;)Z",
"1.20.1": "render(ILnet/minecraft/client/gui/GuiGraphics;)Z"
],
LootTag: [
"def": "Tag<",
"1.18.2": "TagKey<"
],
LootImportTag: [
"def": "Tag;",
"1.18.2": "TagKey;"
],
PoseStack: [
"def": "Object",
"1.16.1": "com.mojang.blaze3d.vertex.PoseStack",
"1.20.1": "net.minecraft.client.gui.GuiGraphics"
],
Quaternion: [
"def": "Object",
"1.16.1": "com.mojang.math.Quaternion",
"1.19.4": "org.joml.Quaternionf"
]
]
// configure jar
base {
// change compiled filename
archivesName = "LoTAS-v${lotas_version}-mc1.16.1"
}

// configure loom
loom {
// set access widener path
accessWidenerPath = file('src/main/resources/lotas.accesswidener')
}

// add dependencies
dependencies {
// add mojang mappings
mappings loom.officialMojangMappings()

// add fabric loader
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// add minecraft dependency
minecraft "com.mojang:minecraft:1.16.1"
}

// compile for java 8
java {
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
}

// process resources
processResources {
inputs.property "version", project.version

// update fabric.mod.json with version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
28 changes: 0 additions & 28 deletions common.gradle

This file was deleted.

Loading

0 comments on commit c384a77

Please sign in to comment.