1.4.6 Item Text

Discussion in 'Plugin Development' started by bobacadodl, Dec 24, 2012.

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

    bobacadodl

    You might have noticed that in 1.4.6, whenever you switch items, it displays the item's name above the hotbar.

    Is it possible to put custom text there, or is it client-sided?
     
  2. Offline

    fireblast709

    Afaik client sided, and shows the items name (confirmed)
     
  3. Offline

    bobacadodl

    :(
    Hmm lets see if this could still work by renaming the players item-in-hand...
    Maybe we could
    1)remove the player's hand item and set it to air
    2)1 tick after put the item back, except renamed to whatever text you want to display
    3) 1 tick after set it to air
    4) 1 tick after restore it to the original item.

    Do you think this would work?
     
  4. Offline

    fireblast709

    I tried some stuff: you might want to change to another slot that is AIR
     
  5. Offline

    bobacadodl

    It isn't possible to change the slot the player is using though :(
     
  6. Offline

    xGhOsTkiLLeRx

    Wrong.
    If you change the name of the item, the name will be changed, too!

    @topic:
    Just rename the item and it will be displayed with the new item name.
     
    bobacadodl likes this.
  7. Offline

    bobacadodl

    Have you tested this? :3
     
  8. Offline

    xGhOsTkiLLeRx

    Yes:

    [​IMG]

    [​IMG]
     
  9. Offline

    fireblast709

    I ment that the displaying itself was clientsided. If you read it again, you notice I say it displays the items name ;3 (which is what you can change)
    Yes it works like that
     
Thread Status:
Not open for further replies.

Share This Page