Filled Heart Containers

Discussion in 'Plugin Requests' started by Ramen11, Sep 28, 2019.

  1. Offline

    Ramen11

    Plugin category: Role Playing

    Minecraft version: 1.14.4+

    Suggested name: Heart Containers

    What I want: I want a plugin that spawns heart containers (Similar to the ones here) to random places in the map. Each heart container should add one heart to a player's max health, and the max health should not reset when a player dies. I also want to be able to spawn a container with a command. A heart should be spawned every 10 minutes within 50 blocks of a player unless the player has not changed position for 10 minutes.

    Ideas for commands: /heart spawn ~ ~ ~ (Spawns a heart at ~ ~ ~)
    /heart health [player] [health] (Changes [player]'s max health [health])

    Ideas for permissions: heartcontainer.spawnhearts (able to spawn containers)
    heartcontainer.changehealth

    When I'd like it by: A month or so
     
    Last edited: Sep 30, 2019
  2. Offline

    Sir_Jonn

    EDIT: Actually read your post and not skimmed it. I'm currently working on it!
    https://gyazo.com/8687fe3020910327734c8d624331d35e
     
    Last edited: Sep 30, 2019
  3. Offline

    Ramen11

    Done!
     
  4. Offline

    Ramen11

    Looking forward to it!
     
  5. Offline

    Sir_Jonn

    https://www.dropbox.com/s/6z50we9vk6oo8on/HeartContainers-1.0.0.jar?dl=0

    Commands:
    maxhealth <player> <health>
    spawnheart <x> <y> <z>
    aliases: [sh,hs]

    Config is auto-generated to your settings

    Perms
    heartcontainer.changehealth
    heartcontainer.spawnhearts

    Source
    https://github.com/SirJonn/Heart-Containers

    Made mid-class of history, hope it works good. Untested, and I know I could write a better function for randomizing heart spawning, but should work fine!

    Shouldn't cause any lag, but please report if you find any lag coming from the plugin, I have some other methods.
    https://timings.aikar.co/?id=0edd13d098c14d9ca434aa711b714428#plugins

    https://gyazo.com/7cdf8a47cf4bfdc27cd72210181cdae3
     
    Last edited: Oct 2, 2019
  6. Offline

    Ramen11

    The hearts do not give health and are creating spam of errors in the console.
    https://pastebin.com/Ywxn1tKC
    However, the maxhealth command works just fine.
     
  7. Offline

    Sir_Jonn

    Last edited: Oct 2, 2019
    Ramen11 likes this.
  8. Offline

    Ramen11

    Sir_Jonn likes this.

Share This Page