-
Notifications
You must be signed in to change notification settings - Fork 5
/
Metaphysics.js
33 lines (28 loc) · 956 Bytes
/
Metaphysics.js
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
var scriptName = "ArmorBraker";
var scriptAuthor = "C03憨憨";
var scriptVersion = 0.00000001;
var C09PacketHeldItemChange = Java.type('net.minecraft.network.play.client.C09PacketHeldItemChange');
function ExampleModule() {
this.getName = function() {
return "Metaphysics";
}
this.getDescription = function() {
return "AquaVit";
}
this.getCategory = function() {
return "Fun";
}
this.onUpdate = function ( ) {
return -min + (int)(Math.random() * (max - -min + 1));
this.mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(this.mc.thePlayer.inventory.currentItem));
}
}
var exampleModule = new ExampleModule();
var exampleModuleClient;
function onLoad() {}
function onEnable() {
exampleModuleClient = moduleManager.registerModule(exampleModule);
}
function onDisable() {
moduleManager.unregisterModule(exampleModuleClient);
}