itsme-to / ItsMyConfig

A plugin that facilitates the work of configurators and adds functionalities to customize each message.
https://docs.itsme.to/itsmyconfig
Other
4 stars 5 forks source link

Implement Placeholders in Item Lore and Titles #3

Closed noooooooooooooooooooooa closed 4 months ago

noooooooooooooooooooooa commented 4 months ago

Description

This pull request introduces the PacketItemListener class, which is designed to handle the incorporation of placeholders in the lore and titles of items within the game. The listener class specifically responds to the SET_SLOT and WINDOW_ITEMS packet types, allowing for dynamic updating of item descriptions as they are interacted with in the UI.

Key features implemented:

PacketItemListener Class: Listens to SET_SLOT and WINDOW_ITEMS packets and modifies item lore and titles to include placeholders dynamically using NBT tags and components serializers.

Changes

Testing

iiAhmedYT commented 4 months ago

Seems like a great job! I'll take care of it from here :D