How can I create puplic variables/edit collision boxes

In short: I try to recode a game like Minecraft/Satisfactory. My friend wants to make a Game company. And my part is to code the game. I want to recode games like Minecraft and other games to learn how to use the Engine. But I think I use the wrong way to create my test game