Make heldItems Invisible

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

  1. Subbitx

    Subbitx Spider

    Messages:
    10
    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 Witch

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

    Subbitx Spider

    Messages:
    10
    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

    Messages:
    358
    Cancel DataPacketSendEvent of MobEquipmentPacket from that player
     
  5. Subbitx

    Subbitx Spider

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

    wolfdale Zombie

    Messages:
    358
    Hmm maybe dont cancel if it is sending to you, only cancel if sending to other players
     
  7. jasonwynn10

    jasonwynn10 Wither Skeleton Poggit Reviewer

    Messages:
    1,390
    GitHub:
    jasonwynn10
    wolfdale and HimbeersaftLP like this.

Share This Page

  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.