Skip to content

Commit

Permalink
v1.3.4 minor ActivatedSpawnerDetector update
Browse files Browse the repository at this point in the history
**ActivatedSpawnerDetector update:**
- Made the large rendered box around the spawner showing it's active range 16 blocks in radius instead of 14. I was incorrect in thinking it was 14 blocks.
- The above change also affects the message telling you to loot the chests if there are chests within the active radius of the spawner.
  • Loading branch information
etianl authored Dec 20, 2024
1 parent f645da4 commit 0020c63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.21.3+build.2
loader_version=0.16.9

# Mod Properties
mod_version=1.3.3-1.21.3
mod_version=1.3.4-1.21.3
maven_group=pwn.noobs
archives_base_name=1trouser-streak

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ActivatedSpawnerDetector extends Module {
);
private final Setting<Boolean> lessSpam = sgGeneral.add(new BoolSetting.Builder()
.name("Extra Warning Less Spam")
.description("Do not display the message reminding you about stashes if NO chests within 14 blocks of spawner.")
.description("Do not display the message reminding you about stashes if NO chests within 16 blocks of spawner.")
.defaultValue(true)
.visible(() -> extramessage.get())
.build()
Expand Down Expand Up @@ -184,9 +184,9 @@ private void onPreTick(TickEvent.Pre event) {
if (lightsFound == true) ChatUtils.sendMsg(Text.of("The Spawner has torches or other light blocks!"));
}
boolean chestfound = false;
for (int x = -14; x < 15; x++) {
for (int y = -14; y < 15; y++) {
for (int z = -14; z < 15; z++) {
for (int x = -16; x < 17; x++) {
for (int y = -16; y < 17; y++) {
for (int z = -16; z < 17; z++) {
BlockPos bpos = new BlockPos(pos.getX()+x,pos.getY()+y,pos.getZ()+z);
if (mc.world.getBlockState(bpos).getBlock() == Blocks.CHEST){
chestfound = true;
Expand Down Expand Up @@ -216,7 +216,7 @@ private void onRender(Render3DEvent event) {
int endX = pos.getX();
int endY = pos.getY();
int endZ = pos.getZ();
if (rangerendering.get())render(new Box(new Vec3d(startX+15, startY+15, startZ+15), new Vec3d(endX-14, endY-14, endZ-14)), rangeSideColor.get(), rangeLineColor.get(), shapeMode.get(), event);
if (rangerendering.get())render(new Box(new Vec3d(startX+17, startY+17, startZ+17), new Vec3d(endX-16, endY-16, endZ-16)), rangeSideColor.get(), rangeLineColor.get(), shapeMode.get(), event);
if (deactivatedSpawnerPositions.contains(pos)) render(new Box(new Vec3d(startX+1, startY+1, startZ+1), new Vec3d(endX, endY, endZ)), despawnerSideColor.get(), despawnerLineColor.get(), shapeMode.get(), event);
else render(new Box(new Vec3d(startX+1, startY+1, startZ+1), new Vec3d(endX, endY, endZ)), spawnerSideColor.get(), spawnerLineColor.get(), shapeMode.get(), event);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "streak-addon",
"version": "1.3.3",
"version": "1.3.4",
"name": "TrouserStreak",
"description": "Trouser-Streak is a compilation of modules, updated to the latest version and optimized for maximum grief. I did not make all of these.",
"authors": [
Expand Down

0 comments on commit 0020c63

Please sign in to comment.