aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonSolvers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-14 07:23:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-14 07:23:39 +0800
commit423bf216fb0547446f9853adb9505bfd4174bbd5 (patch)
tree87b264c7bef716d47308595304f0aca68c40c377 /features/dungeonSolvers/index.js
parent133f781e0838445bca104490c8ffe0b6398a876e (diff)
downloadSoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.gz
SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.bz2
SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.zip
a?
Diffstat (limited to 'features/dungeonSolvers/index.js')
-rw-r--r--features/dungeonSolvers/index.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 0ac2018..be06af9 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -53,6 +53,10 @@ class DungeonSolvers extends Feature {
this.spiritBowDestroyTimer = new ToggleSetting("Timer for when the spirit bow will self destruct", "", true, "spirit_bow_destroy_timer", this);
this.spiritBowDestroyElement = new HudTextElement().setToggleSetting(this.spiritBowDestroyTimer).setLocationSetting(new LocationSetting("Spirit bow destroy timer location", "Allows you to edit the location of the timer", "spirit_destroy_location", this, [10, 70, 3, 1]).requires(this.spiritBowDestroyTimer).editTempText("&dBow Destroyed in: &c15s"));
+ this.spiritBearSpawnTimer = new ToggleSetting("Timer for when the spirit bear will spawn", "", true, "spirit_bear_spawn_timer", this);
+ this.spiritBearSpawnElement = new HudTextElement().setToggleSetting(this.spiritBearSpawnTimer).setLocationSetting(new LocationSetting("Spirit bear spawn timer location", "Allows you to edit the location of the timer", "spirit_bear_spawn_location", this, [10, 70, 3, 1]).requires(this.spiritBearSpawnTimer).editTempText("&dBear spawned in: &c1.57s"));
+
+ this.hudElements.push(this.spiritBearSpawnElement);
this.hudElements.push(this.spiritBowDestroyElement);
this.bloodCampAssist = new ToggleSetting("Assist blood camp", "Helps guess where and when blood mobs will spawn", true, "blood_camp_assist", this);
@@ -101,6 +105,12 @@ class DungeonSolvers extends Feature {
this.spiritBowPickUps.push(Date.now());
});
+
+ this.bearSpawning = 0
+ this.registerChat("&r&a&lThe &r&5&lSpirit Bow &r&a&lhas dropped!&r", ()=>{
+ this.bearSpawning = -Date.now()
+ })
+
this.todoE = [];
this.eMovingThing = {};
this.bloodX = -1;
@@ -227,6 +237,12 @@ class DungeonSolvers extends Feature {
}
renderHud() {
+ if(this.bearSpawning && this.bearSpawning > 0){
+ this.spiritBearSpawnElement.setText("&dBear spawned in: &c" + (Math.max(0,this.bearSpawning-Date.now())/1000).toFixed(2) + "s")
+ }else{
+ this.spiritBearSpawnElement.setText("")
+ }
+
for (let element of this.hudElements) {
element.render();
}
@@ -378,6 +394,14 @@ class DungeonSolvers extends Feature {
// return !e.getEntity()[f.isDead]
// })
+
+ if(this.spiritBearSpawnTimer.getValue() && (this.FeatureManager.features["dataLoader"].class.dungeonFloor === "F4" || this.FeatureManager.features["dataLoader"].class.dungeonFloor === "M4")){
+ let id = World.getBlockAt(7, 77, 34).type.getID()
+
+ if((!this.bearSpawning || (this.bearSpawning<0 && this.bearSpawning>-Date.now()+500)) && id === 169){
+ this.bearSpawning = Date.now()+3500
+ }
+ }
}
addSkull(skull) {