I am trying to make a world that is separated into four sections-
A creative section
a survival section (pvp off)
another survival section with pvp on
and a section where people can do whatever.
I know how to use scoreboard teams to do these things, however-
I want to separate these sections so that either people can't cross between them, or if they, it switches their game mode and clears their inventory.
I was thinking I could do this with a world barrier going between each sections, but quickly found that you can't made a 2D barrier. So it there a way ( that wouldn't take forever to do) that I could either make an unbreakable wall to separate the sections, or use command blocks to switch their gamemode? (Maybe a testfor command block that switches their gamemode at a certain x or z?, and then I could make the world border small enough that I could make a marker with /fill or something?) If that works, how exactly would I do that?
Also, I don't want to use plugins or mods for this, as its to be used for realms.