Regarding the putting dirt blocks into someones home.. why not expand the code to include limits on who is allowed to access buttons/levers/plates/doors?
Say like right clicking these specific items will bring up a menu.. assuming that this ID tag code is visible to the player who owns it, allow the owner who placed a toggle item to add these ID tag codes so only specified players can interact with them.
This won't help with houses that are open of course, but it will make it handy for blocking off a tunnel you create and closed houses.
antigriefingcode=true
Say like right clicking these specific items will bring up a menu.. assuming that this ID tag code is visible to the player who owns it, allow the owner who placed a toggle item to add these ID tag codes so only specified players can interact with them.
This won't help with houses that are open of course, but it will make it handy for blocking off a tunnel you create and closed houses.