CCBlueX Forum

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

    no push (code)

    Scripts
    4
    8
    182
    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.
    • testnewtime
      testnewtime last edited by

      If it's not troublesome, i need code for NoPush

      Ali00035 FaaatPotato 2 Replies Last reply Reply Quote 0
      • Ali00035
        Ali00035 Banned @testnewtime last edited by

        @testnewtime said in no push (code):

        If it's not troublesome, i need code for NoPush

        For mobs?

        1 Reply Last reply Reply Quote 0
        • FaaatPotato
          FaaatPotato @testnewtime last edited by FaaatPotato

          @testnewtime depends on what you mean. Maybe velocity?

          if so

          //requires core
          onPacket: function(e) {
            if (e.getPacket() instanceof S12PacketEntityVelocity) e.cancelEvent();
          }
          
          • Core
          • Core examples
          • Packet

          But since that is already in liquidbounce I assume that you mean the push-away you get when you collide with an entity hitbox in mc-1.9+

          testnewtime 1 Reply Last reply Reply Quote 0
          • testnewtime
            testnewtime @FaaatPotato last edited by

            @faaatpotato 1) Blocks, 2) Water, 3) Entity

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

              @testnewtime In that case you need to use PushOutEvent that isn't available normally, but Core can make it usable using its Artificial Eventsâ„¢ system .

              ///api_version=2
              (script = registerScript({
                  name: "NoPush",
                  version: "1.0",
                  authors: ["CzechHek"]
              })).import("Core.lib");
              
              module = {
                  onPushOut: function (e) {
                      e.cancelEvent();
                  }
              }
              

              (this event has no other properties and only extends cancellable event)

              or you can just skid the implementation of that event if you can understand how it works in Core

              1 Reply Last reply Reply Quote 2
              • Ali00035
                Ali00035 Banned last edited by

                CzechHek and commandblock2 being cool as always.

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

                  @ali00035 said in no push (code):

                  CzechHek and commandblock2 being cool as always.

                  Artificial events actually exist because of his semi complete post about custom events.

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

                    @czechhek That's why I also mentioned him, he is also my best friend. 😄

                    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