The Fence Unleashed

The Fence Unleashed

40.8k Downloads

Clarify the configuration options

SivartMcDorf opened this issue · 7 comments

commented

recommend better documentation of the settings and what they do. I tried to install this on my server and had to add Minecraft:player to the allow list for me to get through gates, then I added other entities and they couldn't pass through. I wasn't sure what the allow, block, check meant for the settings. I had to disable it from my server until I can figure out the settings and how to make it work. Recommend adding the default animals from Minecraft automatically be blocked and the player to be automatically allowed.

commented
commented
commented
commented

Please paste your full config file and the versions of The Fence Unleashed and MinecraftForge.

commented

I cannot reproduce your issues with those versions. The default configuration lets the player pass and blocks animals as expected. This is either a configuration issue or a mod incompatibility issue. I suggest trying out this configuration:

#The default behavior for entities trying to pass through fence gates.
#Allowed Values: ALLOW, BLOCK, CHECK
defaultBehavior = "CHECK"
#Entities that are always blocked from passing through fence gates.
blocklist = []
#Entities that are always allowed to pass through fence gates.
allowlist = [ "minecolonies:citizen" ]

Keep in mind though, that not using the required Forge version or a later is unsupported and could cause all kinds of issues down the road.

commented

I originally planned to document the configuration options but never got around to doing that, so you have a point. However, I'm not sure what is happening in your case specifically.

If this is the only mod you are using, you shouldn't have to touch the configuration at all. If you are using other mods, you might have to add some entities to the allow-/blocklist manually. To understand why, let me explain the settings:

The allowlist and blocklist are straightforward. Entities in these lists are always allowed to or blocked from passing through fence gates. If an entity is not in either of those lists, the defaultBehavior is used. The three values for the default behavior are:

  • ALLOW, to allow passthrough,
  • BLOCK, to block passthrough, and
  • CHECK, to check whether an entity should be able to pass through on a best-effort basis.

The CHECK behavior typically only blocks animal-like entities from passing through and works perfectly with vanilla mobs. However, it might not correctly identify some modded entities (e.g. MineColonies' citizens).

commented

Thanks, we can't upgrade to 18.2 without starting the world over so we are kind of stuck.