Skip to content

Devlrxxh/PetsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Fully packet based PetsAPI (1.8 - 1.21) using PacketEvents and EntityLib

Important

Project version is required to be Java 16 at least!

Setup

  1. Clone repo
  2. run mvn install
  3. Add this to pom.xml
    <dependency>
        <groupId>dev.lrxh</groupId>
        <artifactId>PetsAPI</artifactId>
        <version>1.0.0</version>
    </dependency>
    

Example Usage

PetsAPI.init(this)

Player player = ...
PlayerPet pet = new PlayerPet(SkinData.ofPlayerName(player.getName()));
pet.spawn(player);

// Example Animal Head
Player player = ...
PlayerPet pet = new PlayerPet(AnimalSkinData.COW);
pet.setLookAtPlayer(true);
pet.spawn(player);

// Remove player pets
for (Pet pet : PetsAPI.getPets(player)) {
    pet.remove();
}

pet. // See all methods

About

Fully packet based PetsAPI (1.8 - 1.21)

Resources

Stars

Watchers

Forks

Languages