I understood what the problem was and try to solve it by following some tutorials in internet, everything that i found was related to chest and furnaces, and some commands that works in 1.15 but in 1.16 needs some new parameters, so i'm stuck again with the same
This is my code, simple has the idea of the mod