AutoDoors

I open the doors for you my friend!~
Back to Files

LincerosAutoDoor-1.1.0.jar

File nameLincerosAutoDoor-1.1.0.jar
Uploader
LincerosLinceros
Uploaded
Jan 28, 2026
Downloads
2.7K
Size
20.6 KB
File ID
7541485
Type
R
Release
Supported game versions
  • Early Access

What's new

AutoDoor - Changelog

Version 1.1.0 - Improvements and Fixes

✨ New Features

Extended Commands

  • /autodoor status - Shows the current mod configuration
  • /autodoor setrange <open> <close> - Sets the open and close ranges
  • /autodoor direction <towards|away> - Sets the door opening direction
    • towards - Doors open towards the player
    • away - Doors open away from the player (default)
  • /autodoor reload - Reloads the configuration from file

New Configuration

  • OpenTowardsPlayer - Allows choosing if doors open towards or away from the player
    • false (default) - Doors open away from the player
    • true - Doors open towards the player

πŸ› Bug Fixes

Memory Leak Fix

  • βœ… Implemented automatic player reference cleanup system every 10 seconds
  • βœ… Cleans invalid references when players disconnect
  • βœ… Cleans orphaned door states
  • βœ… Prevents indefinite data accumulation in memory

Corrected Closing Logic

  • βœ… Now uses CLOSE_DOOR_IN when opened with OPEN_DOOR_IN
  • βœ… Now uses CLOSE_DOOR_OUT when opened with OPEN_DOOR_OUT
  • βœ… Maintains consistency between opening and closing states

Configuration Validation

  • βœ… Validates that OpenRange > 0
  • βœ… Validates that CloseRange > 0
  • βœ… Validates that CloseRange > OpenRange (prevents flickering)
  • βœ… Auto-corrects invalid values when loading configuration
  • βœ… Shows warnings in logs when auto-corrected

🎨 UX Improvements

Colored Messages

  • Commands now use colors (green for success, red for error, yellow for info)
  • Clearer visual feedback for every action

Better Information

  • /autodoor command shows full help with all subcommands
  • More descriptive error messages
  • Usage examples in commands requiring parameters

πŸ”§ Technical Improvements

Robust Validation

  • Setters with range validation
  • Descriptive exceptions for invalid values
  • validateAndFix() method that auto-corrects invalid configurations

Improved Logging

  • Detailed log during setup showing configured opening direction
  • Warnings when configuration is auto-corrected
  • Configuration reload info

πŸ“‹ Example Configuration

{
  "OpenRange": 3.0,
  "CloseRange": 5.0,
  "Enabled": true,
  "OpenTowardsPlayer": false
}

🎯 Recommended Usage

  1. For doors that automatically open away (default):

    /autodoor direction away
    
  2. For doors that open towards you (modern automatic style):

    /autodoor direction towards
    
  3. Adjust ranges to avoid unwanted activations:

    /autodoor setrange 2.5 4.5
    

⚑ Performance

  • Periodic cleanup system every 200 ticks (~10 seconds)
  • Memory leak prevention
  • Keeps valid references only

Version 1.0.0 - Initial Release

Initial Features

  • Auto-opening doors when approaching
  • Auto-closing doors when leaving
  • Multi-player tracking per door
  • Basic range configuration
  • Commands /autodoor enable and /autodoor disable

This mod has no additional files