You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This may be more of a bug, but I chose feature request as I have seen other issues with this label that are requesting features included under the scope of this request.
Description of the feature
This involves allowing items to have custom properties (such as attributes, NBT, and custom model data) by storing more data. While I know the plugin already has custom abilities, as a developer who works with NBT in my own plugins, I can say it would greatly benefit me to have this method.
How the feature is useful
This would allow easier item integration with external plugins (eg. Oraxen), allow for custom textures, and cover the functionality of #136 as well. This may also be able to solve #250 due to this allowing items such as that to be directly integrated into the kit.
Implementations in other plugins
An example of a plugin that has a feature like this is SkyWarsReloaded. Here's an example of how it handles my Oraxen item (of course, this could be done in a number of different ways):
items:
- ==: org.bukkit.inventory.ItemStackv: 3465type: BLUE_ICEmeta:
==: ItemMetameta-type: UNSPECIFICdisplay-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"aqua","text":"Frost "},{"italic":false,"color":"gray","text":"Grenade"}],"text":""}'lore:
- '{"extra":[{"text":" "}],"text":""}'
- '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"aqua","text":"Damage and slow all players in a 10 block radius."}],"text":""}'
- '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"green","text":"Right click to use."}],"text":""}'
- '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gray","text":"30 second cooldown"}],"text":""}'
- '{"extra":[{"text":" "}],"text":""}'
- '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gold","text":"Rarity: "},{"italic":false,"color":"white","text":"ꐼ"}],"text":""}'custom-model-data: 1001PublicBukkitValues:
oraxen:id: frost_grenadeoraxen:original_name: §bFrost §7Grenadeoraxen:unstackable: '[B;-127B,-92B,94B,-124B,-15B,79B,65B,124B,-115B,-68B,-110B,14B,43B,-10B,-81B,5B]'
The text was updated successfully, but these errors were encountered:
This could also be solved by just adding Oraxen support and directly using its API, but I feel the original solution would be superior, as it would support a range of plugins and methods of adding custom items.
cervinakuy
changed the title
Greater custom item support
Greater custom item support (NBT, custom attributes, etc.)
Jun 14, 2024
I wholeheartedly agree. However, I just do not have the freetime at this point to pursue such a feature.
I would support PRs that neatly implement NBT/etc. into the kit system. As you do mention you are a developer, I would encourage you to give it a shot! Or, for others interested in contributing this type of feature, I'd encourage looking at Bukkit's already built-in serialization (which the referenced SkyWarsReloaded implementation uses), or looking at well-maintained wrappers like XItemStack from XSeries. I believe it uses Bukkit's serialization under the hood and could be even more straightforward to integrate serializing/deserializing these custom attributes. KitPvP already uses a number of XSeries' great libraries.
NOTE: This may be more of a bug, but I chose feature request as I have seen other issues with this label that are requesting features included under the scope of this request.
Description of the feature
This involves allowing items to have custom properties (such as attributes, NBT, and custom model data) by storing more data. While I know the plugin already has custom abilities, as a developer who works with NBT in my own plugins, I can say it would greatly benefit me to have this method.
How the feature is useful
This would allow easier item integration with external plugins (eg. Oraxen), allow for custom textures, and cover the functionality of #136 as well. This may also be able to solve #250 due to this allowing items such as that to be directly integrated into the kit.
Implementations in other plugins
An example of a plugin that has a feature like this is SkyWarsReloaded. Here's an example of how it handles my Oraxen item (of course, this could be done in a number of different ways):
The text was updated successfully, but these errors were encountered: