Autofindblock
-
Autofindblock
Version:1.0
Description:Help you choose the hotbar have block when use scaffold/tower
Changlog:
-1.0:first releasevar scriptName = "Autofindblock" var scriptAuthor = "Lolmc" var scriptVersion = 1.0 var towerModule = moduleManager.getModule("Tower"); var scaffoldModule = moduleManager.getModule("Scaffold"); var InventoryUtils = Java.type("net.ccbluex.liquidbounce.utils.InventoryUtils"); var blockSlot = -1 var slot = null function Autoblock() { this.getName = function() { return "AutoFindBlock"; }; this.getTag = function() { return "idk"; }; this.getDescription = function() { return "help u find block and pick them"; }; this.getCategory = function() { return "World"; }; this.onUpdate = function() { blockSlot = InventoryUtils.findAutoBlockBlock(); if(slot == null) { // by commandblock2 slot = mc.thePlayer.inventory.currentItem } if(blockSlot != -1) { if(scaffoldModule.getState() || towerModule.getState()) { mc.thePlayer.inventory.currentItem = blockSlot - 36 } else { if(slot != null) { mc.thePlayer.inventory.currentItem = slot slot = null } } // chat.print(blockSlot); } } } var Autoblock = new Autoblock() var AutoblockClient function onLoad() {} function onEnable() { AutoblockClient = moduleManager.registerModule(Autoblock) } function onDisable() { moduleManager.unregisterModule(AutoblockClient) }
-
hmm noice
-
@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)