Items in holograms?

Discussion in 'Spigot Plugin Development' started by avighnash, May 21, 2016.

  1. I had a very quick question. How would I make it so items can be displayed on holograms? For example,
    I have an itemstack s, that is defined as Material.DIAMOND. And I want to display that on a hologram. How do I do this? I know for a fact that Holograms Display can do this, but right now, I want to make my own plugin with this feature. Thanks!
  2. Mount it on a armorstand and disable gravity.
  3. Like this?
    Code (Text):
    as.setPassenger((Entity) itemstack);
  4. spawn an Item entity in. Then set its itemstack to the itemstack. You then mount that entity to the armor stand
  5. How?
  6. You can set the head of the armorstand to the item you want.