Petting icon

Petting -----

Pet to heal your cats, dogs, horses, parrots and anything else.



[​IMG]

A simple lightweight plugin to allow players to heal their pets by petting them. The config is customizable and you can change everything about the plugin.
Usage:
Shift right-click your pet with an empty hand, you will pet it. Petting entities will heal them slowly. You can configure this to work on any entity in the game.

[​IMG]

Code (YAML):
config-version : 1

settings
:
  shift
: true # Does the player need to hold shift.
  tamed
: true # If the entity can be tamed, does it have to be for the player to pet it.
  owner
: false # If only the owner can pet an entity.
  hand
: true # Does the player need to use his hand to pet.
  volume
: 0.3 # Volume of sound effects.
  pitch
: 1.3 # Pitch of sound effects.
  event-cancel
: true # If the player is petting an entity should other actions be canceled.
  heal-amount
: 1 # 0.5 is half a heart, 1 is 1 heart.
  cooldown
: 0.5 # Delay in seconds for how often someone can pet something.

  # You may need to adjust these if you are on older versions
  # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
  # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
  sound
:
    WOLF
: ENTITY_WOLF_AMBIENT
    CAT
: ENTITY_CAT_PURR
    PARROT
: ENTITY_PARROT_AMBIENT
    FOX
: ENTITY_FOX_AMBIENT
    HORSE
: ENTITY_HORSE_AMBIENT
    ZOMBIE_HORSE
: ENTITY_ZOMBIE_HORSE_AMBIENT
    SKELETON_HORSE
: ENTITY_SKELETON_HORSE_AMBIENT
    DONKEY
: ENTITY_DONKEY_AMBIENT
    MULE
: ENTITY_MULE_AMBIENT
    LLAMA
: ENTITY_LLAMA_AMBIENT

Commands:
/petting - Plugin info
/petting reload - Reload plugin

Permissions:

petting.use (Default)
petting.reload (OP)

[​IMG]
[​IMG]

[​IMG]
Resource Information
Author:
----------
Total Downloads: 4,200
First Release: Jan 28, 2020
Last Update: Oct 7, 2021
Category: ---------------
All-Time Rating:
9 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings