Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
- Add tickratechanger
- Add savestates
  • Loading branch information
ScribbleTAS committed Nov 10, 2024
2 parents 75fef5c + 2232293 commit b8ec9db
Show file tree
Hide file tree
Showing 82 changed files with 3,773 additions and 646 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
architecture: x64
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.10.2
- name: Setup workspace
run: gradle preprocessBase
- name: Build
run: gradle collectBuilds
- name: Upload assets
uses: softprops/action-gh-release@v2
with:
files: 'build/!(-@(dev|sources|javadoc|all)).jar'
- name: Publish 1.21.1
uses: Kir-Antipov/[email protected]
with:
files: 'build/*-1.21.1-*!(*-@(dev|sources|javadoc|all)).jar'
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
- name: Publish 1.21.3
uses: Kir-Antipov/[email protected]
with:
files: 'build/*-1.21.3-*!(*-@(dev|sources|javadoc|all)).jar'
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ build/
out/
classes/

# eclipse

*.launch

# idea

.idea/
Expand Down
9 changes: 9 additions & 0 deletions 1.21.1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.gradle/
.settings
bin/
build/
run/
src/
build/
.classpath
.project
19 changes: 19 additions & 0 deletions 1.21.1/Client1.21.1.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/1.21.1"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="1.21.1"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="1.21.1"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=&quot;${workspace_loc:1.21.1}/.gradle/loom-cache/launch.cfg&quot; -Dfabric.dli.env=client -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient -Dlotaslight.log.level=debug"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:1.21.1/run}"/>
</launchConfiguration>
19 changes: 19 additions & 0 deletions 1.21.1/Server1.21.1.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/1.21.1"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="1.21.1"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="1.21.1"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=&quot;${workspace_loc:1.21.1}/.gradle/loom-cache/launch.cfg&quot; -Dfabric.dli.env=server -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient -Dlotaslight.log.level=debug"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:1.21.1/run}"/>
</launchConfiguration>
5 changes: 5 additions & 0 deletions 1.21.1/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id 'fabric-loom' version "${loom_version}"
}

apply from: "../common.gradle"
5 changes: 5 additions & 0 deletions 1.21.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx3G

minecraft_version=1.21.1
allowed_mc_version=>=1.21 <=1.21.1
fabric_version=0.107.0+1.21.1
9 changes: 9 additions & 0 deletions 1.21.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.gradle/
.settings
bin/
build/
run/
src/
build/
.classpath
.project
19 changes: 19 additions & 0 deletions 1.21.3/Client1.21.3.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/1.21.3"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="1.21.3"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="1.21.3"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=&quot;${workspace_loc:1.21.3}/.gradle/loom-cache/launch.cfg&quot; -Dfabric.dli.env=client -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient -Dlotaslight.log.level=debug"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:1.21.3/run}"/>
</launchConfiguration>
19 changes: 19 additions & 0 deletions 1.21.3/Server1.21.3.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/1.21.3"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="1.21.3"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="1.21.3"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=&quot;${workspace_loc:1.21.3}/.gradle/loom-cache/launch.cfg&quot; -Dfabric.dli.env=server -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient -Dlotaslight.log.level=debug"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:1.21.3/run}"/>
</launchConfiguration>
5 changes: 5 additions & 0 deletions 1.21.3/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id 'fabric-loom' version "${loom_version}"
}

apply from: "../common.gradle"
5 changes: 5 additions & 0 deletions 1.21.3/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx3G

minecraft_version=1.21.3
allowed_mc_version=>=1.21.2 <=1.21.3
fabric_version=0.107.0+1.21.3
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Crowdin](https://badges.crowdin.net/lotas-light/localized.svg)](https://crowdin.com/project/lotas-light)
# LoTAS-Light
A very slimmed down version of [LoTAS](https://github.com/MinecraftTAS/LoTAS), in an attempt to make it easily upgradable to newer versions.

Expand All @@ -12,3 +13,20 @@ Needs Fabric API
- Savestates
- Saving (<kbd>J</kbd>)
- Loading (<kbd>K</kbd>)

## Translations
Help translate this mod with [Crowdin](https://crowdin.com/project/lotas-light)

### Contributions
- Chinese Simplified
- Blom
- French
- Elvee
- German
- ScribbleTAS
- Korean
- swwgdxed
- LOLCAT
- ScribbleTAS
- Polish
- 4NTJ
66 changes: 8 additions & 58 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,62 +1,12 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
id 'discombobulator' version "${discombobulator_version}"
}

version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
}

repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}

loom {

}

dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
discombobulator {
versions = [
"1.21.3":"",
"1.21.1":""
]

}

processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}

java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
ignoredFileFormats = ["*.png"]
}
51 changes: 51 additions & 0 deletions common.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
java {
sourceCompatibility = targetCompatibility = 21
withSourcesJar()
}

version = project.mod_version
group = project.maven_group

base {
archivesName = "${mod_name}-${minecraft_version}"
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}

dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
}

loom {
// set access widener
def accessWidenerFile = file('src/main/resources/lotaslight.accesswidener')
if(accessWidenerFile.exists()) {
accessWidenerPath = accessWidenerFile
}

// set custom log4jconfig
def log4jFile = file('src/main/resources/log4j.xml')
if(log4jFile.exists()) {
log4jConfigs.from(log4jFile)
}
}

processResources {
inputs.property "version", project.version
inputs.property "allowedMcVersion", project.allowed_mc_version

filesMatching("fabric.mod.json") { file ->
expand "version": project.version
filter { String line ->
line.replace('"minecraft": "*",', '"minecraft": "' + project.allowed_mc_version + '",')
};
}
}
3 changes: 3 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
files:
- source: /src/main/resources/assets/lotaslight/lang/en_us.json
translation: /src/main/resources/assets/lotaslight/lang/%locale_with_underscore%.%file_extension%
22 changes: 9 additions & 13 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx3G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.1
yarn_mappings=1.21+build.2
loader_version=0.15.11
# fabric
loader_version=0.16.9
loom_version=1.7-SNAPSHOT

# Mod Properties
# preprocessor
discombobulator_version=1.3-SNAPSHOT

# mod
mod_name=LoTAS-Light
mod_version=1.0.0
maven_group=com.mincecrafttas
archives_base_name=LoTAS-Light-1.21

# Dependencies
fabric_version=0.102.1+1.21.1
10 changes: 8 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
pluginManagement {
repositories {
//mavenLocal() // For development purposes
mavenCentral()
maven {
url = "https://maven.mgnet.work/main"
}
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
gradlePluginPortal()
}
}
}

rootDir.listFiles().each { if (it.directory && new File(it, 'build.gradle').exists()) include ":${it.name}" }
10 changes: 0 additions & 10 deletions src/client/java/com/example/ExampleModClient.java

This file was deleted.

Loading

0 comments on commit b8ec9db

Please sign in to comment.