Simple autojump code

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

  1. nnce

    nnce Member

    Messages:
    155
    Likes Received:
    74
    Trophy Points:
    29
    Code:
    if (mc.thePlayer.onGround) {
           mc.thePlayer.jump();
    }
     
  2. Sulphate

    Sulphate Member

    Messages:
    202
    Likes Received:
    154
    Trophy Points:
    58
    Sulphate
    Diamond
    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!
     
  3. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    149
    Likes Received:
    391
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    Here you all are with your fancy programming, I just sellotape my space-bar down. Ez
     
  4. nnce

    nnce Member

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

    Marco09MC Member

    Messages:
    35
    Likes Received:
    30
    Trophy Points:
    19
    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:
    155
    Likes Received:
    74
    Trophy Points:
    29
    I forgot about that xD
     
  7. JustANormalGuy

    JustANormalGuy Member

    Messages:
    11
    Likes Received:
    7
    Trophy Points:
    4
    Is this a joke?.. If on ground then jump? Wow dude so good. You should go on unknowncheats with this
     
    LoonyRules likes this.
  8. SpookyCreatures

    SpookyCreatures Member

    Messages:
    899
    Likes Received:
    428
    Trophy Points:
    123
    CraftCreatures
    Emerald
    Best coding ever xd
    Try to become a developer