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

BossBarAPI

Comments in 'Plugin Development' started by thebigsmileXD, Nov 10, 2016.

  1. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Hello fellas,
    don't mind me while i create an API Plugin for the BossBar!
    You can change:
    The percentage of the bar
    The title of the bar

    And if i am not mistaken you can also change the design/color somehow, i'll try to figure it out

    Your plugins would then just have to hard-depend on the plugin, and then include it. And this will be the first plugin where i use my new name, XenialDan

    Current Repo: https://github.com/thebigsmileXD/BossBarAPI

    I will create a documentation for the API too

    (PS: i decoded the BossEventPacket + EventPacket and know what values are needed, but not fully which value does what.)

    Current state: i can set the boss title and percentage once.

    Remember: it will spawn a fake entity to the player (probably an invisible item 31 blocks above the player (because 32 is the max distance))
    Blabla, Vaivez66 and HimbeersaftLP like this.
  2. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    waiting for code to be uploaded
    honestly i prefer it to be a lib instate of a from of plugin
  3. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    But thats the way to do it. #PocketMinePluginAPI
    HimbeersaftLP likes this.
  4. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Done, code is online, tested and working
    HimbeersaftLP likes this.
  5. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    depends if i really want to bother my user to download an extra plugin that the real question i suppose
    HimbeersaftLP likes this.
  6. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
    Very nice, well done :)
    thebigsmileXD and HimbeersaftLP like this.
  7. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Its an API plugin like Economy. You need economy to run EconomyGS etc. Whats the matter - its core independ
    HimbeersaftLP likes this.
  8. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    well depends like economy it have a database with data unlike this which is just purely utility usage
    Primus and HimbeersaftLP like this.
  9. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Please google the definition of API.
  10. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    that dosent help on any thing
    anyways i will just wait for someone to make a fully functional copy and i will port it into a library for these who prefer to use that
  11. XenialDan
    Offline

    XenialDan Banned

    Joined:
    Nov 14, 2016
    Posts:
    1
    So, some updates here:
    I tried to make the wither ride on the player so its always at the 'same' position.

    Sadly the wither can't ride the player but a player can ride a wither.

    So i have to send movement packets to the player (moving the wither)

    So, what API functions would you like to have. I can:
    -> spawn to all
    -> set text
    -> set percentage
    -> remove from player
    -> send for x seconds to all
    Thunder33345 likes this.

Share This Page

Advertisement