-
Notifications
You must be signed in to change notification settings - Fork 0
L | Utility: OneTimeCraftUtils
Sartaj Singh edited this page May 29, 2025
·
4 revisions
OneTimeCraftUtils lets you enforce "legendary" items that can only be crafted once on the whole server.
What it does:
Marks an item as craftable only one time ever.
Example:
OneTimeCraftUtils.registerOneTimeItem(LegendarySword.class);What it does:
Checks whether the legendary item was already crafted.
Example:
if (OneTimeCraftUtils.hasBeenCrafted(LegendarySword.class)) {
player.sendMessage("This item can only be crafted once!");
}What it does:
Returns a map of all registered one-time craft items and their status.
- Use in crafting event listeners to cancel crafting if already crafted.
- Display a message to let players know why crafting is blocked.
- Good for ultra-rare, server-unique items.
- Home
- A | Getting Started & Plugin Overview
- B | The Registry System: Items, Foods, Commands, Events
- C | Creating Custom Items
- D | Creating Custom Foods
- E | Advanced: Custom Effects in FXItems
- F | Creating Custom Commands
- G | Creating Custom Events & Behaviors
- H | Utility: CooldownUtils
- I | Utility: CustomItemUtils
- J | Utility: EffectUtils
- K | Utility: ManaUtils
- L | Utility: OneTimeCraftUtils
- M | Utility: TeleportUtils
- N | Utility: ProjectileUtils
- O | Utility: GammaUtils
- P | Utility: EntitySizeUtils
- Q | FXItems API (com.noctify.API) & Making Addons
- R | Advanced Techniques, Gotchas & FAQ
- S | Auto-Registration System
- T | Migration Guide (v1.1 → v1.2+)
- U | Changelog