Bukkit library written in Kotlin to make with compatibility and ease non-playable-character (NPC)

Overview

mc-npk

Easy to use, fast and efficient library to make non-playable-characters (NPC) inside a minecraft server.

Compatible with

  • 1.8.1-SNAPSHOT (1_8_R1);
  • 1.8.8-SNAPSHOT (1_8_R3);
  • 1.12.2-SNAPSHOT (1_12_R1).

Requirements

  • Java 8;
  • Gradle 7.1 or higher.

Installation

Gradle DSL:

repositories() {
    maven {
        name = "jitpack"
        url = 'https://jitpack.io'
    }
}   

dependencies() {
    implementation 'com.github.luiz-otavio.mc-npk:${MINECRAFT_VERSION}:${PROJECT_VERSION}'
}

Kotlin DSL:

repositories() {
    maven("https://jitpack.io")
}

dependencies() {
    implementation("com.github.luiz-otavio.mc-npk:${MINECRAFT_VERSION}:${PROJECT_VERSION}")
}

Maven:

<repositories>
    <repository>
        <id>jitpackid>
        <name>jitpackname>
        <url>https://jitpack.iourl>
    repository>
repositories>

<dependencies>
    <dependency>
        <groupId>com.github.luiz-otavio.mc-npkgroupId>
        <artifactId>${MINECRAFT_VERSION}artifactId>
        <version>${PROJECT_VERSION}version>
    dependency>
dependencies>

How to use

val plugin = ... // Your plugin instance
val location = ... // Location of your NPC

val npkFramework = NPKFramework(plugin)

val npc = npkFramework.createNPC(
    "npc_name", // Name of your NPC
    location, // Location of your NPC 
    Skin(...) // Your skin
) {
    // Touching Handler DSL:
    
    println("${it.player.name} has touched me!")
}

License

This project is licensed under the GNU General Public License v3.0.

Contributing

Please feel free to open an issue or create a pull request.

You might also like...
A custom view for rating which easy to make and use, but function is excellent
A custom view for rating which easy to make and use, but function is excellent

QRatingView A custom view for rating which easy to make and use, but function is excellent Effect Picture Properties declare-styleable name="QRat

Make squids be able to fly.

Xander's Fabric Template for Kotlin The best Fabric template using kotlin. Usage Mod Development: Please read the Fabric Wiki for general mod developm

Kord-selfbot is discord selfbot library written in kotlin

Kord-selfbot is discord selfbot library written in kotlin

📚  Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.
📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.

Android Components Architecture in a Modular Word Android Components Architecture in a Modular Word is a sample project that presents modern, 2020 app

KotlinDL - High-level Deep Learning Framework written in Kotlin and inspired by Keras

Оригинальный репозиторий https://github.com/JetBrains/KotlinDL KotlinDL: High-le

Movie Android App written in Kotlin, MVVM, Clean Architechture, Modularized, Coroutines, Android Architecture Components and Hilt
Movie Android App written in Kotlin, MVVM, Clean Architechture, Modularized, Coroutines, Android Architecture Components and Hilt

Movie Android App written in Kotlin, MVVM, Clean Architechture, Modularized, Coroutines, Android Architecture Components and Hilt.

Open-Source Forge 1.8.9 Hypixel Duels bot! Planned to support many modes and written in Kotlin.
Open-Source Forge 1.8.9 Hypixel Duels bot! Planned to support many modes and written in Kotlin.

This project has been moved to a new repository: [HumanDuck23/duck-dueller-v2](https://github.com/HumanDuck23/duck-dueller-v2) Duck Dueller Are you ti

KataContacts written in Kotlin. The main goal is to practice Clean Architecture Development

KataContacts written in Kotlin We are here to practice Clean Architecture Development. Clean Architecture is a way of structuring code. We are going t

A simple android Twitter client written in Kotlin
A simple android Twitter client written in Kotlin

Blum Blum is an unofficial, simple, fast Twitter client written in Kotlin. This project is a complete rewrite of the Java version. Screenshot Build To

Comments
  • Make stateful collection to update each viewer due to NPC updates.

    Make stateful collection to update each viewer due to NPC updates.

    Currently, there are alot of issues about updating NPC location, skin, or anything like that. One of them is just about stateful viewers, which means they should receive update packets when the NPC calls for them.

    bug help wanted 
    opened by luiz-otavio 0
  • Fix skin properties from GameProfile

    Fix skin properties from GameProfile

    Usually a player should have two properties to render skin, like: Signature and Texture. Keep in mind we should wait for a delay to let the minecraft client to load the skin.

    bug 
    opened by luiz-otavio 0
Releases(v1.0.8)
Owner
Luiz Otávio
15y | Technology enthusiast
Luiz Otávio
Tiny library to ease the use of environment variables with support for .env files

asimov/environment Tiny library to ease the use of environment variables with support for .env files. Installation Gradle (Kotlin) repositories {

Nicolas Bottarini 1 Jan 8, 2022
Utility library dedicated for functional & non-functional codebases to simplify modelling of success and failure responses for the JVM languages 🔀

Expressible Utility library, part of the panda-lang SDK, dedicated for functional codebases that require enhanced response handling. Express yourself

Panda 28 Nov 14, 2022
A simple, lightweight, non-bloated redis client for kotlin and other JVM languages

rekt is a lightweight, non-bloated redis client, primarily written for the kotlin programming language, while also supporting other JVM-based languages, such as Java, Scala, and obviously way more.

Patrick 8 Nov 2, 2022
Automatically filled the declared non-null field is missing or null with default value.

[TOC] Moshi-kotlin-nullsafe 中文版 1. moshi-kotlin moshi-kotlin support kotlin type safe check. When parsing json, fields declared as non-null types may

null 4 Oct 26, 2022
Fully customizable, built from scratch NumberPicker for android. Created as an alternative to non-customizable native android NumberPicker

GoodNumberPicker GoodPicker is an Android library that provides a picker with customizable UI. It was developed as alternative to the default NumberPi

null 3 Nov 30, 2022
Kadrekka is a library that aims to make Kotlin more accessible to the northern italian population

Kadrekka Kadrekka is a library that aims to make Kotlin more accessible to the northern italian population. It provides lots of utility functions to m

Marco 8 May 9, 2021
Spikot is a Kotlin library to make Spigot development easier

Spikot is a Kotlin library to make Spigot development easier Using Spikot Installation To use spikot add the following to your build.gradle.kts file.

Cody 1 Oct 30, 2021
This library is created to make files uploading and downloading on Aws easier

S3Manager - aws files uploading library This library is created to make files uploading and downloading on Aws easier Features Easy to use Single/mult

Rajesh Khuti 0 Apr 30, 2022
SeatBookView is an Android Studio Library that helps to make it easier to create Bus, Train, Cinema Theater Seat UI and all functionalities are given.

SeatBookView SeatBookView is an Android Studio Library that helps to make it easier to create Bus ?? , Train ?? , Cinema Theater Seat UI and all funct

Md. Zahidul Islam 3 Oct 15, 2022
Learn how to make an app designed for single-screen devices shine when running on foldable and dual-screen devices

dcberlin21-workshop Make your app shine om foldable devices with the samples we have here. Related links SDK open-source code SDK samples (Kotlin) App

Cesar Valiente 3 Oct 26, 2021