Get Skull ID / Texture Data

Discussion in 'Spigot Plugin Development' started by HarrysMc, Jun 9, 2015.

  1. Hey, all.

    At the moment I am trying to check if a player clicks a certain head.

    I'm using a site to find cool heads which heads give IDs and Textures instead of skullOwner names and when I try to check for skullOwner as I thought that was the ID but it is not as the skullOwner on the heads are empty.

    Is there a way to get the ID/Texture data without using NMS but if you have to us it, how?
    #1 HarrysMc, Jun 9, 2015
    Last edited: Jun 9, 2015
  2. Basically for head from freshcoal site, you need to use NMS.
  3. Can't you just cast the BlockState to Skull and use the getOwner() method? It returns the value of SkullOwner, which in this case you could use JSON to parse and get the Id?
    EDIT: I was wrong. It looks like you would have to use NMS.
    #3 K3ttle, Jun 10, 2015
    Last edited: Jun 10, 2015
  4. Dunno if this is relevant, but I have a plugin called HeadsInventory that lets you access all the heads from the website within minecraft. It costs 6 euros.

    (I advice you to wait until the next update before you buy it. This will be within 2 weeks)