Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animals like Cow, Sheep, Pig, Chicken not passing through fence gate when on lead #15

Closed
jarquafelmu opened this issue Mar 24, 2024 · 1 comment
Assignees
Labels
a:question Further information is requested

Comments

@jarquafelmu
Copy link

Description

According to the mod's description, it's supposed to prevent certain mobs from freely moving through a fence gate, but able to do so if the mob is on a lead. However, even on a lead, I am not seeing that behavior.

The following is our server config for the mod. I would assume that removing those mobs from the block list would let them walk through whenever.

#The default behavior for entities trying to pass through fence gates.
#
#Possible values:
#    ALLOW - Entities may pass through fence gates by default. Exceptions may be added to the blocklist.
#    BLOCK - Entities are blocked from passing through fence gates by default. Exceptions may be added to the allowlist.
#    CHECK - An algorithm is used to determine if an entity should be able to pass through fence gates on a best-effort basis.
#            Exceptions can be added to the allow- or blocklist to respectively allow entities to or block them from passing.
#
#Allowed Values: ALLOW, BLOCK, CHECK
defaultBehavior = "CHECK"
#Entities that are always blocked from passing through fence gates.
blocklist = ["minecraft:cow", "minecraft:pig", "minecraft:sheep", "minecraft:chicken"]
#Entities that are always allowed to pass through fence gates.
allowlist = ["minecolonies:citizen", "minecolonies:visitor"]

Mod version

1.0.2

Forge version

47.2.21

Relevant log output

No response

@TheMrMilchmann TheMrMilchmann self-assigned this Mar 25, 2024
@TheMrMilchmann TheMrMilchmann added the a:question Further information is requested label Mar 25, 2024
@TheMrMilchmann
Copy link
Owner

Hi @jarquafelmu,

grafik

if you add entries to the allow- or blocklist, they are always (respectively) allowed to pass or blocked from passing through fence gates.

Both lists act as override to the default behavior:

#The default behavior for entities trying to pass through fence gates.
#
#Possible values:
#    ...
#    CHECK - An algorithm is used to determine if an entity should be able to pass through fence gates on a best-effort basis.
#            Exceptions can be added to the allow- or blocklist to respectively allow entities to or block them from passing.
#
#Allowed Values: ALLOW, BLOCK, CHECK
defaultBehavior = "CHECK"

As you can see, the default behavior in your configuration is CHECK. This means that the mod automatically determines if the entity is an animal. This works in most, but not all cases. Specifically, this means you probably don't want to add any entities to the blocklist in your case.

Please read the comments in the configuration before making any changes to understand what you're doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants