Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Player Function

Comments in 'Plugin Development' started by Boltingthunder, Feb 8, 2015.

  1. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    How do I use the Player Function? The docs never really help me...
  2. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Can you be more specific?
  3. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    I want to mess around with the players motion, such as when you tap on any block, I want the Y-value to increase by 5.
  4. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    Look in some plugins to help you out, but don't copy the code. If you do make sure you have permission or you have at least given full credit of the code to who rightfully owns/wrote it.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Use setMotion() to change the speed, or teleport() to teleport directly.
  6. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    Could I change how much the player can be launched up into the air?
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Yes
  8. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    How do I do that?
  9. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    $setMotion(x, y, z);
  10. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    So, I can do $setMotion(x, y + 5, z); ?
  11. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    But don't write "x", "y", "z" xD replace them with the values you want to set
  12. Boltingthunder
    Offline

    Boltingthunder New Member

    Joined:
    Jan 18, 2015
    Posts:
    20
    Minecraft User:
    Bolting_Thunder
    Alright, I got it. Thanks. :) also, could you i DM you on Twitter? I've got some questions if you don't mind answering.
  13. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    You can DM me by the forums ;)

Share This Page

Advertisement