1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Questions about EXP and Lava&Water Collisions

Discussion in 'Facepalm' started by DataSyncError, Mar 19, 2017.

  1. DataSyncError

    DataSyncError Silverfish

    Messages:
    20
    GitHub:
    idirtniverse
    Hey all,

    I'd like to know if there's anyway to take away player's exp? I couldn't find any and I've been searching for hours now but still no clue, and so is lava + water collisions event - that makes cobblestone < I'd like to use this event ( if there's even one >_> ) to create oregen plugin :p If you know something related to these two please let me know :D

    Thank you ;d
     
  2. PocketKiller

    PocketKiller Slime

    Messages:
    83
    GitHub:
    iPocket
    It should work by using a negative integer in /xp...
     
  3. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    $player->takeXp();

    or

    $player->takeXpLevel();
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    wtf? in which spoon do these functions exist? Please do not post random functions without any context and explanation. These functions do not exist in pocketmine\Player (also not in Human and Entity)
     
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    It's
    PHP:
    $player->setXpLevel();
    $player is Player
     
  6. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    what is that
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.