Simple autojump code

Discussion in 'Plugins and Coding' started by nnce, Jul 10, 2019.

  1. nnce

    nnce Member

    Messages:
    145
    Likes Received:
    66
    Trophy Points:
    29
    Code:
    if (mc.thePlayer.onGround) {
           mc.thePlayer.jump();
    }
     
    Sulphate likes this.
  2. Sulphate

    Sulphate Member

    Messages:
    189
    Likes Received:
    136
    Trophy Points:
    58
    Sulphate
    Diamond
    PLUS
    Huh. That's pretty good. I came up with some code for detecting a cheater, too, here it is (top secret):

    Code:
    if (player.isHacking()) {
        player.ban();
    }
    Make sure you don't tell anyone else, this is cutting-edge stuff!
     
    Shallidor and nnce like this.
  3. mitgobla

    mitgobla Member

    Messages:
    107
    Likes Received:
    253
    Trophy Points:
    74
    mitgobla
    Obsidian
    Here you all are with your fancy programming, I just sellotape my space-bar down. Ez
     
    Kloska, SeƱor Hour Glass and nnce like this.
  4. nnce

    nnce Member

    Messages:
    145
    Likes Received:
    66
    Trophy Points:
    29
    Ik its a joke but that doesn't exist
     
  5. Marco09MC

    Marco09MC Member

    Messages:
    6
    Likes Received:
    5
    Trophy Points:
    4
    Not bad code, but you should also add a check if the player is in water and lava because you would jump in water and in lava like how you would jump normally on ground
     
    nnce likes this.
  6. nnce

    nnce Member

    Messages:
    145
    Likes Received:
    66
    Trophy Points:
    29
    I forgot about that xD