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
EDIT: Actually read your post and not skimmed it. I'm currently working on it! https://gyazo.com/8687fe3020910327734c8d624331d35e
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
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.
Which version of spigot are you using? Could be that I used paper's api instead of bukkit, let me change that real quick! Found the issue, I was using paper instead of spigot. Both have different methods FIXED : https://www.dropbox.com/s/yjn96e7b92g0ck3/HeartContainers-FIXED.jar?dl=0