LockDoors API

An API for Hytale that allows you to create custom doors and blocks that require specific items to unlock.

File Details

LockDoors-1.0.1.jar

  • R
  • Feb 13, 2026
  • 9.45 KB
  • 88
  • Early Access

File Name

LockDoors-1.0.1.jar

Supported Versions

  • Early Access

🎉 Major Features Added

Auto-Relock System

  • Automatic door relocking: Doors can now automatically lock themselves after being opened
  • Configurable relock delay to control how long the door stays open
  • Smooth closing animation before the door locks again
  • Perfect for timed challenges and security systems in adventure maps

Enhanced State Management

  • Complete door lifecycle: DoorBlockedOpenDoorInCloseDoorInDoorBlocked
  • Multiple configurable state names for maximum flexibility
  • Support for custom animation states during closing

Improved Anti-Spam System

  • Cooldown-based protection: Prevents multiple item consumption during the unlock cycle
  • Smart cooldown calculation that covers the entire unlock-relock process
  • "Already Unlocked" message when players try to interact with an open door
  • Eliminates item duplication exploits

Fully Customizable Notifications

  • 4 different message types:
    • Success messages (door unlocked)
    • Already unlocked messages (door is open)
    • Relock messages (door is locking again)
    • Error messages (wrong item used)
  • Each message type has configurable main and secondary text
  • Adjustable title display duration for each message type
  • Optional icon support for all titles
  • Major/minor title styling options

⚙️ New Configuration Options

Auto-Relock Settings

  • AutoRelock (boolean): Enable/disable automatic door relocking
  • RelockDelaySeconds (integer): Time in seconds before the door starts closing
  • CloseStateName (string): Block state name for closing animation
  • BlockedStateName (string): Block state name for locked door
  • CloseAnimationSeconds (integer): Duration of the closing animation

Enhanced Message Configuration

  • AlreadyUnlockedTitleMain (string): Main title when door is already open
  • AlreadyUnlockedTitleSecondary (string): Subtitle when door is already open
  • RelockTitleMain (string): Main title when door starts closing
  • RelockTitleSecondary (string): Subtitle when door starts closing

Visual Customization

  • IsMajorTitle (boolean): Display as prominent title
  • TitleIcon (string): Optional icon identifier for titles

🔧 Technical Improvements

  • Better state management with processing flag
  • Optimized scheduler usage for timed events
  • Enhanced null safety checks
  • Improved code documentation and comments
  • More robust error handling

🐛 Bug Fixes

  • Fixed item duplication during unlock delay
  • Prevented multiple simultaneous unlock attempts
  • Corrected cooldown calculation for auto-relock scenarios
  • Fixed state transitions in edge cases