Solved Open inventory!

Discussion in 'Plugin Development' started by RainoBoy97, Apr 30, 2013.

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

    RainoBoy97

    Ok, so here is what I want to do.

    Right click player > Open his inventory (easy) BUT, with health and hunger display too.
    [​IMG]

    Any help / start out? :)

    -Raino
     
  2. Offline

    soulofw0lf

    turn your spacer row of piston into steak / rotten flesh to show hunger level?
     
  3. Offline

    RainoBoy97

    Yes, I know. But how do I layout the inventory etc.
     
  4. Offline

    soulofw0lf

    get the target players inventory, copy it including nulls, put that in your generated inventory first and that will fill the top four bars, then get targets hunger, for missing hunger add itemstacks of rotten flesh, then add item stacks of steak for the rest of the hunger "row" then get targets armor including nulls place that next, and you can have the last 5 inventory slots each represent 20% of the players health with apples being current health and bones being missing health, i'm assuming you'd want to cancel inventory click events while it's open as well,
     
  5. Offline

    RainoBoy97

    Bump :3

    Nevermind guys, got it to work :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page