Make players have a chance to start bleeding out whenever they take damage from another entity, then have the players use a bandage item to stop the bleeding. Everything in the plugin can be configured so It should be easy to do what you want with it. Any recommendations or additions I can make to the plugin please let me know I'm always looking for things to change/create.
Also added functionality to check if a player relogs to retain the bleeding out effect if a player was previously bleeding
Config:
Code (Text):
# Bleeding plugin configuration
# Modify the values below to change the plugin's behavior
# Configuration options for the bleeding
# Chance of bleeding (1 out of chance)
bleeding:
chance: 10
# Interval in ticks between bleeding damage
interval: 60
# Amount of damage dealt when bleeding
amount: 0.5
# Message displayed to player when bleeding starts
message1: "&cYou're bleeding out!"
# Message displayed when using your bandage item
message2: "&2You have stopped bleeding."
#Message displayed when you use your bandage item and your not bleeding
message3: "&cYou're not bleeding."
# Configuration options for the Bandage Itemstack
bandage:
# Material for the Bandage item 'https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html'
item: PAPER
# Whether the bandage item should glow
glowing: true
# Display name for the bandage item
name: "&fBandage"
# Custom lore for the bandage item
# Add as many lore lines as you want
lore:
- "&7Restores health and stops bleeding"
# Crafting recipe for the Bandage Itemstack
# Ingredient Material = 'https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html'
# Add as many ingreients as you want but remember to keep the format to always be a 3x3
# If you wanted to make the recipe be 1 ingredent you would have to use AIR as an ingredient
recipe:
format:
- "AAA"
- "ABA"
- "AAA"
ingredient:
A: "PAPER"
B: "POTION"