it's simple to make a protected base, you need to name an mob with the name "base" then a square will be created, if you are the creator of the base you can pass trought the glass walls you can make only one base if you try to create more your old base will not be yours anymore, if other players created the base and you are 5 blocks near to the base creation you will be owner of the base too! if the players entered the base they will can make everything they want, example : break your house , kill you, and others, if you don't be the owner of the base do /scoreboard players list @e[name=base,r=5] then see the number of the base score of the base name , after get the base number then type /scoreboard players set @p base2 <base number>