-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAutoFindBlock.js
More file actions
23 lines (21 loc) · 747 Bytes
/
Copy pathAutoFindBlock.js
File metadata and controls
23 lines (21 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
///api_version=2
(script = registerScript({
name: "AutoFindBlock",
version: "2.2",
authors: ["Lolmc", "CzechHek"]
})).import("Core.lib");
module = {
category: "Misc",
description: "Helps you to automatically select a block",
onUpdate: function () {
if ((ScaffoldModule.state || TowerModule.state) && ~(blockSlot = InventoryUtils.findAutoBlockBlock())) {
!~slot && (slot = mc.thePlayer.inventory.currentItem);
mc.thePlayer.inventory.currentItem = blockSlot - 36;
mc.playerController.updateController();
} else if (~slot) {
mc.thePlayer.inventory.currentItem = slot;
mc.playerController.updateController(); slot = -1;
}
}
}
slot = -1;