2 Comments

  1. First make sure there is one block of air between the pressure plate and the fence gate, so it does not get powered directly.

    I dont know what you did wrong but here a quick explanation for what it is doing. The first contraption is just for daylight detection to toggle a redstone line off during working hours. So in the night it should be turned on and on the day it should be turned off.
    It is basically just a toggle switch triggering once in the morning and once in the evening.

    Now the second contraption from your top left picture does the following: If a villager steps on the pressure plate (enters the workstation) it powers the single redstone below -> the torch on the right turns off -> the redstone at the bottom right gets unpowered -> the torch in the mittle turns on -> now the block in the top middle gets powered which first turns off the torch on the top left (closing the fence gate) and second powers the redstone line on the top right. So now it gets stuck in that “closed fence” position until the bottom left daylight input line turns on again when the working hours end