Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelScopic committed Mar 20, 2024
1 parent ffab68c commit 0e6f4f3
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 25 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# WalksyCrystalOptimizer
+ Allows for faster crystal placement
+ Do NOT use my antiCrystalRefresh mod with this as it causes crystals to decrease TOO much
+ Love from snrios
# Walksy's Crystal Optimizer Legit

![meowbah-meowbahh](https://github.com/Walksy/WalksyCrystalOptimizer/assets/69202220/00cf00a2-757c-471e-bad6-4ed8620c01e4)
Fork of [Walksy's Crystal Optimizer](https://github.com/Walksy/WalksyCrystalOptimizer) but without the AC feature because they are considered cheating.

I have no clue how to program in Java, so if this works maybe God does exist.

<p align="left">
<img width=331 src="github/Review12.png" />
<img width=331 src="github/Review2.png" />
</p>




![alt text](src/main/resources/assets/optimizer/icon.png)
Binary file removed github/MeowBah.png
Binary file not shown.
Binary file removed github/Review12.png
Binary file not shown.
Binary file removed github/Review2.png
Binary file not shown.
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-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 9 additions & 9 deletions src/main/java/walksy/optimizer/WalksyCrystalOptimizerMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
public class WalksyCrystalOptimizerMod implements ClientModInitializer {
public static MinecraftClient mc;


/**
* just because his mod works, doesn't mean it should be banned - Walksy's Mother
*/
// just because his mod works, doesn't mean it should be banned - Walksy's Mother

@Override
public void onInitializeClient() {
Expand Down Expand Up @@ -76,15 +73,16 @@ public static void useOwnTicks() {
if (!mainHandStack.isOf(Items.END_CRYSTAL)) {
return;
}
// I think this is the Auto Crystal feature
if (mc.options.useKey.isPressed()
&& (isLookingAt(Blocks.OBSIDIAN, generalLookPos().getBlockPos())
|| isLookingAt(Blocks.BEDROCK, generalLookPos().getBlockPos())))
{
sendInteractBlockPacket(generalLookPos().getBlockPos(), generalLookPos().getSide());
if (canPlaceCrystalServer(generalLookPos().getBlockPos())) {
/*if (canPlaceCrystalServer(generalLookPos().getBlockPos())) {
mc.player.swingHand(mc.player.getActiveHand());
}
}
}*/
}
}


Expand Down Expand Up @@ -162,7 +160,9 @@ private static int getPing() {
return playerListEntry.getLatency();
}

private static boolean canPlaceCrystalServer(BlockPos block) {
// I think this is the AutoCrystal feature, not sure.

private static boolean canPlaceCrystalServer(BlockPos block) {
BlockState blockState = mc.world.getBlockState(block);
if (!blockState.isOf(Blocks.OBSIDIAN) && !blockState.isOf(Blocks.BEDROCK))
return false;
Expand All @@ -174,5 +174,5 @@ private static boolean canPlaceCrystalServer(BlockPos block) {
double f = blockPos2.getZ();
List<Entity> list = mc.world.getOtherEntities((Entity)null, new Box(d, e, f, d + 1.0D, e + 2.0D, f + 1.0D));
return list.isEmpty();
}
}
}
Binary file modified src/main/resources/assets/optimizer/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"version": "${version}",

"name": "Walksy Optimizer",
"description": "Allows you to place crystals much faster",
"description": "[Legit version] Allows you to place crystals much faster",
"authors": [
"Walksy"
"Walksy",
"Michael_Scopic"
],
"contact": {
"homepage": "https://github.com/Walksy"
Expand Down

0 comments on commit 0e6f4f3

Please sign in to comment.