Open JayJeckel opened 9 years ago
The root of this issue, like so many, can be traced back to Notch's bad code design.
In simple terms, the animal AI checks for the vanilla Minecraft fence gate when figuring out if an animal's movement is obstructed by a block. Should Minecraft fix this issue, say by checking for any fence and not just the specific vanilla fence, then this issue will resolve itself.
At the next level, Forge does not, to my knowledge, currently have a hook or mechanism to register custom gates with the AI. If this changes, then this issue will be resolved.
Those to currently unavailable solutions aside, possible fixes are being explored. Perhaps implementing an "active/inactive" dual block mechanism, similar to the furnace, where the inactive, ie closed, block is treated as fully collideable will prove to be a work around. Alternatively, maybe a custom AI task could be added to moving entities to help them understand custom gates.
Animals all seem to be drawn to the mod's custom gates, crowding around them, some times to the point of pushing the animals out of the pen or glitching them into the ground.