Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

item durability

Comments in 'Plugin Development' started by TryoneLegendZzz, Mar 3, 2016.

  1. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    how to set item durability?
  2. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    You mean the damage?
    PHP:
    /*
    * @param Item $item
    */
    $item->setDamage($int);
    Anyway, I was reading PocketMine source and there is no setter for durability, only there is one getter ><
    dudeplays123 likes this.

Share This Page

Advertisement