- Native Minecraft Version:
- 1.16
- Tested Minecraft Versions:
- 1.13
- 1.14
- 1.15
- 1.16
- Source Code:
- https://gitlab.com/ranull/minecraft/petting
- Donation Link:
- https://www.buymeacoffee.com/ranull
A simple lightweight plugin to allow players to pet their animals! The config is very customizable and you can add sound effects for any mob in the game.
Code (YAML):configVersion: 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.
cancelEvent: true # If the player is petting an entity should other actions be canceled.
healAmount: 1 # 0.5 is half a heart, 1 is 1 heart.
petDelay: 0.5 # Delay in seconds for how often someone can pet something.
entities: # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
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
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!
Commands:
/petting - Plugin info
/petting reload - Reload plugin
Permissions:
petting.use (Default)
petting.reload (OP)

Petting 1.2
Pet your cats, dogs, horses and more! Pet any mob in the game! Customizable! Open Source!
-
Carl0Jonshon likes this.
Recent Updates
- Added 1.16 Support Jul 30, 2020
- Petting Animation, Pet Delay and Healing Jan 28, 2020
Recent Reviews
-
Carl0Jonshon
- 1/5,
[18:14:38 ERROR]: Could not pass event PlayerInteractEntityEvent to Petting v1.2
java.lang.NoClassDefFoundError: net/minecraft/server/v1_16_R1/Entity
at com.ranull.petting.animation.Animation.handAnimation(Animation.java:21) ~[?:?]
at com.ranull.petting.manager.PettingManager.petEntity(PettingManager.java:48) ~[?:?]
at com.ranull.petting.events.Events.onEntityInteract(Events.java:46) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor51.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:2208) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:151) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:114) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1202) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1195) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:97) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1335) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1010) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:179) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_16_R1.Entity
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:105) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[patched_1.16.4.jar:git-Yatopia-"87c3b4e"]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_275]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_275]
... 23 more -
Oathkeeper
- 5/5,
Works as intended! Adds a nice and simple minimalist feature to the game. I'm sending a feature request into discussion!
-
lokka30
- 5/5,
Great idea and works very well
Great customisation in the config
...................... -
oakina
- 5/5,
Seems like this could be a very promising plugin, I really like the idea - very straightforward. Thank you!
-
Author's Response
Thanks for the review! :)
-
-
Author's Response
Thanks for the review! I will look into your request.
-