aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/slayers/index.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index cacc1cc..31f19f0 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -378,8 +378,14 @@ class Slayers extends Feature {
this.renderEntityEvent.unregister();
}
- if (this.BoxAroundMiniboss.getValue() || this.betterHideDeadEntity.getValue() || this.summonsHideNametag.getValue() || this.summonsShowNametag.getValue() || this.summonsLowWarning.getValue()) {
+ if (this.cannotFindEmanBoss || this.BoxAroundMiniboss.getValue() || this.betterHideDeadEntity.getValue() || this.summonsHideNametag.getValue() || this.summonsShowNametag.getValue() || this.summonsLowWarning.getValue()) {
World.getAllEntitiesOfType(net.minecraft.entity.item.EntityArmorStand).forEach((name) => {
+ if (this.cannotFindEmanBoss) {
+ if ((e[f.posX.Entity] - Player.getX()) ** 2 + (e[f.posY.Entity] - Player.getY()) ** 2 + (e[f.posZ.Entity] - Player.getZ()) ** 2 < 5) {
+ this.emanBoss = new Entity(e);
+ this.cannotFindEmanBoss = false
+ }
+ }
let nameSplit = name.getName().removeFormatting().split(" ")
let MobName = `${nameSplit[0]} ${nameSplit[1]}`
if (this.BoxAroundMiniboss.getValue() && !this.bossSpawnedMessage && this.Miniboss[this.lastSlayerType]?.has(MobName) && !this.minibossEntity.map(a => a[0].getUUID().toString()).includes(name.getUUID().toString())) {