aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/slayers/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 6f2bc15..2ebe0fe 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -274,6 +274,16 @@ class Slayers extends Feature {
}
}
}
+ }else{ //CT 2.0 support
+ for(let x = pos[0] - 5; x <= pos[0] + 5; x++){
+ for(let y = pos[1] - 5; y <= pos[1] + 5; y++){
+ for(let z = pos[2] - 5; z <= pos[2] + 5; z++){
+ if(World.getBlockAt(Math.floor(x), Math.floor(y), Math.floor(z)).getType().getID() === 138){
+ this.beaconLocations[e[m.getUniqueID.Entity]().toString()] = [Math.floor(x), Math.floor(y), Math.floor(z)]
+ }
+ }
+ }
+ }
}
// if(!this.beaconLocations[e[m.getUniqueID.Entity]().toString()]){