CCBlueX Forum

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

    How to check packets while attacking?

    Requests
    3
    4
    173
    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.
    • mq
      mq last edited by

      Is it possible to cancel packets while attacking?

      Like:

      module.on("attack", function(e) {
      	packet = e.getPacket()
      
      	if (packet instanceof C08PacketPlayerBlockPlacement) {
      		e.cancelEvent();
      	}
      });
      
      Foreheadchan 1 Reply Last reply Reply Quote 0
      • Foreheadchan
        Foreheadchan @mq last edited by

        @mq just no, you can't get packets from event attack

        mq 1 Reply Last reply Reply Quote 0
        • mq
          mq @Foreheadchan last edited by

          @foreheadchan ok... then how to check if the player is attacking?

          CzechHek 1 Reply Last reply Reply Quote 0
          • CzechHek
            CzechHek @mq last edited by

            @mq you need to check all packets for C02

            https://scriptapi.liquidbounce.net/net/minecraft/network/play/client/C02PacketUseEntity.html

            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