Show item in the left hand

Discussion in 'Plugin Development' started by TheIronKill, Aug 20, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    TheIronKill

    Hi...
    I want to show an item in the left hand of the player, I've been testing some created for myself.
    The problem is that I do not know everything about Bukkit.
    My attempt to show an item in the left hand is creating an invisible NPC with an item in hand, appear to the NPC at the side of the player, to simulate the player has an item in the left hand, and every once the player walks, hit, jump, etc, the NPC is on one side of it.
    I think that's a good way, but still I do not know much about Bukkit.
    I ask for help with some method, like this or different items to display in the left hand, if someone already has an algorithm for it, please help me.
    Thank you.
     
  2. Offline

    Flamedek

    I doubt this will ever be possible..
    You have to think about server lag and there is just no way you are going to get a good result with that, or any other method I can think of.

    Because it has to go with the player so much it would be much better to have a client mod for it
     
  3. Offline

    TheIronKill

    mmm, i dont think that, i think is possible, but I respect your answer...
    I wait for more help. Thanks
     
  4. Offline

    Xyplo

    Unless if it's possible by some complicated packet code, or just done on a hacked client, I do not believe this is possible.
     
  5. Offline

    TheIronKill

    I see, then I'll keep trying.
    If anyone knows, I will be willing to read what you say.
     
  6. It is not serverside. you must change the client somehow to get this to work. the server does not tell the player which item he's holding etc. that's part of the client.
     
  7. Offline

    AoH_Ruthless

    Even if you could get this to work with NPC's (which you can't due to server lag purposes, and this cannot even be edited with NMS), you would have to think of aesthetics. Asymmetric patterned blocks like a flower would look odd because they would be mirrored. Maybe symmetric blocks like stone or dirt (whose pixels is still somewhat asymmetric upon closer examination) could be mirrored. Additionally, item interaction like sword parrying would be warped I'm guessing. Just some thoughts.
     
  8. Offline

    Forseth11

    You can't (most of the time including this) change something that is client side. You can with a mod on the client but not with a plugin.
     
  9. Offline

    TheIronKill

    Thanks, I have analyzed that, you are right ...
    Thanks for your answers, I will create the system, but not visual, has many disadvantages what I want, thanks.
     
Thread Status:
Not open for further replies.

Share This Page