Navigation

    CCBlueX Forum

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

    Does anyone know why it doesnt work?

    ScriptAPI
    2
    3
    55
    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.
    • DreamWasFucked
      DreamWasFucked Banned last edited by

      help

      var script = registerScript({
          name: "xddd",
          version: "0.0.0",
          authors: ["lol"]
      });
      
      script.registerModule({
          name: "xddd",
          category: "Fun", 
          description: ""
      },
      function (module) {
          module.on("packet", function(e) {
              var packet = e.getPacket()
              if (packet instanceof C0BPacketEntityAction && packet.getAction() == C0BPacketEntityAction.Action.OPEN_INVENTORY) {
                  Chat.print("[DEBUG] C0BPacketEntityAction.Action.OPEN_INVENTORY");
                  e.cancelEvent();
              }
          });
      });
      var C0BPacketEntityAction = Java.type('net.minecraft.network.play.client.C0BPacketEntityAction');
      
      I 1 Reply Last reply Reply Quote 0
      • I
        idk my name @DreamWasFucked last edited by

        @skidma Action cannot be like Action.OPEN_INVENTORY.
        use packet.getAction() == "OPEN_INVENTORY" instead

        DreamWasFucked 1 Reply Last reply Reply Quote 0
        • DreamWasFucked
          DreamWasFucked Banned @idk my name last edited by

          @idk-my-name This doesnt work and why C0BPacketEntityAction.Action.START_SPRINTING works

          1 Reply Last reply Reply Quote 0
          • First post
            Last post