aboutsummaryrefslogtreecommitdiff
path: root/features/nether
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-09 22:09:35 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-09 22:09:35 +0800
commit0b7ac15c335ba0978fda41a775a57c5456b64800 (patch)
tree9675287ce0b4c276cd127500ce1c9d96dfe48493 /features/nether
parent95aa76b52db799b72134f2c1b438617484d9cc97 (diff)
downloadSoopyV2-0b7ac15c335ba0978fda41a775a57c5456b64800.tar.gz
SoopyV2-0b7ac15c335ba0978fda41a775a57c5456b64800.tar.bz2
SoopyV2-0b7ac15c335ba0978fda41a775a57c5456b64800.zip
+ burrial guess accuracy improvents
+ nether test of control ping accounting
Diffstat (limited to 'features/nether')
-rw-r--r--features/nether/index.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/features/nether/index.js b/features/nether/index.js
index 97f9678..9c346f6 100644
--- a/features/nether/index.js
+++ b/features/nether/index.js
@@ -8,6 +8,7 @@ import ToggleSetting from "../settings/settingThings/toggle";
const MCBlock = Java.type("net.minecraft.block.Block");
const ArmorStand = Java.type("net.minecraft.entity.item.EntityArmorStand")
const MCItem = Java.type("net.minecraft.item.Item");
+const EntitySkeleton = Java.type("net.minecraft.entity.monster.EntitySkeleton")
let locationData = {
barbarian: {
@@ -53,6 +54,7 @@ class Nether extends Feature {
this.speedNextBlock = new ToggleSetting("Show next block to stand on for dojo swiftness", "", true, "dojo_swiftness", this)
this.tenacityLine = new ToggleSetting("Show line for fireball in dojo tenacity", "This may help you to dodge the fireballs", false, "dojo_tanacity", this)
this.disciplineOverlay = new ToggleSetting("Show overlay for zombies in dojo discipline", "", true, "dojo_discipline", this).contributor("Empa")
+ this.controlHelper = new ToggleSetting("Shows where you actually have to look for", "control dojo task (accounts for ping)", true, "control_helper", this)
this.hostageWaypoints = new ToggleSetting("Show hostage waypoints", "Waypoint for location of hostage in rescue missions", true, "hostage_waypoint", this)
this.slugfishTimer = new ToggleSetting("Show timer over rod", "This may help with fishing slugfish", false, "slugfish_timer", this)
@@ -76,6 +78,14 @@ class Nether extends Feature {
this.rescueMissionType = undefined
this.lastBlock = undefined
this.hookThrown = 0
+ this.controlSkeleton = undefined
+ this.controlLocLast = undefined
+ this.controlLoc = undefined
+ this.registerChat(" Test of Control OBJECTIVES", () => {
+ this.controlSkeleton = undefined
+ this.controlLocLast = undefined
+ this.controlLoc = undefined
+ })
let packetRecieved = this.registerCustom("packetReceived", this.packetReceived).registeredWhen(() => this.isInDojo())
@@ -107,6 +117,10 @@ class Nether extends Feature {
this.inSwiftness = false
this.lastBlock = undefined
this.inDiscipline = false
+
+ this.controlLocLast = undefined
+ this.controlLoc = undefined
+ this.controlSkeleton = undefined
})
this.registerChat("You completed your rescue quest! Visit the Town Board to claim the rewards,", () => {
@@ -159,11 +173,32 @@ class Nether extends Feature {
this.todoE2 = this.todoE
this.todoE = []
+
+
+ if (this.controlHelper.getValue() && this.controlSkeleton) {
+ let ping = this.FeatureManager.features["dataLoader"].class.getPing() / 1000
+
+ let e = this.controlSkeleton
+ let x = e.getX() + (e.getX() - e.getLastX()) * (20 * ping)
+ let y = e.getY() + (e.getY() - e.getLastY()) * (20 * ping)
+ let z = e.getZ() + (e.getZ() - e.getLastZ()) * (20 * ping)
+ if (x === e.getX() && y === e.getY() && z === e.getZ()) return
+
+ while (World.getBlockAt(x, y, z).getType().getID() !== 0) { y += 0.2 }
+
+ if (this.controlLoc) this.controlLocLast = [...this.controlLoc]
+ this.controlLoc = [x - 0.5, y, z - 0.5]
+ } else {
+ this.controlLocLast = undefined
+ this.controlLoc = undefined
+ }
}
entityJoinWorldEvent(event) {
if (this.tenacityLine.getValue() && event.entity instanceof ArmorStand) this.todoE.push(event.entity)
if (this.disciplineOverlay.getValue() && this.inDiscipline && event.entity instanceof ArmorStand) this.todoF.push(new Entity(event.entity))
+
+ if (event.entity instanceof EntitySkeleton && !this.controlSkeleton) this.controlSkeleton = new Entity(event.entity)
}
packetReceived(packet, event) {
@@ -262,6 +297,10 @@ class Nether extends Feature {
Tessellator.drawString(((Date.now() - this.hookThrown) / 1000).toFixed(1) + "s", x, y + 0.5, z, Renderer.color(0, 255, 50), false, 0.025, false)
}
}
+
+ if (this.controlLoc && this.controlLocLast) {
+ drawBoxAtBlock(this.controlLoc[0] * ticks + this.controlLocLast[0] * (1 - ticks), this.controlLoc[1] * ticks + this.controlLocLast[1] * (1 - ticks), this.controlLoc[2] * ticks + this.controlLocLast[2] * (1 - ticks), 255, 0, 0, 1, 2)
+ }
}
step1S() {