How to create a vanish items ?

Discussion in 'Plugin Development' started by KaptanAykin, Mar 31, 2014.

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

    KaptanAykin

    Hi, i want to create vanish items. These items can see only by owner. Other players won't see that items. How to ? Please help me...
     
  2. Offline

    Brixishuge

    I know how to make them unpickable, hope it helps since you need to disallow that too. Just set their stack number in ItemStack to 0 :)
     
  3. Offline

    KaptanAykin

    @Brixishuge Can you write the whole code. I'm beginner :)
     
  4. Offline

    Brixishuge

    KaptanAykin
    I can, btw. you haven't tagged me. To tag someone, use "Tahg" word/button in right down corner of his/her post.
    This is example code for stack which is actually itemstack of compass (only one):
    Code:
    stack = ItemStack(345, 1, 0)
    but if you want to make one unpickable compass, you should set amount to zero:
    Code:
    stack = ItemStack(345, 0, 0)
    I hope it helps.
     
  5. Offline

    KaptanAykin

    Brixishuge I couldn't tell correctly, sorry for this. I just want to give an item to player and this item only can see by owner while player holding that item. I want this for not working right click air with no item. But thanks i can use this on my other projects :)
     
Thread Status:
Not open for further replies.

Share This Page