You are browsing as a guest. Sign up (or log in) to start making projects!

Textlib - Adventure API

  • 1 Devlogs
  • 2 Total hours

I created a Textlib that makes working with Adventure API easier. It focuses on Components and text.

Ship #1 Pending review

I wanted to share a small library I just built as an addon for the Kyori Adventure API. I mainly make Paper pluginsand typing out ⁠Component.text()⁠ over and over for every time with hex colors is getting annoying. I wanted it simple and fast for my plugin projects.
That's why I created this! It adds a super easy ⁠cmp⁠ shortcut and automatically fixes missing ⁠#⁠ tags in hex codes so things dont break. For combining you use the ⁠+⁠ operator to append text.
This was my first time actually making a library. At the beginning it was pretty difficult. Though it was pretty easy now thinking back (the 2 hours lol) I would be super happy if anyone wants to check it out or even build onto it.

  • 1 devlog
  • 2h
Try project → See source code →
Open comments for this post

1h 42m logged

I actually finished it in one sitting so this is just everything but here I go: I made a library as an addon to the adventure api. I made it because it helps me with paper plugin making. started with a shortcut function called ⁠cmp⁠. You can now just type cmp instead of component.text. If you forget the ⁠#⁠ in a hex code (like ⁠”FF5555”⁠), Adventure usually breaks. The lib now checks for this and fixes it automatically.
You can now just use ⁠+⁠ to append components.

0
0
2

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…