Netherstar without glow

Discussion in 'Plugin Development' started by Desle, Mar 1, 2014.

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

    Desle

    Almost sure this isn't possible.. Although maybe I'm wrong;
    Can you remove the glow from a netherstar, or is it bound to the item so to speak?
     
  2. Desle
    If you hack around with NMS you can probably remove the glow effect. I'm not sure though, maybe someone else has managed to do it before and can help you out.
     
  3. Offline

    Konkz

    I think it's possible, but by sending packets. Not sure.
     
  4. Offline

    Niknea

    I'm fairly certain that it's client side, as I'm pretty sure you can customize the glow when making a resource pack.
     
  5. Offline

    Quantum64

    I'm 99.9% sure this is client side so... no.
     
  6. Offline

    Quaro

    As i know, you can add glow to item using nms, so i think you can remove it too.
     
  7. Offline

    xTrollxDudex

    Desle
    Try clearing enchantment NBT list.
     
  8. Offline

    Desle

    xTrollxDudex Quaro Quantum64

    Alright.. now I didin't mess it up this time;
    This doesn't work;
    Code:java
    1. @Override
    2. public void onEnable() {
    3. Bukkit.getPlayer("Desle").getInventory().addItem(removeAttributes(Bukkit.getPlayer("Desle").getItemInHand()));
    4. }
    5.  
    6. public static ItemStack removeAttributes(ItemStack item){
    7. net.minecraft.server.v1_7_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(item);
    8. NBTTagCompound tag;
    9. if (!nmsStack.hasTag()){
    10. tag = new NBTTagCompound();
    11. nmsStack.setTag(tag);
    12. }
    13. else {
    14. tag = nmsStack.getTag();
    15. }
    16. NBTTagList am = new NBTTagList();
    17. tag.set("ench", am);
    18. nmsStack.setTag(tag);
    19. return CraftItemStack.asCraftMirror(nmsStack);
    20. }
     
Thread Status:
Not open for further replies.

Share This Page