Navigation

    CCBlueX Forum

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

    [De3dAnge1s]SpeedMine (Legacy)

    Scripts
    4
    6
    137
    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.
    • De3dAnge1s
      De3dAnge1s last edited by Temm

      Enjoy:blush:

      var scriptName = 'FastMine'
      var scriptAuthor = 'Killer'
      var scriptVersion = 1.0
      
      var C07PacketPlayerDigging = Java.type('net.minecraft.network.play.client.C07PacketPlayerDigging')
      var PotionEffect = Java.type('net.minecraft.potion.PotionEffect')
      var EnumFacing = Java.type('net.minecraft.util.EnumFacing')
      var ItemTool = Java.type('net.minecraft.item.ItemTool')
      var BlockPos = Java.type('net.minecraft.util.BlockPos')
      var Potion = Java.type('net.minecraft.potion.Potion')
      var Blocks = Java.type('net.minecraft.init.Blocks')
      var Block = Java.type('net.minecraft.block.Block')
      
      function getBlock(x, y, z) {
          var pos = new BlockPos(x, y, z);
          return mc.theWorld.getChunkFromBlockCoords(pos).getBlock(pos);
      }
      
      function getBlockPos() {
          return BlockPos
      }
      
      function FastMine() {
      
          var Mode = value.createList('Mode', ['NewPacket', 'NewPacket2', 'Potion', 'Novoline', 'Remix', 'Autumm'], 'NewPacket') 
          var Level = value.createInteger('Level', 3, 0, 4)
          var Time = value.createInteger('Time', 10, 0, 200)
          var MineSpeed = value.createFloat('Speed', 1.4, 0, 3)
      
          this.getName = function() {
              return 'FastMine'
          }
      
          this.getCategory = function() {
              return 'Player'   
          }
      
          this.getDescription = function() {
              return 'Speeds up block breaking'
          }
          var bzs = false; var bzx = 0.0; var pos; var face;
          this.onPacket = function(event) {
              if(Mode.get() == 'Remix') {
                  if(event.getPacket() instanceof C07PacketPlayerDigging && mc.playerController != null) {
                      if(event.getPacket().getStatus() == C07PacketPlayerDigging.Action.START_DESTROY_BLOCK) {
                          bzs = true
                          pos = event.getPacket().getPosition()
                          face = event.getPacket().getFacing()
                          bzx = 0.0
                      } else if(event.getPacket().getStatus() == C07PacketPlayerDigging.Action.ABORT_DESTROY_BLOCK || event.getPacket().getStatus() == C07PacketPlayerDigging.Action.STOP_DESTROY_BLOCK) {
                          bzs = false
                          pos = null
                          face = null
                      }
                  }
              }
          }
          this.onDisable = function() {
              if(Mode.get() == 'Potion') {
                  mc.thePlayer.removePotionEffect(Potion.digSpeed.getId())
              }
          }
          this.onUpdate = function() {
              mc.playerController.blockHitDelay = 0
              if(Mode.get() == 'NewPacket') {
                  if(mc.playerController.curBlockDamageMP == 0.1) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
                  if(mc.playerController.curBlockDamageMP == 0.4) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
                  if(mc.playerController.curBlockDamageMP == 0.7) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
              }
              if(Mode.get() == 'NewPacket2') {
                  if(mc.playerController.curBlockDamageMP == 0.2) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
                  if(mc.playerController.curBlockDamageMP == 0.4) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
                  if(mc.playerController.curBlockDamageMP == 0.6) {
                      mc.playerController.curBlockDamageMP += 0.1
                  }
                  if(mc.playerController.curBlockDamageMP == 0.8) {
                      mc.playerController.curBlockDamageMP += 0.2
                  }
              }
              if(Mode.get() == 'Potion') {
                  mc.thePlayer.addPotionEffect(new PotionEffect(Potion.digSpeed.id, Time.get(), Level.get()))
              }
              if(Mode.get() == 'Novoline') {
                  if(mc.theWorld != null) {
                      if(mc.playerController.curBlockDamageMP > (mc.thePlayer.inventory() && mc.thePlayer.getCurrentEquippedItem().getItem() instanceof ItemTool ? 0.6:0.675)) {
                          mc.playerController.curBlockDamageMP = 1.0    
                      }
                  }
              }
              if(Mode.get() == 'Remix') {
                  if(mc.playerController.extendedReach()) {
                      mc.playerController.blockHitDelay = 0
                  } else if(bzs) {
                      var block = mc.theWorld.getBlockState(pos).getBlock()
                      bzx += (block.getPlayerRelativeBlockHardness(mc.thePlayer, mc.theWorld, pos) * MineSpeed.get())
                      if (bzx >= 1.0) {
                          mc.theWorld.setBlockState(pos, Blocks.air.getDefaultState(), 11)
                          mc.thePlayer.sendQueue.getNetworkManager().sendPacket(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.STOP_DESTROY_BLOCK, pos, face))
                          bzx = 0.0
                          bzs = false
                      }
                  }
              }
              if(Mode.get() == 'Autumm') {
                  var pos = getBlockPos()
                  mc.playerController.curBlockDamageMP += getBlock(pos.getX(), pos.getY(), pos.getZ())
                  mc.theWorld.getBlockState(pos).getBlock().getPlayerRelativeBlockHardness(mc.thePlayer, mc.theWorld, pos) * 0.186
              }
          }
          this.addValues = function(values) {
              values.add(Mode)
              values.add(Level)
              values.add(Time)
              values.add(MineSpeed)
          }
      }
      
      var FastMine = new FastMine()
      var FastMineClient
      
      function onEnable() {
          FastMineClient = moduleManager.registerModule(FastMine)
      }
      
      function onDisable() {
          moduleManager.unregisterModule(FastMineClient)
      }
      

      im super skidder.

      De3dAnge1s 1 Reply Last reply Reply Quote 0
      • idiot
        idiot last edited by

        im ur mom

        1 Reply Last reply Reply Quote 0
        • De3dAnge1s
          De3dAnge1s @De3dAnge1s last edited by

          @1のyoky said in [De3dAnge1s]SpeedMine:

          im ur mom
          5555555555 im ur son

          1 Reply Last reply Reply Quote 0
          • C
            Cu6eSu9ar. last edited by

            I am Sorry The Mr'De3dAnge1s

            1 Reply Last reply Reply Quote 0
            • Temm
              Temm Moderator last edited by

              Consider porting to the new ScriptApi.

              De3dAnge1s 1 Reply Last reply Reply Quote 0
              • De3dAnge1s
                De3dAnge1s @Temm last edited by

                @Temm Okay im trying do it

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors