FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

request - item.setMaxDamage(Integer damage); #110

Closed ghost closed 11 years ago

ghost commented 11 years ago

If this its possibly.

14mRh4X0r commented 11 years ago

This is not possible per item stack, but it is possible for the item on the server overall. I'm not sure whether that should be added though.

ghost commented 11 years ago

Hmmm Is there a way to set damage to a WrittenBook because .setDamage(); dont shows any damage bar :/

gregcarlin commented 11 years ago

I believe that damage bars will only appear on items like tools (items that are already supposed to have damage bars). On the original request: this could probably be accomplished through onItemUse, and metadata if you want to do it per-item stack.

ghost commented 11 years ago

:/