Skip to content
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

1.21.4 #1

Merged
merged 85 commits into from
Mar 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
43eb4e3
prepare for 1.20
wagyourtail May 10, 2023
63d0064
pre.2
wagyourtail May 19, 2023
336b2c2
pre.7
wagyourtail May 31, 2023
eb28298
confirm release version works
wagyourtail Jun 7, 2023
b389b57
add frog
wagyourtail Jun 9, 2023
666a890
fix frog
wagyourtail Jun 11, 2023
b2bd025
1.20.1
wagyourtail Jun 14, 2023
6979bd6
support both
wagyourtail Jun 14, 2023
2ae7bc6
bump unimined to latest stable
wagyourtail Jun 14, 2023
09554ab
Merge pull request #3943 from wagyourtail/1.20/1.20
leijurv Jun 14, 2023
7487b90
v1.10.1
leijurv Jun 14, 2023
e0308de
Merge branch '1.19.4' into 1.20.1
ZacSharp Jul 24, 2023
2821a2a
Merge pull request #4078 from ZacSharp/1.20.1-update
leijurv Jul 30, 2023
51843f7
Merge branch '1.19.4' into 1.20.1
leijurv Aug 18, 2023
b16590d
Merge branch '1.20.1' of github.com:cabaletta/baritone into 1.20.1
leijurv Aug 18, 2023
7668952
Merge branch '1.19.4' into 1.20.1
leijurv Aug 18, 2023
fa28a56
Merge branch '1.19.4' into 1.20.1
leijurv Aug 19, 2023
5a45001
Merge branch '1.19.4' into 1.20.1
leijurv Aug 20, 2023
3b30b06
Merge branch '1.19.4' into 1.20.1
leijurv Aug 20, 2023
97067b9
Merge branch '1.19.4' into 1.20.1
leijurv Aug 22, 2023
4db988d
fix forge mixin crash
rfresh2 Sep 24, 2023
7902517
fix forge mixin crash
rfresh2 Sep 24, 2023
f5d1592
1.20.2
rfresh2 Sep 23, 2023
e1e620a
Merge pull request #4138 from rfresh2/fix-forge-1-20-1-crash
leijurv Sep 28, 2023
9bf890a
Merge pull request #4136 from rfresh2/1.20.2
leijurv Sep 28, 2023
3a3b012
Merge branch '1.19.4' into 1.20.2
ZacSharp Oct 29, 2023
a945cfa
Merge pull request #4172 from ZacSharp/1.20.2-update
leijurv Oct 31, 2023
dce35e3
Merge remote-tracking branch 'origin/1.19.4' into 1.20.2
wagyourtail Nov 24, 2023
c1b555c
bump parchment
wagyourtail Nov 24, 2023
3dbcf01
fix forge version
wagyourtail Nov 24, 2023
21feeb6
fix missing function
wagyourtail Nov 24, 2023
4b6652b
1.20.4
wagyourtail Dec 7, 2023
c146440
mark 1.20.3 as supported
wagyourtail Dec 17, 2023
3e7eb87
Merge pull request #4214 from wagyourtail/1.20/1.20.4
leijurv Jan 6, 2024
8a0f301
v1.10.2
leijurv Jan 6, 2024
980d685
Merge branch '1.19.4' into 1.20.4
ZacSharp Feb 20, 2024
6d06713
Merge pull request #4280 from ZacSharp/1.20.4-update
leijurv Mar 28, 2024
354b26b
Merge branch '1.19.4' into 1.20.4
ZacSharp Mar 29, 2024
1018db7
Merge pull request #4315 from ZacSharp/1.20.4-update
leijurv Apr 24, 2024
088056b
port to 1.20.5
wagyourtail Apr 28, 2024
4b76fa9
java 21
wagyourtail Apr 28, 2024
d8381c7
rebuild loot tables
wagyourtail May 7, 2024
19c8194
re-enable lexforge
wagyourtail May 7, 2024
b29878d
fix neoforge version
wagyourtail May 7, 2024
8a5e3f7
fix unfixable conflicts
wagyourtail May 7, 2024
ee9ca6d
fix gradle version not supporting 21
wagyourtail May 7, 2024
f02c311
update proguard
wagyourtail May 7, 2024
6b274b3
just work already
wagyourtail May 7, 2024
8bb1979
Update neoforge/src/main/resources/META-INF/neoforge.mods.toml
wagyourtail May 27, 2024
42c6abb
Merge pull request #4347 from wagyourtail/1.20/1.20.5
leijurv Jun 7, 2024
74d82f2
fix neoforge and forge for 1.20.5+
wagyourtail Jun 17, 2024
81f7375
fix mixin eating my try-catch
wagyourtail Jun 17, 2024
1704d56
Merge pull request #4396 from wagyourtail/1.20/1.20.5-(neo)forge
leijurv Jun 20, 2024
74f46cd
1.21
rfresh2 Jun 16, 2024
e66fdea
update supported litematic version
rfresh2 Jul 19, 2024
8786148
Merge pull request #4394 from rfresh2/1.21
leijurv Jul 20, 2024
6b2fd5a
Merge branch '1.19.4' into 1.20.5
ZacSharp Jul 21, 2024
acdcbf5
Merge pull request #4439 from ZacSharp/1.20.5-update
leijurv Jul 28, 2024
8867fb7
Merge branch '1.20.5' into 1.21
ZacSharp Aug 1, 2024
e682fc7
Fix selection box aabbs
ZacSharp Aug 9, 2024
960ff6e
mark 1.21.1 as compatible
rfresh2 Aug 10, 2024
ec57888
Merge pull request #4451 from ZacSharp/1.21-update
leijurv Aug 22, 2024
800545f
Merge pull request #4465 from ZacSharp/pr/1.20.6/selection/fixSelecti…
leijurv Aug 22, 2024
a231748
Merge pull request #4466 from rfresh2/1.21.1-compat
leijurv Aug 22, 2024
5102d91
Update Java version used by Docker
KKyleK Oct 15, 2024
5029108
Merge pull request #4520 from KKyleK/update-docker-java
leijurv Oct 15, 2024
2869503
Merge branch '1.19.4' into 1.20.5
ZacSharp Oct 22, 2024
b550b92
Merge pull request #4527 from ZacSharp/1.20.5-update
leijurv Oct 22, 2024
52cfe5c
Merge branch '1.20.5' into 1.21.1
ZacSharp Oct 22, 2024
9eefcbc
Merge pull request #4534 from ZacSharp/1.21.1-update
leijurv Oct 30, 2024
55cb180
1.21.3
rfresh2 Oct 26, 2024
7e8c850
restore tool getMaterialCost intended functionality
rfresh2 Oct 31, 2024
fd4fbf5
update forge and resolve rebase conflicts
rfresh2 Oct 31, 2024
b14c758
Merge pull request #4536 from rfresh2/1.21.3
leijurv Nov 6, 2024
81c53d5
only load vanilla pack for registry access
rfresh2 Nov 9, 2024
9d5db72
v1.11.1
leijurv Nov 20, 2024
1bfc030
Merge pull request #4553 from rfresh2/packLoadFix-1.20.5
leijurv Nov 21, 2024
a575250
Merge branch '1.19.4' into 1.20.5
ZacSharp Nov 21, 2024
290e697
Merge pull request #4565 from ZacSharp/1.20.5-update
leijurv Dec 1, 2024
9324fb7
1.21.4
rfresh2 Dec 7, 2024
485bec0
Merge pull request #4576 from rfresh2/1.21.4
leijurv Dec 8, 2024
1d6f5df
Merge branch '1.20.5' into 1.21.1
ZacSharp Dec 8, 2024
1dc5be3
Merge pull request #4589 from ZacSharp/1.21.1-update
leijurv Dec 22, 2024
94a677f
Merge branch '1.21.1' into 1.21.4
ZacSharp Dec 31, 2024
a0f100f
Merge pull request #4599 from ZacSharp/1.21.4-update
leijurv Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gradle_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: gradle

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'

- name: Grant execute permission for gradlew
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt update -y

RUN apt install \
openjdk-17-jdk \
openjdk-21-jdk \
git \
--assume-yes

Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ allprojects {
compileOnly "org.ow2.asm:asm:${project.asm_version}"

implementation "dev.babbaj:nether-pathfinder:${project.nether_pathfinder_version}"

implementation 'com.google.code.findbugs:jsr305:3.0.2'
}

unimined.minecraft(sourceSets.main, true) {
Expand All @@ -90,7 +92,9 @@ allprojects {
mappings {
intermediary()
mojmap()
parchment("2023.06.26")
parchment("1.20.6", "2024.05.01")

devFallbackNamespace "official"
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.7'

implementation group: 'xyz.wagyourtail.unimined', name: 'xyz.wagyourtail.unimined.gradle.plugin', version: '1.0.5'
implementation group: 'xyz.wagyourtail.unimined', name: 'xyz.wagyourtail.unimined.gradle.plugin', version: '1.2.9'
}
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ components.java {
}

task proguard(type: ProguardTask) {
proguardVersion "7.2.1"
proguardVersion "7.4.2"
compType "fabric"
}

Expand Down
5 changes: 2 additions & 3 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"schemaVersion": 1,
"id": "baritone",
Expand All @@ -25,7 +24,7 @@
],

"depends": {
"fabricloader": ">=0.11.0",
"minecraft": "1.19.4"
"fabricloader": ">=0.14.22",
"minecraft": ["1.21.4"]
}
}
8 changes: 2 additions & 6 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ plugins {
archivesBaseName = archivesBaseName + "-forge"

unimined.minecraft {
mappings {
devFallbackNamespace "intermediary"
}

forge {
minecraftForge {
loader project.forge_version
mixinConfig ["mixins.baritone.json"]
}
Expand Down Expand Up @@ -99,7 +95,7 @@ components.java {
}

task proguard(type: ProguardTask) {
proguardVersion "7.2.1"
proguardVersion "7.4.2"
compType "forge"
}

Expand Down
4 changes: 2 additions & 2 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
modLoader="javafml" #mandatory
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion="[33,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
loaderVersion="[48,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
license="https://raw.githubusercontent.com/cabaletta/baritone/1.16.2/LICENSE"
# A URL to refer people to when problems occur with this mod
issueTrackerURL="https://github.com/cabaletta/baritone/issues" #optional
Expand Down Expand Up @@ -35,6 +35,6 @@ A Minecraft pathfinder bot.
modId="minecraft"
mandatory=true
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="[1.19.4]"
versionRange="[1.21.4]"
ordering="NONE"
side="BOTH"
16 changes: 10 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
org.gradle.jvmargs=-Xmx4G

mod_version=1.9.3
available_loaders=fabric,forge,neoforge,tweaker

mod_version=1.13.0
maven_group=baritone
archives_base_name=baritone

java_version=17
java_version=21

minecraft_version=1.21.4

minecraft_version=1.19.4
forge_version=54.0.5

forge_version=45.0.43
neoforge_version=9-beta

fabric_version=0.14.11
fabric_version=0.16.9

nether_pathfinder_version=1.4.1

// These dependencies are used for common and tweaker
// while mod loaders usually ship their own version
mixin_version=0.8.5
asm_version=9.3
asm_version=9.7
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
130 changes: 130 additions & 0 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/

import baritone.gradle.task.CreateDistTask
import baritone.gradle.task.ProguardTask

plugins {
id "com.github.johnrengelman.shadow" version "8.0.0"
}

archivesBaseName = archivesBaseName + "-neoforge"

unimined.minecraft {

neoForge {
loader project.neoforge_version
mixinConfig ["mixins.baritone.json"]
}

minecraftRemapper.config {
// neoforge adds 1 conflict, where 2 interfaces have a method with the same name on yarn/mojmap,
// but the method has different names in the intermediary mappings.
// this is a conflict because they have a class that extends both interfaces.
// this shouldn't be a problem as long as named mappings don't make the name of those 2 methods different.
ignoreConflicts(true)
}

}

//loom {
// forge {
// mixinConfig 'mixins.baritone.json'
// }
//}

configurations {
common
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
}

dependencies {
// because of multiple sourcesets `common project(":")` doesn't work
for (sourceSet in rootProject.sourceSets) {
if (sourceSet == rootProject.sourceSets.test) continue
if (sourceSet == rootProject.sourceSets.schematica_api) continue
common sourceSet.output
shadowCommon sourceSet.output
}
shadowCommon "dev.babbaj:nether-pathfinder:${project.nether_pathfinder_version}"
}

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

filesMatching("META-INF/neoforge.mods.toml") {
expand "version": project.version
}
}

shadowJar {
configurations = [project.configurations.shadowCommon]
archiveClassifier.set "dev-shadow"
}

remapJar {
inputFile.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier.set null
}

jar {
archiveClassifier.set "dev"

manifest {
attributes(
'MixinConfigs': 'mixins.baritone.json',
"MixinConnector": "baritone.launch.BaritoneMixinConnector",

'Implementation-Title': 'Baritone',
'Implementation-Version': version,
)
}
}

components.java {
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
skip()
}
}

task proguard(type: ProguardTask) {
proguardVersion "7.4.2"
compType "neoforge"
}

task createDist(type: CreateDistTask, dependsOn: proguard) {
compType "neoforge"
}

build.finalizedBy(createDist)

publishing {
publications {
mavenFabric(MavenPublication) {
artifactId = rootProject.archives_base_name + "-" + project.name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
}
}
18 changes: 18 additions & 0 deletions neoforge/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# This file is part of Baritone.
#
# Baritone is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Baritone is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Baritone. If not, see <https://www.gnu.org/licenses/>.
#

loom.platform=forge
25 changes: 25 additions & 0 deletions neoforge/src/main/java/baritone/launch/BaritoneForgeModXD.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/

package baritone.launch;

import net.neoforged.api.distmarker.Dist;
import net.neoforged.fml.common.Mod;

@Mod(value = "baritoe", dist = Dist.CLIENT)
public class BaritoneForgeModXD {
}
40 changes: 40 additions & 0 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This is an example neoforge.mods.toml file. It contains the data relating to the loading mods.
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
# The overall format is standard TOML format, v0.5.0.
# Note that there are a couple of TOML lists in this file.
# Find more information on toml format here: https://github.com/toml-lang/toml
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
modLoader="javafml" #mandatory
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion="[1,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
license="https://raw.githubusercontent.com/cabaletta/baritone/1.16.2/LICENSE"
# A URL to refer people to when problems occur with this mod
issueTrackerURL="https://github.com/cabaletta/baritone/issues" #optional
# A list of mods - how many allowed here is determined by the individual mod loader
[[mods]] #mandatory
# The modid of the mod
modId="baritoe" #mandatory
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
version="${version}" #mandatory
# A display name for the mod
displayName="Baritone" #mandatory
# A URL for the "homepage" for this mod, displayed in the mod UI
displayURL="https://github.com/cabaletta/baritone" #optional
# A file name (in the root of the mod JAR) containing a logo for display
#logoFile="examplemod.png" #optional
# A text field displayed in the mod UI
credits="Hat Gamers" #optional
# A text field displayed in the mod UI
authors="leijurv, Brady" #optional
# The description text for the mod (multi line!) (#mandatory)
description='''
A Minecraft pathfinder bot.
'''

[[dependencies.baritoe]]
modId="minecraft"
type="required"
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="[1.21.4]"
ordering="NONE"
side="BOTH"
6 changes: 6 additions & 0 deletions neoforge/src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"description": "null",
"pack_format": 8
}
}
Loading