Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Where Is It Revert (Chest Tracker Support)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekiplay committed Aug 13, 2024
1 parent 8272966 commit b45ee9d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@
## Integrations with mods
| Mod | Integrated |
|---------------------------------------------------------------------------|---------------------------------------------------------|
| **[Journey Map](https://modrinth.com/mod/journeymap)** | **Goto from Baritone for map context menu** |
| **[Xaero's World Map](https://modrinth.com/mod/xaeros-world-map)** | **Goto, Elytra fly from Baritone for map context menu** |
| **[Chest Tracker](https://modrinth.com/mod/chest-tracker)** | **Color support** |
| **[Litematica](https://www.curseforge.com/minecraft/mc-mods/litematica)** | **Printer (Auto block placer)** |

# Installation Guide
1. Install [minecraft](https://www.minecraft.net)
Expand Down
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ repositories {
maven {
url = uri("https://maven.isxander.dev/releases")
}
// YACL Snapshots
maven {
name = "Xander Snapshot Maven"
url = uri("https://maven.isxander.dev/snapshots")
}
// Where Is It, JackFredLib
maven {
url = uri("https://maven.jackf.red/releases/")
Expand Down Expand Up @@ -74,9 +79,6 @@ dependencies {

// Chest Tracker
modImplementation("red.jackf:whereisit:${project.where_is_it_version}")

// Boze
modImplementation "dev.boze:boze-api:${project.boze_api_version}"
}

loom {
Expand Down
7 changes: 3 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ litematica_fileid=4946471
litematica_projectid=308892

# Where Is It (https://modrinth.com/mod/where-is-it/versions)
where_is_it_version=2.3.4+1.20.4
where_is_it_version=2.4.3+1.20.6
# YetAnotherConfigLib (https://github.com/JackFred2/WhereIsIt/blob/1.20.6/gradle.properties)
yacl_version=3.3.2+1.20.4+update.1.20.5-SNAPSHOT+update.1.20.5-SNAPSHOT

# MaLiLib (https://www.curseforge.com/minecraft/mc-mods/malilib/files/all?page=1&pageSize=20)
malilib_fileid=4946328
malilib_projectid=303119


boze_api_version=1.2.0+1.20.4
4 changes: 4 additions & 0 deletions src/main/java/nekiplay/meteorplus/MeteorPlusAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import nekiplay.meteorplus.features.commands.*;
import nekiplay.meteorplus.features.modules.combat.*;
import nekiplay.meteorplus.features.modules.combat.velocity.VelocityPlus;
import nekiplay.meteorplus.features.modules.integrations.WhereIsIt;
import nekiplay.meteorplus.features.modules.misc.*;
import nekiplay.meteorplus.features.modules.movement.*;
import nekiplay.meteorplus.features.modules.movement.elytrafly.ElytraFlyPlus;
Expand Down Expand Up @@ -195,6 +196,9 @@ public void onInitialize() {
modules.add(new MapIntegration());
}
}
if (isWhereIsIt) {
modules.add(new WhereIsIt());
}
LOG.info(METEOR_LOGPREFIX + " Loaded modules");
//endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,13 @@ public WhereIsIt() {
.sliderRange(-15, 15)
.build()
);

public final Setting<Double> text_scale = defaultGroup.add(new DoubleSetting.Builder()
.name("text_scale")
.defaultValue(1)
.max(15)
.min(0)
.sliderRange(0, 15)
.build()
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static void renderLabel(Vec3d pos, Text name, MatrixStack pose, Camera c

pose.translate(pos.x, pos.y + whereIsIt.y_offset.get(), pos.z);
pose.multiply(camera.getRotation());
var factor = 0.025f * 1;
var factor = 0.025f * whereIsIt.text_scale.get().floatValue();
pose.scale(-factor, -factor, factor);
var matrix4f = pose.peek().getPositionMatrix();

Expand Down

0 comments on commit b45ee9d

Please sign in to comment.