Unlock door when have for exemple with 5 planks

Hello, I would like to make a door system that opens when in my world I harvest 5 planks for example, I look but I find nothing could someone please help me?

Well there isn’t any single answer, as it would depend on how you’ve set up the game: who owns your door and/or controls its state, and who handles harvesting. The general form: give your door-handler a ‘toggle-locked-unlocked’ event, and have your harvester call that event when it reaches the desired number of planks.

Thank you for answering and helped me, sorry for my English, thank you for the translation google