SMP Tools v1.0

A custom tools plugin for Paper and Folia featuring built-in cooldowns and action timers
htools-cover.png
smptools.png
description-title.png

HTools - Time-Expiring Custom Tools for Paper & Folia​

HTools is a high-performance, lightweight utility plugin for Minecraft 1.21.11 (Paper, Folia, Leaf, and PaperShredded) that introduces time-expiring "Evil" tools with unique custom mining abilities.

The plugin currently features two distinct tools:

  • Evil Axe: Features a chain-mining "timber" mechanic. Breaking a single log block automatically fells the entire connected tree.
  • Evil Pickaxe: Features a 3x3 "excavator" mining mechanic. Breaking a block also mines the surrounding 3x3x1 area facing the player.
Both tools feature a highly visible, time-based expiry countdown written directly into their item lore (configurable in days, hours, minutes, and seconds). When the countdown hits zero, the tool expires and is deleted from the player's inventory. This is managed independently of the standard vanilla durability bar, which functions normally; executing timber or 3x3 mining operations still consumes standard tool durability per extra block broken (while fully respecting the Unbreaking enchantment).

Technical Architecture and Optimizations​

  • Persistent PDC Data: All tool properties are written directly to item NBT using the Bukkit PersistentDataContainer API (tool_type and expires_at). This ensures the expiry data survives server restarts, player drops, /give commands, and inventory movements.
  • Folia-Safe Global Timer: Instead of intensive per-player loops, a single global timer fans out countdown update scans to each player's local region thread. This provides thread safety on Folia and scales comfortably to hundreds of players.
  • Zero Memory Footprint: The plugin does not cache active player data. Players who log out are instantly skipped during iterations, preventing potential memory leaks.
  • Anti-Glitch Item Updates: Item updates never rewrite the active tool currently held in the player's main or off-hand, preventing the common client-side "item bobbing" visual glitch. Instead, the held tool's lore is refreshed only during switch events (hotbar selection, hand swapping, or server joining), which are moments when the client naturally re-equips the item. Off-hand/inventory items update smoothly via the background timer, and slot packets are sent to the client only when an active value changes.
  • Native Thread Scheduling: All tasks are coordinated natively through Paper/Folia region schedulers. The same compiled JAR runs on Paper, Folia, or any hybrid fork without platform-specific checks.

Color and Formatting Support​

Names, lore, and chat messages accept mixed formatting syntaxes within the same string:

  • MiniMessage: <gradient:#ff0000:#8b0000>, <red>, <bold>, etc.
  • Hex Codes: &#ff0000, <#ff0000>, or bare #ff0000 values.
  • Legacy Formatting: Standard &c, &7, and &l codes.

Commands and Permissions​

CommandDescriptionPermission
/htools give <player> <tool> [amount]Gives a player an evil-axe or evil-pickaxe.htools.admin (Default: OP)
/htools reloadReloads the plugin configuration (config.yml).htools.admin (Default: OP)
Available Alias: /ht

Configuration (config.yml)​

The configuration file allows you to define per-tool attributes and global behaviors:

  • Tool Settings: Customize the base material, display name, lore layout, custom enchantments, item flags, unbreakable status, durability-bar visibility, tool duration (days/hours/minutes/seconds), and mining behaviors (max blocks mined, timber limits, and area configurations).
  • Global Settings: Control the background update interval, expired item removal options, and custom sound effects or alert messages triggered upon tool expiration.

Technical Considerations and Limitations​

  • Block Interception: Extra blocks broken via the tree-feller or 3x3 mining mechanic are broken natively and do not trigger separate BlockBreakEvent instances. Land-claim, anti-grief, and world-protection plugins are only consulted for the single initial block mined by the player (tracked at MONITOR priority to respect cancellations). If absolute land protection is required for all affected blocks, dedicated region API checks should be added.
  • Folia Bounded Searching: The tree-feller search logic is designed with a strict max-blocks cap. This ensures that log-searching operations remain localized to the player's active region thread and do not trigger unexpected cross-region lag spikes.

showcase-title.png

1784159139803.png
support-title.png
Buy a license now
$4.99
EULA
Standard EULA
Use on any projects you own with attribution
Support
Standard
Includes:
Download the resource
Access new updates
Support from the creator
Support duration
1 year
Share and earn
Refer this resource and earn a 10% commission.
46 Views
0 Purchases
1 Downloads
Jul 21, 2026 Published
N/A Updated
Not yet rated
79.9 KB File size
Open source
  1. No
DRM-free
  1. Yes
Unobfuscated
  1. Yes
AI use in marketing
No
AI use in product
No
Type
  1. Gameplay
  1. Economy
  1. Monetization
Game mode
  1. Survival
  1. Lifesteal
  1. Donut-like
Supported software
  1. Bukkit
  1. Spigot
  1. Paper
  1. Sponge
  1. Folia
  1. Purpur
Supported versions
  1. 26.1
  1. 1.21.11
  1. 1.21.8
  1. 1.21.5
  1. 1.21.4
  1. 1.21.2
  1. 1.21
Supported languages
  1. English
Creator
Owner
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Host a lag-free Minecraft or Hytale server in minutes.
Get 25% off your first order with our link.
Recommended for you
Advanced, customizable PvP bots for professional servers.
5.00 star(s) 3 ratings
36 purchases
Keep it up longer than anyone else on the server
Not yet rated
2 purchases
Regenerate terrain without dropping a single TPS, cross-server support
Not yet rated
0 purchases
A patch notes book plugin for Paper and Folia that automatically gives players a book,
Not yet rated
0 purchases
A player data sync plugin for Paper and Folia that instantly synchronizes inventories, XP & more...
Not yet rated
0 purchases
Share and earn
Refer this resource and earn a 10% commission.
46 Views
0 Purchases
1 Downloads
Jul 21, 2026 Published
N/A Updated
Not yet rated
79.9 KB File size
Open source
  1. No
DRM-free
  1. Yes
Unobfuscated
  1. Yes
AI use in marketing
No
AI use in product
No
Type
  1. Gameplay
  1. Economy
  1. Monetization
Game mode
  1. Survival
  1. Lifesteal
  1. Donut-like
Supported software
  1. Bukkit
  1. Spigot
  1. Paper
  1. Sponge
  1. Folia
  1. Purpur
Supported versions
  1. 26.1
  1. 1.21.11
  1. 1.21.8
  1. 1.21.5
  1. 1.21.4
  1. 1.21.2
  1. 1.21
Supported languages
  1. English
Creator
Owner
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Host a lag-free Minecraft or Hytale server in minutes.
Get 25% off your first order with our link.
Recommended for you
Advanced, customizable PvP bots for professional servers.
5.00 star(s) 3 ratings
36 purchases
Keep it up longer than anyone else on the server
Not yet rated
2 purchases
Regenerate terrain without dropping a single TPS, cross-server support
Not yet rated
0 purchases
A patch notes book plugin for Paper and Folia that automatically gives players a book,
Not yet rated
0 purchases
A player data sync plugin for Paper and Folia that instantly synchronizes inventories, XP & more...
Not yet rated
0 purchases
Top