Add enchantment glow to ItemStack

Discussion in 'Plugin Help/Development/Requests' started by MrFrozen, Feb 14, 2015.

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

    MrFrozen

    Hey People,

    I tried to use https://gist.github.com/aadnk/4580551 for enchantment glow but didnt work with that code or updated to 1.8. is there someone here that knows how to add a enchantment glow to a item in 1.8
     
  2. Offline

    mrCookieSlime Retired Staff

    Moved to Alternatives Section.
     
  3. Offline

    pie_flavor

    @MrFrozen ItemMeta.addFlags(ItemFlag.HIDE_ENCHANTS), then enchant the item.
     
    MnMaxon likes this.
  4. Offline

    MrFrozen

    I mentioned in my thread that i wanna add a glow not hide enchant cause that will apply the enchants. Also i showed a old class. So this post is kinda useless. Either i found this earlyer in jd

    Moved? I do not rewuest a plugin or ask for development. I ask for some like that I posted or classes of maybe NBT. So i think its now at the wrong place

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
    Last edited by a moderator: Feb 15, 2015
  5. Offline

    pie_flavor

    @MrFrozen The Alternatives section is for alternatives to Bukkit. For you to be using 1.8, you have to be using Spigot, which is a Bukkit alternative. You are at the right place.
    Also, your latest post made less sense than Obamacare.
    And you can always apply the Infinity enchantment, that'll do nothing if it's not on bows. If you want to make a bow glow, use Protection.
     
  6. Offline

    MrFrozen

    But other enchants will be hidden to right?
     
  7. Offline

    pie_flavor

    @MrFrozen Right, but if it's going to be visibly enchanted, why would you need to custom-add the glow in the first place?
     
  8. Offline

    MrFrozen

    Just intrested to know. Thanks for helping Ill gonna try it now.

    Cannot find Addflags... Also not what you showed
     
    Last edited by a moderator: Feb 15, 2015
  9. Offline

    pie_flavor

    @MrFrozen If you're using Spigot 1.8, there should be getItemMeta().addFlags(ItemFlag.HIDE_ENCHANTS). If you are using a different way of doing 1.8, then you can do it with a command, just set the tag {HideFlags:1}.
     
Thread Status:
Not open for further replies.

Share This Page