Tutorials
Here are a few example WorldGuard region configurations that most users will likely need. These examples expect that you know how to read a regions.yml file and define a WG region, set region priority, parents, and flags. These examples are taken from my regions.yml files. You should be able to read them and know the /rg commands to get these configurations. Pay close attention to priorities and parents. Child regions inherit Owners, Members, and Flags from the parent region. Flags can be over ridden by the child region, but not Owners and Members. Region members are allowed to build by default. If you want to make it so that only the owner of a region may build you need to set construct: OWNERS on the region as in the Hotel Room example.
Town
This is an example configuration for a Town. All houses, shops and hotels will be children of this town. No one is able to build in the public areas of the town. If you add owners to the town region, they will have full access to ALL the child regions. If you add members to the town region, they might have full access to all the child regions.
town1: type: cuboid min: {x: 275.0, y: 48.0, z: -92.0} max: {x: 474.0, y: 98.0, z: 65.0} priority: 10 flags: {notify-leave: true, pvp: deny, leaf-decay: deny, water-flow: deny, potion-splash: deny, fire-spread: deny, lighter: deny, mob-spawning: deny, exit: allow, notify-enter: true, lava-fire: deny, creeper-explosion: deny, lava-flow: deny, farewell: 'Stay safe on your travels, %name%.', tnt: deny, entry: allow, mob-damage: deny, enderman-grief: deny, ice-melt: deny, ghast-fireball: deny} owners: {} members: {}
Private House
This is an example configuration for a Private House. Only the owner and those that he has added as members are able to enter, build and access chests.
141_n_broad_st: type: cuboid min: {x: 335.0, y: 51.0, z: -57.0} max: {x: 345.0, y: 67.0, z: -42.0} priority: 20 flags: deny-spawn: [SILVERFISH, SLIME, PIG_ZOMBIE, CREEPER, SPIDER, CAVE_SPIDER, ENDERMAN, ZOMBIE, MAGMA_CUBE, SKELETON, GHAST, BLAZE] lava-flow: allow greeting: Welcome home, %name%. tnt: allow exit-group: ALL entry: deny water-flow: allow potion-splash: allow lighter: allow entry-group: NON_OWNERS mob-spawning: allow exit: allow owners: players: [exaita] members: {} parent: town1
Open House
This is an example configuration for an Open House. Only the owner and those that he has added as members are able to build and access chests. Everyone is allowed to enter the property and have a look around.
139_n_bay_dr: type: cuboid min: {x: 407.0, y: 51.0, z: -57.0} max: {x: 423.0, y: 69.0, z: -41.0} priority: 20 flags: deny-spawn: [SILVERFISH, SLIME, PIG_ZOMBIE, CREEPER, SPIDER, CAVE_SPIDER, ENDERMAN, ZOMBIE, MAGMA_CUBE, SKELETON, GHAST, BLAZE] lava-flow: allow greeting: Welcome home, %name%. tnt: allow entry: allow water-flow: allow potion-splash: allow lighter: allow mob-spawning: allow exit: allow owners: {} members: {} parent: town1
Hotel
This is an example configuration for an Hotel. There are 2 parts to this building, the main Hotel building and each of the rooms for rent.
Hotel Building
162_s_broad_st: type: cuboid min: {x: 335.0, y: 51.0, z: 42.0} max: {x: 357.0, y: 69.0, z: 58.0} priority: 20 flags: {notify-enter: true, notify-leave: true, entry: allow, exit: allow} owners: {} members: {} parent: town1
Hotel Room
Folks that rent the rooms are able to use the chests and furnaces, but are not able to build. We also keep entry: allow set so that folks don't get stuck inside when the rental period expires.
broad_inn_1-a: type: cuboid min: {x: 336.0, y: 59.0, z: 43.0} max: {x: 342.0, y: 61.0, z: 47.0} priority: 30 flags: {entry: allow, construct: OWNERS, exit: allow} owners: {} members: {} parent: 162_s_broad_st
Shop
Shops are quite easy really. The entry and exit flags really aren't even needed here, but I add them for special use cases.
200_hill_ave: type: cuboid min: {x: 253.0, y: 52.0, z: -423.0} max: {x: 268.0, y: 87.0, z: -408.0} priority: 20 flags: {entry: allow, exit: allow} owners: {} members: {} parent: town1