-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathAAC 4.11 NO WEB.js
More file actions
44 lines (44 loc) · 1.26 KB
/
Copy pathAAC 4.11 NO WEB.js
File metadata and controls
44 lines (44 loc) · 1.26 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
var scriptName = "AAC4.1.1 NoWeb";
var scriptAuthor = "cancername";
var scriptVersion = 1.0;
// It's slightly slower than normal
// Converts from degrees to radians.
Math.radians = function(degrees) {
return degrees * Math.PI / 180;
};
// Converts from radians to degrees.
Math.degrees = function(radians) {
return radians * 180 / Math.PI;
};
function hMotion(offset) {
mc.thePlayer.motionX = parseFloat(Math.cos(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
mc.thePlayer.motionZ = parseFloat(Math.sin(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
}
function NoWeb() {
this.getName = function () {
return "AAC4NoWeb";
}
this.getDescription = function () {
return "by cancername";
}
this.getCategory = function () {
return "Fun";
}
this.onUpdate = function () {
if (mc.thePlayer.onGround && mc.thePlayer.isInWeb) {
hMotion(0.35)
}
if (mc.thePlayer.onGround && mc.thePlayer.isInWeb && mc.thePlayer.ticksExisted % 8 == 0) {
hMotion(0.8)
}
}
this.onDisable = function () {}
}
var noWeb = moduleManager.registerModule(new NoWeb);
function onLoad() {}
function onEnable() {
noWeb;
}
function onDisable() {
moduleManager.unregisterModule(noWeb);
}