Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Aug 28, 2023
1 parent ac73773 commit c9e9cdb
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 124 deletions.
26 changes: 14 additions & 12 deletions NightX.iws
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
<component name="ChangeListManager">
<list default="true" id="af093b99-5942-419c-869b-8b2d7cb4dd2a" name="変更" comment="">
<change beforePath="$PROJECT_DIR$/NightX.iws" beforeDir="false" afterPath="$PROJECT_DIR$/NightX.iws" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/Client.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/Client.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/module/ModuleManager.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/module/ModuleManager.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/module/impl/combat/AttackFreeze.kt" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/downloads.json" beforeDir="false" afterPath="$PROJECT_DIR$/downloads.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/api/PacketManager.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/api/PacketManager.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/module/impl/visual/Animations.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/features/module/impl/visual/Animations.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/entity/MixinAbstractClientPlayer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/entity/MixinAbstractClientPlayer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/entity/MixinEntityPlayerSP.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/entity/MixinEntityPlayerSP.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/item/MixinItemRenderer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/item/MixinItemRenderer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/visual/client/GuiMainMenu.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/visual/client/GuiMainMenu.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/render/MixinLayerCape.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/aspw/client/injection/forge/mixins/render/MixinLayerCape.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
Expand Down Expand Up @@ -197,7 +199,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStart" />
<option name="VM_PARAMETERS" value="-Dfml.coreMods.load=net.aspw.client.injection.forge.TransformerLoader -Ddev-mode" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand All @@ -212,7 +214,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStart" />
<option name="VM_PARAMETERS" value="-Dfml.coreMods.load=net.aspw.client.injection.forge.TransformerLoader -Ddev-mode" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand Down Expand Up @@ -257,7 +259,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStart" />
<option name="VM_PARAMETERS" value="-Dfml.coreMods.load=net.aspw.client.injection.forge.TransformerLoader -Ddev-mode" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand All @@ -272,7 +274,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStart" />
<option name="VM_PARAMETERS" value="-Dfml.coreMods.load=net.aspw.client.injection.forge.TransformerLoader -Ddev-mode" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand Down Expand Up @@ -359,7 +361,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStartServer" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand All @@ -374,7 +376,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStartServer" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand Down Expand Up @@ -419,7 +421,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStartServer" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand All @@ -434,7 +436,7 @@
<option name="MAIN_CLASS_NAME" value="GradleStartServer" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-master\run" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../NightX-Client\run" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
Expand Down
158 changes: 79 additions & 79 deletions downloads.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,78 @@
[
{
"url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/118839636",
"assets_url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/118839636/assets",
"upload_url": "https://uploads.github.com/repos/Aspw-w/NightX-Client/releases/118839636/assets{?name,label}",
"html_url": "https://github.com/Aspw-w/NightX-Client/releases/tag/B64-Beta",
"id": 118839636,
"author": {
"login": "Aspw-w",
"id": 75427057,
"node_id": "MDQ6VXNlcjc1NDI3MDU3",
"avatar_url": "https://avatars.githubusercontent.com/u/75427057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Aspw-w",
"html_url": "https://github.com/Aspw-w",
"followers_url": "https://api.github.com/users/Aspw-w/followers",
"following_url": "https://api.github.com/users/Aspw-w/following{/other_user}",
"gists_url": "https://api.github.com/users/Aspw-w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Aspw-w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aspw-w/subscriptions",
"organizations_url": "https://api.github.com/users/Aspw-w/orgs",
"repos_url": "https://api.github.com/users/Aspw-w/repos",
"events_url": "https://api.github.com/users/Aspw-w/events{/privacy}",
"received_events_url": "https://api.github.com/users/Aspw-w/received_events",
"type": "User",
"site_admin": false
},
"node_id": "RE_kwDOIG0dIs4HFVlU",
"tag_name": "B64-Beta",
"target_commitish": "master",
"name": "B64-Beta",
"draft": false,
"prerelease": false,
"created_at": "2023-08-27T12:33:01Z",
"published_at": "2023-08-27T12:40:50Z",
"assets": [
{
"url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/assets/123326837",
"id": 123326837,
"node_id": "RA_kwDOIG0dIs4HWdF1",
"name": "nightx-beta-b64.jar",
"label": null,
"uploader": {
"login": "Aspw-w",
"id": 75427057,
"node_id": "MDQ6VXNlcjc1NDI3MDU3",
"avatar_url": "https://avatars.githubusercontent.com/u/75427057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Aspw-w",
"html_url": "https://github.com/Aspw-w",
"followers_url": "https://api.github.com/users/Aspw-w/followers",
"following_url": "https://api.github.com/users/Aspw-w/following{/other_user}",
"gists_url": "https://api.github.com/users/Aspw-w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Aspw-w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aspw-w/subscriptions",
"organizations_url": "https://api.github.com/users/Aspw-w/orgs",
"repos_url": "https://api.github.com/users/Aspw-w/repos",
"events_url": "https://api.github.com/users/Aspw-w/events{/privacy}",
"received_events_url": "https://api.github.com/users/Aspw-w/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 17566169,
"download_count": 71,
"created_at": "2023-08-27T12:40:43Z",
"updated_at": "2023-08-27T12:40:47Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B64-Beta/nightx-beta-b64.jar"
}
],
"tarball_url": "https://api.github.com/repos/Aspw-w/NightX-Client/tarball/B64-Beta",
"zipball_url": "https://api.github.com/repos/Aspw-w/NightX-Client/zipball/B64-Beta",
"body": "I accidentally deleted the past NightX database completely W"
},
{
"url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/118811700",
"assets_url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/118811700/assets",
Expand Down Expand Up @@ -63,7 +137,7 @@
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 17567468,
"download_count": 260,
"download_count": 288,
"created_at": "2023-08-26T16:17:07Z",
"updated_at": "2023-08-26T16:17:12Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B63-Release/nightx-release-b63.jar"
Expand Down Expand Up @@ -149,7 +223,7 @@
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 16332218,
"download_count": 1130,
"download_count": 1131,
"created_at": "2023-08-19T15:58:28Z",
"updated_at": "2023-08-19T15:58:49Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B62-Release/nightx-release-b62.jar"
Expand Down Expand Up @@ -321,7 +395,7 @@
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 16044424,
"download_count": 47,
"download_count": 48,
"created_at": "2023-08-17T10:03:45Z",
"updated_at": "2023-08-17T10:04:05Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B61-Release/nightx-release-b61.jar"
Expand Down Expand Up @@ -534,7 +608,7 @@
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 15863951,
"download_count": 761,
"download_count": 762,
"created_at": "2023-04-18T15:05:58Z",
"updated_at": "2023-04-18T15:06:03Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B48-Beta/nightx-beta-b48.jar"
Expand Down Expand Up @@ -608,7 +682,7 @@
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 15805033,
"download_count": 816,
"download_count": 817,
"created_at": "2023-04-16T13:43:31Z",
"updated_at": "2023-04-16T13:43:35Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B47-Release/nightx-release-b47.jar"
Expand Down Expand Up @@ -2351,79 +2425,5 @@
"rocket": 0,
"eyes": 0
}
},
{
"url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/87745500",
"assets_url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/87745500/assets",
"upload_url": "https://uploads.github.com/repos/Aspw-w/NightX-Client/releases/87745500/assets{?name,label}",
"html_url": "https://github.com/Aspw-w/NightX-Client/releases/tag/B30",
"id": 87745500,
"author": {
"login": "Aspw-w",
"id": 75427057,
"node_id": "MDQ6VXNlcjc1NDI3MDU3",
"avatar_url": "https://avatars.githubusercontent.com/u/75427057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Aspw-w",
"html_url": "https://github.com/Aspw-w",
"followers_url": "https://api.github.com/users/Aspw-w/followers",
"following_url": "https://api.github.com/users/Aspw-w/following{/other_user}",
"gists_url": "https://api.github.com/users/Aspw-w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Aspw-w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aspw-w/subscriptions",
"organizations_url": "https://api.github.com/users/Aspw-w/orgs",
"repos_url": "https://api.github.com/users/Aspw-w/repos",
"events_url": "https://api.github.com/users/Aspw-w/events{/privacy}",
"received_events_url": "https://api.github.com/users/Aspw-w/received_events",
"type": "User",
"site_admin": false
},
"node_id": "RE_kwDOIG0dIs4FOuPc",
"tag_name": "B30",
"target_commitish": "master",
"name": "B30",
"draft": false,
"prerelease": false,
"created_at": "2023-01-03T06:09:31Z",
"published_at": "2023-01-03T06:11:24Z",
"assets": [
{
"url": "https://api.github.com/repos/Aspw-w/NightX-Client/releases/assets/90319661",
"id": 90319661,
"node_id": "RA_kwDOIG0dIs4FYist",
"name": "nightx-release-b30.jar",
"label": null,
"uploader": {
"login": "Aspw-w",
"id": 75427057,
"node_id": "MDQ6VXNlcjc1NDI3MDU3",
"avatar_url": "https://avatars.githubusercontent.com/u/75427057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Aspw-w",
"html_url": "https://github.com/Aspw-w",
"followers_url": "https://api.github.com/users/Aspw-w/followers",
"following_url": "https://api.github.com/users/Aspw-w/following{/other_user}",
"gists_url": "https://api.github.com/users/Aspw-w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Aspw-w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aspw-w/subscriptions",
"organizations_url": "https://api.github.com/users/Aspw-w/orgs",
"repos_url": "https://api.github.com/users/Aspw-w/repos",
"events_url": "https://api.github.com/users/Aspw-w/events{/privacy}",
"received_events_url": "https://api.github.com/users/Aspw-w/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 17751854,
"download_count": 792,
"created_at": "2023-01-03T06:11:17Z",
"updated_at": "2023-01-03T06:11:22Z",
"browser_download_url": "https://github.com/Aspw-w/NightX-Client/releases/download/B30/nightx-release-b30.jar"
}
],
"tarball_url": "https://api.github.com/repos/Aspw-w/NightX-Client/tarball/B30",
"zipball_url": "https://api.github.com/repos/Aspw-w/NightX-Client/zipball/B30",
"body": "- Added NEW BlockDrop Flight (fastest)\r\n- Added FastBridge Place-Speed option\r\n- Added CivBreak Break-Speed option\r\n- Added Trajectories Color option\r\n- Improved Animations (customize 0.00 equip motion) (smoothswinganimation, blockingequip)\r\n- Improved VerusLowHop Flight (when sneak = down)\r\n- Improved Notification\r\n- Improved Tweaks\r\n- Improved Crasher\r\nUpdated Configs\r\nhttps://nightx.api-minecraft.net/s/zf45j6uzog"
}
]
16 changes: 13 additions & 3 deletions src/main/java/net/aspw/client/features/api/PacketManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import io.netty.buffer.Unpooled;
import net.aspw.client.Client;
import net.aspw.client.event.EventTarget;
import net.aspw.client.event.Listenable;
import net.aspw.client.event.PacketEvent;
import net.aspw.client.event.*;
import net.aspw.client.features.module.impl.combat.KillAura;
import net.aspw.client.features.module.impl.other.ClientSpoof;
import net.aspw.client.features.module.impl.visual.Animations;
Expand All @@ -24,6 +22,7 @@ public class PacketManager extends MinecraftInstance implements Listenable {

public static int ticks;
public static String selectedCape;
public static int swing;

public static void update() {
int maxFrames = 40;
Expand All @@ -47,6 +46,17 @@ public static void update() {
}
}

@EventTarget
public void onMotion(MotionEvent event) {
if (event.getEventState() == EventState.PRE) {
if (mc.thePlayer.swingProgressInt == 1) {
swing = 9;
} else {
swing = Math.max(0, swing - 1);
}
}
}

@EventTarget
public void onPacket(PacketEvent event) {
final Packet<?> packet = event.getPacket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ class Animations : Module() {
"Smooth",
"Jigsaw",
"Sigma3",
"Sigma4"
"Sigma4",
"Spin"
), "Swing"
)

@JvmField
val swingAnimValue = ListValue(
"Swing-Animation", arrayOf(
"Vanilla",
"Flux"
"Flux",
"Smooth"
), "Vanilla"
)

Expand All @@ -66,9 +68,6 @@ class Animations : Module() {
@JvmField
val oldAnimations = BoolValue("OldAnimations", true)

@JvmField
val smoothSwing = BoolValue("Smooth-Swing", false)

@JvmField
val cancelEquip = BoolValue("CancelEquip", false)

Expand Down
Loading

0 comments on commit c9e9cdb

Please sign in to comment.