@commandblock2 said in How to tell a module is on or off?:
well
what does finding that in the text file have to do with the code that you put after? Do I have to change something in the text file or what?
@commandblock2 said in How to tell a module is on or off?:
well
what does finding that in the text file have to do with the code that you put after? Do I have to change something in the text file or what?
@commandblock2
Thank you! I'm new, what is the
.minecraft/LiquidBounce-1.8 $ grep framebufferMc mcp-stable_22.srg
FD: net/minecraft/client/Minecraft/framebufferMc net/minecraft/client/Minecraft/field_147124_at
?
@idkmyname
final Trigger trigger = (Trigger) LiquidBounce.moduleManager.getModule(Trigger.class);
trigger.getState()
syntax maybe?
Is the API capable of taking a screenshot in scripts?
@sexma that's not pertinent
@sexma i mean via script
@sexma Also how would I take a screenshot? Thanks.
How to tell if a module is on or off?
moduleManager.getModule("Trigger").get()
This didn't work. What do I need to do?
Also how do you take a screenshot?
module.on("update", function() {
Chat.print("h");
})
@idk-my-name Also, is there any documentation on the mc.thePlayer class?
module.on("update", function() {
if (mc.thePlayer.getHeldItem().getItem() instanceof ItemMap) {
commandManager.executeCommands(".toggle trigger off")
}
})
Any idea why this didn't work?
@czechhek What does the getHeldItem() function return?
module.on("update", function() {
//if held item = map (
// commandManager.executeCommands(".toggle trigger off")
//)
//
})