extra hearts

Discussion in 'Plugin Requests' started by xsvkaa, Sep 30, 2023.

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

    xsvkaa

    Minecraft version: 1.18.2 Paper

    Suggested name: ExtraHeart

    What I want:
    I would like a heart plugin that adds a heart to you when you have less than 30 hp (15 hearts) and when you have more than 30 hearts (60 hp) to 50 hearts (100 hp). If you have less, by clicking you add one heart and the item, which will be the gray dye, will be removed.

    I would like to:
    - the item was glowing so that it could be set in the config with a name and lore with multiple lines
    - so that it stacks without any problems and removes only once each time (one click = one addition of a heart and one removal of an item)
    - when you have more than 15 hearts (30 hp) a message is sent "&CYou cannot use this item, you have more than 15 hearts!" and when you have more than 30 hearts (60hp) and less than 50 hearts (100 hp) "&CYou cannot use this item, you have more than 50 hearts!"

    CONFIG EXAMPLE:
    extra-heart-15-item-displayname: ""
    extra-heart-30-item-displayname: ""

    extra-heart-15-item-lore: #when you have less than 15 hearts (30 hp)
    - ""
    - ""
    - ""
    - ""

    extra-heart-30-item-lore: #when you have more than 30 hearts (60 hp) and less than 50 hearts (100 hp)
    - ""
    - ""
    - ""
    - ""

    extra-heart-15-item-use: "&aHeart used!""
    extra-heart-15-item-error: "&CYou cannot use this item, you have more than 15 hearts!"

    extra-heart-30-item-use: "&aHeart used!"
    extra-heart-30-item-error: "&CYou cannot use this item, you have maximum hearts! (50)"

    Thank you very much in advance!



    Ideas for commands: /addheart

    Ideas for permissions: admin.heart
     
    Last edited: Sep 30, 2023
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    xsvkaa

    1. the plugin works incorrectly, when an item is stacked, the entire amount is deleted
    2. there are only up to 15 hearts, now I want up to 50 more
    3. It is not possible to turn on glow

    I wanted to write to the author, but he was last active in May

     
  4. Offline

    gochi9

    Here is the link

    You can add as many items as you'd like in the config file, so there's no need for another update from me. Just follow the examples in the config, and you should be fine. (Remove the # from the example if you want to test it out)

    Commands: [] - Mandatory, {} - Optional
    /extrahearts reload - Reloads the config
    /extrahearts ids - Shows the current item IDs from the config
    /extrahearts giveitem [id] {amount:} - Gives yourself the specified item
    /extrahearts giveitem [id] [player] {amount:} - Gives the specified player the specified item

    All commands use this permission: extrahearts.admin
     
    Last edited: Oct 5, 2023
  5. Offline

    xsvkaa

    works fine, but I would like to use a separate message for each heart when it can no longer use the heart and when the heart will be used. as I described it and gave an example.
     
  6. Offline

    gochi9

    xsvkaa likes this.
  7. Offline

    xsvkaa

    perfect :)
     
  8. Offline

    xsvkaa

    @gochi9 can you remove receiveItem: and sentItemSelf:? please
     
  9. Offline

    gochi9

    Sure thing!
     
Thread Status:
Not open for further replies.

Share This Page