tModLoader

tModLoader

124 ratings
[READ DESC] No Breaking Doors
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Gameplay Tweaks
Mod Side: Both
tModLoader Version: 1.4.3, 1.4.4
Language: English
File Size
Posted
Updated
58.051 KB
17 May, 2023 @ 5:59am
1 Oct, 2023 @ 12:08pm
3 Change Notes ( view )

Subscribe to download
[READ DESC] No Breaking Doors

Description
This mod currently doesn't work, at least not for long. I'm 99% sure it's because of a tModLoader bug[github.com], which I'm not smart enough to know how to fix. I'll try and work around the bug, but it might take a while. Thank you for your patience.

A simple mod that prevents Goblin Peons from breaking down doors. Also has a config option to prevent other enemies from opening your doors and Tall Gates.
Originally posted by tModLoader:
Developed By Snek
46 Comments
ProstoNekit 29 Mar @ 2:34pm 
also for some reason it *does* work for me
ProstoNekit 29 Mar @ 2:34pm 
awesome mod, thank you :D
Someone 12 Mar @ 3:01am 
Seeing as this is broken in tML, I tried to port it into a TShock plugin I was making to stop mob griefing (plugins can use detours & IL edits the same as tML mods). It works fine there from my testing, and I didn't see it suddenly stop working over time.

You saved me hours of frustration trying to figure out how to stop Goblin Peons from griefing doors... I hope it was okay for me to reuse your mod's code. I don't like to claim things I didn't make as mine, even if they're for private use.
Snek  [author] 26 Aug, 2024 @ 5:51pm 
The underlying issue still isn't fixed, and as far as I can remember, the current implementation is the only one that would work 100% of the time. Any other ideas I had either wouldn't stop Peons from breaking doors or would mess with AI in unwanted ways.
AcroFox 26 Aug, 2024 @ 4:34pm 
Is there no more solution for the mod?
professional clown 16 Jul, 2024 @ 10:40am 
ah, i see.
Snek  [author] 16 Jul, 2024 @ 9:44am 
As far as I'm aware, what happens is exactly what's already happening on the current version of the mod: The changes get randomly undone while playing, potentially before you even get into the world. I don't know the specifics of *why* it happens other than that the method being edited is massive.
professional clown 16 Jul, 2024 @ 9:25am 
@Snek, but why? what would happen?
Snek  [author] 16 Jul, 2024 @ 8:01am 
Nope. Turns out the exact method this mod changes (Terraria.NPC:AI_003_Fighters()) is one of the few that's unsafe to edit :).
https://github.com/tModLoader/tModLoader/issues/3878#issuecomment-2138478931
exodus 16 Jul, 2024 @ 12:25am 
is it still not working yet?