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

Set exp when player break the block

Comments in 'Plugin Development' started by IcePL, Mar 14, 2016.

Thread Status:
Not open for further replies.
  1. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Hi it possible to make a exp from mining stone? I have a writen plugin stonegenerator and i
    wants to get exp from mining stone.
  2. Philipp
    Offline

    Philipp New Member

    Joined:
    Feb 17, 2016
    Posts:
    6
    Minecraft User:
    Goodstuff4UonYT
    Do you have written the stonegenerator ? ^^
    Yes its possible
  3. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Yes i have writen stonegenerator also this is not use your code i writing my:)
    And how to make the exp from stone?
  4. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Im search the docs.pocketmine.net and i have not found
  5. Philipp
    Offline

    Philipp New Member

    Joined:
    Feb 17, 2016
    Posts:
    6
    Minecraft User:
    Goodstuff4UonYT
    What to do:

    1. Search for a Event that is called if a player Brakes a Block
    2. Search for a function which adds Experience to the player
    3. Try to code this, if it doesn't work write again :)
  6. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Ok i try
  7. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Currently is that the Documentation for PM 1.4. That have no xp in mcpe 0.10.4 so you can not find that;)
    Latest unofficially docs is here http://pmplugins.github.io/docs/index.html
    jojoe77777 likes this.
  8. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Pls help xd im not found
  9. Philipp
    Offline

    Philipp New Member

    Joined:
    Feb 17, 2016
    Posts:
    6
    Minecraft User:
    Goodstuff4UonYT
    Are you using pocketmine/imagicalMine/Clearsky or whatever :D
  10. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
    Imagicalmine :)
  11. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    This is still pocketmine...
  12. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    I found something like
    PHP:
    PlayerExperienceChangeEvent
    // Maybe that
  13. Philipp
    Offline

    Philipp New Member

    Joined:
    Feb 17, 2016
    Posts:
    6
    Minecraft User:
    Goodstuff4UonYT
    so you can use:
    setExperience()
    setExpLevel()
    getExperience()
    updateExperience()
    addExperience()

    The Event is the BlockBreakEvent
  14. IcePL
    Offline

    IcePL New Member

    Joined:
    Feb 16, 2016
    Posts:
    73
    Minecraft User:
    IcePL
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is the PocketMine Plugin Development Forum. This section is for talking about the PocketMine API.
    Survingo, jojoe77777 and KubixQ like this.
  16. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Asking for help about 3rd party PocketMine builds is not against the rules. Take a look at the new section guidelines:
    Survingo and CrazedMiner like this.
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    That is only when they have relevance to the PocketMine API itself. Experience has no relevance to the PocketMine API (because it barely exists right now), and it may be different when they come in official PocketMine. For the sake of prevention of confusion, this should not be allowed here.
    Hotshot_9930 and Survingo like this.
  18. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Locked. @PEMapModder is correct, in order to fulfill this request, a user would have to have knowledge of ImagicalMine and not just PocketMine. Users on this forum are expected to have understand the PocketMine API and requests for help that hinge on knowledge of other API's will be locked.

    @Hotshot_9930 I'm sorry if there was confusion. Users are not supposed to create threads about third party software, and any of those threads may be locked. But if the thread overlaps entirely with the PocketMine API, there isn't any good reason not to answer it. However, in this case, answering the question would require additional knowledge.
Thread Status:
Not open for further replies.

Share This Page

Advertisement