CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Broken silent chest stealer

    Scripts
    script actual script not core lol broken
    5
    9
    406
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • skiddermaster412
      skiddermaster412 Banned last edited by

      This post is probably useless but probably someone wants to finish this.
      Known bugs:

      • ChestStealer can't close the chest
      • Normal key inputs don't register

      i didn't test this on a server but probably generates ghost items

      /// api_version=2
      var script = registerScript({
      	name: "SilentChestStealer",
      	version: "2.0",
      	authors: ["OrangeCat"]
      });
      var prf = ", "+script.scriptName + " v"+script.scriptVersion+ " by";
      Java.type("java.util.Arrays").asList(script.scriptAuthors).forEach(function(e){
      	prf += (e != script.scriptAuthors[0] ? ", " : " ") + e;
      });
      script.registerModule({
      	name: script.scriptName,
      	description: "steals youre item XDDDD" + prf,
      	category: "Movement",
      	tag: "sigma"
      }, function (module) {
      	var GuiChest = Java.type("net.minecraft.client.gui.inventory.GuiChest");
      	var ContainerChest = Java.type("net.minecraft.inventory.ContainerChest");
      	var IInventory = Java.type("net.minecraft.inventory.IInventory");
      	var KeyEvent = Java.type("net.ccbluex.liquidbounce.event.KeyEvent");
      	var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
      	var keybinds = Java.type("java.util.Arrays").asList(mc.gameSettings.keyBindings);
      	var KeyBinding = Java.type("net.minecraft.client.settings.KeyBinding");
      	var sex = false;
      	module.on("render2D", function(e){
      		var cr = mc.currentScreen;
      		if(cr != null && cr instanceof GuiChest){ // i fucking hate js
      			var i = cr.lowerChestInventory;
      			if(i instanceof IInventory){ // tf is this
      				var rp = new (Java.extend(GuiChest))(getFieldContent(mc.thePlayer, "inventory"), i){
      					drawScreen: function(mouseX, mouseY, partialTicks){
      						mc.fontRendererObj.drawString("Open: "+sex, 50, 50, 0xffffffff);
      						if(!mc.inGameHasFocus){
      							mc.inGameHasFocus = true;
      							mc.mouseHelper.grabMouseCursor();
      						}
      					}, keyTyped: function(typedChar, keyCode){
      						if(keyCode == 1){
      							mc.thePlayer.closeScreen();
      						}else{
      							KeyBinding.onTick(keyCode);
      							LiquidBounce.eventManager.callEvent(new KeyEvent(keyCode));
      						}
      					}
      				};
      				if(!sex){
      					mc.displayGuiScreen(rp);
      					sex = true;
      				}
      			}
      		}else{
      			sex = false;
      		}
      	});
      	function getFieldContent(i, field){
      		var f = i.getClass().getSuperclass().getSuperclass().getDeclaredField(field);
      		f.setAccessible(true);
      		return f.get(i);
      	}
      });
      
      Painis Bot M A 3 Replies Last reply Reply Quote 0
      • Painis Bot
        Painis Bot Banned @skiddermaster412 last edited by Painis Bot

        @skiddermaster412 said in Broken silent chest stealer:

          		if(!sex){
          			mc.displayGuiScreen(rp);
          			sex = true;
        

        I'm not even saying

        1 Reply Last reply Reply Quote 0
        • M
          mems Moderator @skiddermaster412 last edited by

          @skiddermaster412 The idea of having a silent ChestStealer module really intrigued me and hence I tried coding it on LiquidBounce Nextgen. One thing would not work tho which was the moving/rotating part and it would not be fixed almost at all.

          1 Reply Last reply Reply Quote 0
          • A
            Aftery @skiddermaster412 last edited by

            This post is deleted!
            skiddermaster412 1 Reply Last reply Reply Quote 0
            • skiddermaster412
              skiddermaster412 Banned @Aftery last edited by

              @aftery yeah its bad

              1 Reply Last reply Reply Quote 0
              • A
                Aftery last edited by

                This post is deleted!
                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @Aftery last edited by

                  @aftery said in Broken silent chest stealer:

                  /// api_version=2
                  var script = registerScript({
                  	name: "right into the base",
                  	version: "irgin",
                  	authors: ["kachum lol", "aery"]
                  });
                  var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
                  var GuiChest = Java.type("net.minecraft.client.gui.inventory.GuiChest");
                  script.registerModule({
                  	name: "rightintothebase",
                  	description: "",
                  	category: "Fun"
                  }, function (module) {
                  	var gc = moduleManager.getModule("ChestStealer");
                  	var prev = null;
                  	module.on("render2D", function (e) {
                  		if (mc.currentScreen != null && mc.currentScreen instanceof GuiChest
                  			&& prev != mc.currentScreen && gc.getState()) {
                  			prev = new (Java.extend(GuiChest))(mc.currentScreen.lowerChestInventory, mc.currentScreen.lowerChestInventory) {
                  				func_73863_a: function(mouseX, mouseY, partialTicks) {
                  					mc.fontRendererObj.drawString(massivest anti pasta right here folks, 120, 50, 0xffa0ffff);
                  					if (!mc.inGameHasFocus) {
                  						mc.inGameHasFocus = something i guess;
                  						mc.mouseHelper.grabPussyAndMouseCursor();
                  					}
                  				},
                  				func_146269_k: function() { Chatprint("i am a threat to society"); }
                  			};
                  			previous.inventorySlots = mc.currentScreen.inventorySlots;
                  			prev.allowUserInput = "true";
                  			mc.currentScreen = null;
                  			mc.displayGuiScreen(previous);
                  		}
                  	});
                  });
                  

                  i fixed the 2 known bugs!
                  and additionally fixed:

                  • it not working on normal b72
                  • stupid reflection
                  • general autism

                  theres a few more which id like to mention, in which the fix has been left out as an exercise for the reader:

                  • ctrl q
                  • liquidbounce key and mouse events (not normal key inputs isnt it ^.^)

                  no more sex=false;
                  approved

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Aftery @Guest last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User last edited by

                      @Aftеry balls

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      About
                      • Terms of Service
                      • Privacy Policy
                      • Status
                      • Contact Us
                      Downloads
                      • Releases
                      • Source code
                      • License
                      Docs
                      • Tutorials
                      • CustomHUD
                      • AutoSettings
                      • ScriptAPI
                      Community
                      • Forum
                      • Guilded
                      • YouTube
                      • Twitter
                      • D.Tube