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

Set Block as Player Head?

Comments in 'Plugin Development' started by vertx, Jul 8, 2015.

  1. vertx
    Offline

    vertx Active Member

    Joined:
    Dec 4, 2014
    Posts:
    61
    Minecraft User:
    Vertx
    hey guys,

    I've been working on a minigame plugin,That i don't know how exactly I can told about what this minigame will be, but I'll make a documentation and will drop on my github when done.

    I'm trying (I will try :p) to set a block as player head when certain event get triggered, for example, if one player touch another with a stone in hand, the touched player will got this stone in their head, (but the player will still be able to see normally)...

    This is possible on current mcpe protocol? or maybe just change the player skin mid-game for one with a block in the head? lol.

    thanks.
  2. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    Do you want to do something like pumpkin head?
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Just like in BlockHunt
  4. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    I tried using addItem for the specific head armour slot, but it didn't work.
    It places the item there, but I can't see it in the 3rd players view.

    Other ideas?
  5. Jaydenb1321
    Offline

    Jaydenb1321 New Member

    Joined:
    Aug 16, 2014
    Posts:
    45
    Minecraft User:
    ItzBulkDev
    Update armor status as the block's item ID?
  6. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    I just placed a block where the helmet slot is. I don't understand your question..
  7. Jaydenb1321
    Offline

    Jaydenb1321 New Member

    Joined:
    Aug 16, 2014
    Posts:
    45
    Minecraft User:
    ItzBulkDev
    If you update the armor status to the specified block it should work
  8. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    Oh. I will try this tomorrow. Thanks!
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You can resend the player skin by despawning the player and respawning him with a modified skin. Invisibility between the despawn and respawn is negligible because they will be sent in the same encapculsated packet and the client will handle the two packets without a tick between that renders the invisibility to the player.
    CrazedMiner likes this.
  10. Jaydenb1321
    Offline

    Jaydenb1321 New Member

    Joined:
    Aug 16, 2014
    Posts:
    45
    Minecraft User:
    ItzBulkDev
    mind blown
  11. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    CrazedMiner likes this.
  12. CrazedMiner
    Offline

    CrazedMiner Notable Member Plugin Developer

    Joined:
    Jan 31, 2015
    Posts:
    348
    Plugins:
    2
    Minecraft User:
    CrazedMinerYT
    You could delay the respawn for a tick or two but then it might look weird for lagging players.

Share This Page

Advertisement