Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wear block ?

Comments in 'Plugin Development' started by KHAV, Aug 13, 2016.

  1. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Hello all

    i want to wear block same diamond block and more

    can i make this ?
  2. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
  3. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
  4. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Wearing blocks as helmets or hats is not possible (or will look awful).
    Maybe that will work
    PHP:
    $player /**player object*/;
    $player->getInventory()->setHelmet(\pocketmine\item\Item::get(\pocketmine\item\Item::TNT));
    Even if you get it to work, the block will be shown in the player inventory helmet slot but not to other players.
    But you can wear pumpkins;)
    Edit: just realized @asters link

Share This Page

Advertisement