ChatItem icon indicating copy to clipboard operation
ChatItem copied to clipboard

Please, support custom namespace items, such as from data packs

Open vgrynch opened this issue 1 year ago • 0 comments

Preconditions: On Hybrid servers (ArcLight, Magma), you can use both mods and plugins. Also, you can use data packs and add custom items to your server.

I used 1.19.2 server. ChatItem plugin works great (while any other did not work!). However, when I try to share items from the custom namespace, I see the following:

2023-08-11_22 52 24

Custom modded/datapack items are translated for Bukkit/Spigot to {namespace}_{id}. I suspect, if something is wrong with trying to use item.minecraft.twilightforest_knightmetal_sword, need to try it without adding the minecraft, though I do not know the internals :)

All the rest "custom" stuff works great, for example: image

Debug session:

[11Aug2023 19:54:15.394] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: TomDill2883 issued server command: /chatitem admin
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] (v1) Set placeholder to message Chat{id=2,message=[item],time=1691783665280}
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Search in S2E, id found: 2
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Failed to find translation for item.minecraft.twilightforest_knightmetal_sword
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [Console/]: <TomDill2883> twilightforest knightmetal sword x1
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Msg: <TomDill2883> S, format: <%1$s> %2$s to 1 players
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Failed to find translation for item.minecraft.twilightforest_knightmetal_sword
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Color: , text: , code: blo
[11Aug2023 19:54:25.281] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Append while fixing name twilightforest knightmetal sword x1
[11Aug2023 19:54:25.282] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Item for TomDill2883 (ver: V1_19) : {Damage:0}
[11Aug2023 19:54:31.158] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: TomDill2883 issued server command: /cir
[11Aug2023 19:54:31.162] [Server thread/INFO] [ChatItem/]: The plugin ProtocolLib has been detected. Loading Protocollib support ...
[11Aug2023 19:54:31.162] [Server thread/INFO] [ChatItem/]: Loaded 3 getter for base components.
[11Aug2023 19:54:31.162] [Server thread/INFO] [ChatItem/]: [Debug] ComponentManager: StringComponentManager, ComponentNMSManager, PCMComponentManager
[11Aug2023 19:54:31.163] [Server thread/INFO] [ChatItem/]: Manager automatically chosen: PacketEditing (packet), ChatListener (chat)
[11Aug2023 19:54:31.391] [Server thread/INFO] [ChatItem/]: Loaded translation for en_gb.
[11Aug2023 19:54:33.759] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] (v1) Set placeholder to message Chat{id=3,message=[item],time=1691783673759}
[11Aug2023 19:54:33.759] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Search in S3E, id found: 3
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Failed to find translation for item.minecraft.twilightforest_knightmetal_sword
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [Console/]: <TomDill2883> twilightforest knightmetal sword x1
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Msg: <TomDill2883> S, format: <%1$s> %2$s to 1 players
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Failed to find translation for item.minecraft.twilightforest_knightmetal_sword
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Color: , text: , code: blo
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Append while fixing name twilightforest knightmetal sword x1
[11Aug2023 19:54:33.760] [Async Chat Thread - #2/INFO] [ChatItem/]: [Debug] Item for TomDill2883 (ver: V1_19) : {Damage:0}
[11Aug2023 19:55:00.171] [Server thread/INFO] [Console/]: TPS from last 1m, 5m, 15m: *20.0, *20.0, *20.0
[11Aug2023 19:55:00.172] [Server thread/INFO] [Console/]: Current Memory Usage: 2341/4096 mb (Max: 4096 mb)
[11Aug2023 19:55:40.912] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] (v1) Set placeholder to message Chat{id=4,message=[item],time=1691783740912}
[11Aug2023 19:55:40.912] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] Search in S4E, id found: 4
[11Aug2023 19:55:40.912] [Async Chat Thread - #3/INFO] [Console/]: <TomDill2883> Polished Granite x64
[11Aug2023 19:55:40.913] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] Msg: <TomDill2883> S, format: <%1$s> %2$s to 1 players
[11Aug2023 19:55:40.913] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] Color: , text: , code: blo
[11Aug2023 19:55:40.913] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] Append while fixing name Polished Granite x64
[11Aug2023 19:55:40.913] [Async Chat Thread - #3/INFO] [ChatItem/]: [Debug] Item for TomDill2883 (ver: V1_19) : {}
[11Aug2023 19:55:49.161] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: TomDill2883 issued server command: /chatitem admin
[11Aug2023 19:55:55.600] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: TomDill2883 issued server command: /cir

vgrynch avatar Aug 11 '23 20:08 vgrynch