1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved How to set helmet to custom player head?

Discussion in 'Skript' started by GlacialDew, Jun 13, 2018.

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

    GlacialDew Member

    Joined:
    Apr 8, 2018
    Messages:
    40
    Likes Received:
    3
    Im coding custom bosses and I want to be able have something other than a steve head or helmet on their head.

    Code (Skript):
    1. #-----[Alchemist Boss & Minions]
    2. on rightclick:
    3.     if player is holding a enchanted book with name "&d&lAlchemist Summoner" with lore "||&7Summons the &d&nAlchemist Boss":
    4.         if event-block is not air:
    5.             spawn a zombie 1 above event-block
    6.             send "&7[&6&lAA&7] The &6&lAlchemist &7Has Been Summoned!"
    7.             set the name of the last spawned zombie to "&6&lAlchemist"
    8.             set the helemt of the last spawned zombie to iron helmet


     
  2. Best Answer:
    Post #8 by ShaneBee, Jun 13, 2018
  3. AKE

    AKE New Member

    Joined:
    Apr 22, 2018
    Messages:
    7
    Likes Received:
    0
    "set the helemt of the last spawned zombie to iron helmet" ther is a
    Typing error
     
  4. GlacialDew

    GlacialDew Member

    Joined:
    Apr 8, 2018
    Messages:
    40
    Likes Received:
    3
    im aware of that, so can you help me with what im having troubles with?
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    yeah... spell helmet correct in your line
    "set the helemt of the last spawned zombie to iron helmet"
    and it should work, so change it to
    "set the helmet of the last spawned zombie to iron helmet"
     
  6. GlacialDew

    GlacialDew Member

    Joined:
    Apr 8, 2018
    Messages:
    40
    Likes Received:
    3
    i needed to do this post better in the first place .-. my fault there. BUT I am aware that helmet is misspelled, my problem is trying
    to put a custom player head in that slot rather than a helmet or default head.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Code (Skript):
    1. set the helmet of the last spawned zombie to skull of (player's name here)
    --- Double Post Merged, Jun 13, 2018, Original Post Date: Jun 13, 2018 ---
    i lied, sorry do it like this

    Code (Skript):
    1. set the helmet of the last spawned zombie to skull of ("name of player here" parsed as player)
     
    • Like Like x 1
  8. GlacialDew

    GlacialDew Member

    Joined:
    Apr 8, 2018
    Messages:
    40
    Likes Received:
    3
    this is what happens when I do that

    [16:36:38 ERROR]: a slot can't be set to 'skull of "Alchemist"' because the latter is neither an item type nor an item stack (UltimateAlchemyReloaded.sk, line 42: set the helmet of the last spawned zombie to skull of "Alchemist"')

    alright didnt see the edit
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    i posted already that i wrote it wrong, try the new one i posted
    Code (Skript):
    1. set the helmet of the last spawned zombie to skull of ("name of player here" parsed as player)
     
  10. GlacialDew

    GlacialDew Member

    Joined:
    Apr 8, 2018
    Messages:
    40
    Likes Received:
    3
    I saw thanks ^-^
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    actually i did it wrong again

    the player needs to be parsed as an offline player so do this

    Code (Skript):
    1. set the helmet of the last spawned zombie to skull of ("Alchemist" parsed as offline player)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...