1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Make heldItems Invisible

Discussion in 'Development' started by Subbitx, Sep 5, 2019.

  1. Subbitx

    Subbitx Silverfish

    Messages:
    18
    Is there any way I can make the item invisible Iam holding in my hand? Because I can vanish myself but others can still see the item in my hand.
     
  2. Gianluxx

    Gianluxx Slime

    Messages:
    94
    GitHub:
    Gianluxx
    Dont use invisibility potions. Use gamemode spectator
     
  3. Subbitx

    Subbitx Silverfish

    Messages:
    18
    But I want to walk as a normal player and I want to use my inventory as a normal player. Iam using $player->setInvisible(true); by the way
     
  4. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Cancel DataPacketSendEvent of MobEquipmentPacket from that player
     
  5. Subbitx

    Subbitx Silverfish

    Messages:
    18
    Works but I cant use the item then. But I think that is the best solution.
     
  6. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Hmm maybe dont cancel if it is sending to you, only cancel if sending to other players
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    wolfdale and HimbeersaftLP like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.