How to detect left click on packet level

Discussion in 'Plugin Development' started by ╬╬╬, Feb 2, 2024.

  1. Offline

    ╬╬╬

    I am need working method to track the player’s left click. PlayerInteractEvent not suitable for this. Need a packet method. Do i need to use ProtocolLib plugin for this or its possible with no external API?
     
  2. Offline

    timtower Administrator Administrator Moderator

    Client doesn't send them all
     
  3. Offline

    ╬╬╬

    I am sorry but is it really not possible without mods? Does plugins cannot implement it?
     
  4. Offline

    timtower Administrator Administrator Moderator

    It is not in the protocol
     
  5. Offline

    KarimAKL

  6. Offline

    ╬╬╬

    Can I register a swing animation to track left click? Thanks, is it any other ideas on how to detect left click?
     
  7. Offline

    timtower Administrator Administrator Moderator

    Lets reverse this: what is the end goal of this feature?
     
  8. Offline

    ╬╬╬

    ok let's do it
    I need to find the most efficient way to detect left clicks. The main task is to make the combat system more customizable and interesting using the plugin. Adjust the hit registration speed, attack range, number of attacked entities in one click, and possibly even more
    I also hope to improve hit detection and overall performance
     
  9. Offline

    timtower Administrator Administrator Moderator

    Considered looking for a plugin that changes the combat to the old system and look at the code?
     
  10. Offline

    ╬╬╬

    I have not found any good example of plugins implementation. It is reason why i start think that it is not possible without client modification
     

Share This Page