PrismarineJS / node-minecraft-protocol

Parse and serialize minecraft packets, plus authentication and encryption.
https://prismarinejs.github.io/node-minecraft-protocol/
BSD 3-Clause "New" or "Revised" License
1.22k stars 239 forks source link

Is there any way to modify the protocol on server side? (maybe using fabric or spigot) #1299

Closed YXHXianYu closed 4 months ago

YXHXianYu commented 4 months ago

Is your feature request related to a problem? Please describe. I want to get the cause of damage in entityHurt event

Describe the solution you'd like I found that the cause of damage isn't sent to the client. So, this means we need to modify the protocol? I'm trying to find a method to modify the protocol (maybe using fabric or spigot server)

Describe alternatives you've considered Using another tool instead of mineflayer toolset? But, it may need lead to large amount of work.

Additional context The packet of entityHurt: image

Thanks If anyone has some relative information or solution! 😸 😸

YXHXianYu commented 4 months ago

I found that this spigot plugin ProtocolLib can modify the protocol. Solved!