Autofindblock
-
@LolMC said in Autofindblock:
no one care my script
yes im recoding my target hud script so i don't fucking care about this
-
module = { name: "AutoFindBlock", category: "Misc", description: "Helps you to automatically select a block", author: "Lolmc, CzechHek", version: "2.1", 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; } } } var slot = -1; script.import("Core.lib");
-
@CzechHek said in Autofindblock:
module = {
name: "AutoFindBlock",
category: "Misc",
description: "Helps you to automatically select a block",
author: "Lolmc, CzechHek",
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 = null;
}
}
}var slot;
script.import("Core.lib");One liner one liner, but cannot see the 1 line script on Misc.
-
@CzechHek I noticed a small bug. If your slot is on number 1 and want to switch to slots 2-9 and then turn off the Scaffold module, the script won't allow it to go back to slot 1 (where it originally was, before switching to any other slot)
Video to demonstrate:
-
make a verus fly script pls (test on omegacraft.cl)