A plugin displays the durability level of items in the player's hand by displaying the remaining durability.
ItemDurability is a high-performance PocketMine-MP plugin that displays item durability information in real-time within the item's lore (description). This plugin helps players see the remaining durability of weapons, tools, and armor, allowing them to know when to repair or replace them before they break.
In-game, the durability text will automatically change colors based on the item's condition:
Color | Sample | Durability Example | Condition |
---|---|---|---|
![]() | Green | Durability: [180/200] (90%) | Very Good Condition |
![]() | Dark Green | Durability: [140/200] (70%) | Good Condition |
![]() | Yellow | Durability: [100/200] (50%) | Medium Condition |
![]() | Gold | Durability: [60/200] (30%) | Low Condition |
![]() | Red | Durability: [30/200] (15%) | Very Low Condition |
![]() | Dark Red | Durability: [10/200] (5%) | Critical Condition |
.phar
file in the plugins
folder of your PocketMine-MP serverplugins/ItemDurability/config.yml
as needed# ItemDurability Configuration
# Durability display format
# %current% = current durability
# %max% = maximum durability
# %percent% = durability percentage
durability_format: "Durability: [%current%/%max%] (%percent%%)"
# Durability text color (default value: GREEN)
# Note: This color is only used as fallback if not using automatic color gradation
# The durability text color will automatically change based on durability percentage:
# 80-100% = GREEN (very good)
# 60-79% = DARK_GREEN (good)
# 40-59% = YELLOW (medium)
# 20-39% = GOLD (low)
# 10-19% = RED (very low)
# 0-9% = DARK_RED (critical)
durability_color: "GREEN"
# Show warning when durability is low
# Enable/disable low durability notifications
enable_low_durability_warning: true
# Percentage of durability considered low (%)
low_durability_percentage: 10
# Low durability warning color
low_durability_color: "RED"
# Performance Settings
# How often to process durability updates (in server ticks, 20 ticks = 1 second)
# Lower values = more responsive but higher CPU usage
# Higher values = less responsive but better performance
update_interval_ticks: 10
# Minimum time between durability updates for the same player (in seconds)
# This prevents spam updates when players rapidly interact with items
throttle_seconds: 0.2
# Maximum number of players to process durability updates for per batch
# Adjust based on your server's performance and player count
max_batch_size: 50
Configure the plugin based on your server size:
update_interval_ticks: 5
throttle_seconds: 0.1
max_batch_size: 20
update_interval_ticks: 10
throttle_seconds: 0.2
max_batch_size: 50
update_interval_ticks: 20
throttle_seconds: 0.5
max_batch_size: 100
The plugin uses an advanced batch processing system that:
The plugin automatically validates all configuration values:
Valid color names for configuration:
BLACK
, DARK_BLUE
, DARK_GREEN
, DARK_AQUA
, DARK_RED
, DARK_PURPLE
, GOLD
, GRAY
, DARK_GRAY
, BLUE
, GREEN
, AQUA
, RED
, LIGHT_PURPLE
, YELLOW
, WHITE
Q: How does the new batch system improve performance?
A: Instead of creating individual tasks for each update, the plugin queues updates and processes them in batches. This reduces CPU overhead and prevents lag spikes on busy servers.
Q: What happens if I have invalid configuration values?
A: The plugin automatically validates your config on startup. Invalid values are replaced with defaults and warnings are logged to help you fix them.
Q: Can I customize the update frequency?
A: Yes! Use update_interval_ticks
to control how often updates are processed, and throttle_seconds
to control per-player update frequency.
Q: Does this plugin affect server performance?
A: The plugin is heavily optimized for performance with batch processing, smart throttling, and configurable settings. It's designed to handle large servers efficiently.
Q: Is this plugin compatible with other plugins?
A: Yes, it's designed to work seamlessly with other plugins without conflicts, especially enchantment and repair plugins.
Q: How can I request new features?
A: Submit a feature request on GitHub Issues or contact us through the links below.
This plugin is licensed under the MIT License.
durability_format: "Durability: %percent%%"
%current%
, %max%
, and %percent%
in any combination to create your ideal display formatupdate_interval_ticks
and throttle_seconds
for better performancemax_batch_size
based on your server's CPU capacityMade with ❤️ by ImmoDevs
Copyright © 2025 ImmoDevs. All rights reserved.