Solved Unbreakable items

Discussion in 'Plugin Help/Development/Requests' started by Rowinvd, Mar 16, 2015.

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

    Rowinvd

    In vanilla Minecraft you can spawn in a unbreakable tool with {Unbreakble:1}. My question: is this also possible with bukkit?
     
  2. @Rowinvd
    Actually not, but you can do that with spigot
    ItemMeta#spigot().setUnbreakable(true);
     
  3. Offline

    Rowinvd

    Thanks for the fast reply! Gonna test it now
    [EDIT] @Juancomaster1998 how would it looks like? its giving errors
     
    Last edited by a moderator: Mar 16, 2015
  4. Guess I will move this to Bukkit Alternates.
     
  5. Offline

    UniqueNameDen

    Code:java
    1.  
    2. Item.getItemMeta().spigot().setUnbreakable(true);
    3. Item.setItemMeta(Itemmeta);
    4.  

    Item should be:
    ItemStack Item = [edit]event[/edit].getPlayer.getItemInHand if that's what your aiming for
     
  6. Offline

    Rowinvd

    ItemMeta meta = bow.getItemMeta();
    meta.spigot().setUnbreakable(true);

    spigot() is giving a error
     
  7. Offline

    Rowinvd

Thread Status:
Not open for further replies.

Share This Page