-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDebug.js
More file actions
55 lines (46 loc) · 1.41 KB
/
Debug.js
File metadata and controls
55 lines (46 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var scriptName = "Debug Info";
var scriptAuthor = "Shoghi Gamer";
var scriptVersion = 1.0;
function Emo() {
var speed = 0;
var X = 0;
var Z = 0;
var X2 = 0;
var Z2 = 0;
this.getName = function() {
return "Debug";
}
this.getCategory = function() {
return "Fun";
}
this.getDescription = function() {
return "Debug Information for stuff";
}
this.onEnable = function() {
chat.print("To get blocks per tick, use Squeedometer. Much more accurite.");
}
this.onUpdate = function() {
chat.print("§"+ Math.floor(Math.random()*9)+ "--------------------------")
chat.print("mX: " + mc.thePlayer.motionX);
chat.print("mY: " + mc.thePlayer.motionY);
chat.print("mZ: " + mc.thePlayer.motionZ);
chat.print("posX: " + mc.thePlayer.posX);
chat.print("posY: " + mc.thePlayer.posY);
chat.print("posZ: " + mc.thePlayer.posZ);
chat.print("Timer: " + mc.timer.timerSpeed);
chat.print("OnGround: " + mc.thePlayer.onGround);
chat.print("Speed: " + speed + " Motion/tick");
speed = X + Z;
//mc.thePlayer.timeInPortal = 0;
X = Math.abs(mc.thePlayer.motionX);
Z = Math.abs(mc.thePlayer.motionZ);
}
}
var emo = new Emo();
var emoClient;
function onEnable() {
emoClient = moduleManager.registerModule(emo);
}
function onDisable() {
moduleManager.unregisterModule(emoClient);
}