A closed door used to end a chase. With Hostile Doors, skeletons, goblins, trorks and other hostiles open a closed door in their way and keep coming.
They never break doors and never walk through walls. They stop at the door for about a second first, so slamming it behind you still buys you time.
The mod is server-side only. Players do not need a client mod.
Type
Server-side plugin
Client mod
Not needed
Admin command
/hd admin
Languages
English, Polish
Getting started
Single and double doors both count.
Put the mod jar in the server's Mods folder and start the server. It works in every world right away.
Get a hostile NPC to chase you and close a door behind you.
Watch it stop at the door for about a second, then open it and follow you.
As an operator, run /hd admin to open the admin panel and change the delay, the reach, the worlds or the NPC kinds that never touch doors.
How it works
Only in a chase. By default only hostiles that are chasing a player look for doors. Turn off Only while chasing and any hostile that walks up to a door opens it.
A pause at the handle. A hostile that finds a closed door waits 1 second plus up to 0.4 seconds of random extra time, then opens it. The extra time is drawn per door, so a group does not open in lockstep.
Opening, never breaking. The mod only opens doors. It never breaks them, and the delay is the same for every NPC and every door type.
Two ways to spot a door. Hostiles open a door right next to them, and also a door they are facing and walking at, up to 2.6 blocks ahead by default.
Peaceful folk stay out of it. NPCs whose role name starts with Kweebec or Feran_Civilian never open doors. You can add or remove kinds in the admin panel.
Light on the server. Each hostile looks for a door about once a second, not every tick, and after opening a door it leaves doors alone for 1.5 seconds.
Admin panel
Run /hd admin to open the panel. It has these tabs:
Overview
State in this world, open delay, reach, how many hostiles wait at a door right now and how many doors were opened since start. Switches for on/off, chase-only and the debug log, plus a button that opens the door in front of you so you can see the reach.
Settings
Every value of the settings file, with a description on hover. Save applies it right away. Values are clamped to safe ranges.
Roles
The list of NPC kinds that never touch doors, plus the NPCs around you. Block or allow a kind without typing its name.
Worlds
Every world with an on/off check box. Changes apply at once, no restart needed. Instance worlds such as dungeons are listed by their name, and that entry covers every copy.
Settings
All settings live in settings.json in the mod's data folder and can be changed in the admin panel.
Setting
Default
What it does
Doors on
On
Hostiles open closed doors. Off = nobody opens anything.
Only while chasing
On
Only hostiles chasing a player open doors.
Open delay (ms)
1000
How long a hostile stops at a door before opening it. 0 = instant. Range 0 to 10000.
Delay spread (ms)
400
Random extra wait on top of the delay. Range 0 to 5000.
Door check (ms)
1000
How often one hostile looks for a door. Minimum 250.
Pause after opening (ms)
1500
How long a hostile leaves doors alone after opening one.
Doors next to them
On
Hostiles open a door they are standing next to.
Side reach (blocks)
1
How far to the side they reach for a door. Range 1 to 3.
Doors in front of them
On
Hostiles also open a door they are facing from a distance.
Forward reach (blocks)
2.6
How far ahead they spot a door. Range 0.5 to 8.
Worlds
Every world
Worlds the mod works in. default means your server's main world.
Role denylist
Kweebec, Feran_Civilian
Role name prefixes that never open doors.
Check for updates at start
On
Looks once at the mod's CurseForge page after start and tells operators about a newer version.
Debug log
Off
Writes every door the mod opens to the server log.
Commands
Command
What it does
Permission
Open the admin panel (also /hd panel, /hd menu)
hostiledoors.admin
Show what the mod answers to. Aliases: /hostiledoors, /hostiledoor
hostiledoors.admin
Questions
Do players need to install anything?
No. Hostile Doors is server-side only.
Can hostiles break my doors?
No. They only open doors, the same way you do.
Can I make them open doors instantly, like before?
Yes. Set Open delay to 0 in the admin panel.
Will Kweebecs or villagers walk into my house?
No. Kweebecs and village civilians are on the denylist by default. You can add other kinds in the Roles tab.
Can I turn it off in one world only?
Yes. Use the Worlds tab in /hd admin, or list world names under worlds in settings.json.