Terrain rule: a painted tile must be next to a tile of a matching terrain.
Source: addons/grid_placement/placement/placement_rules/template_rules/adjacency_required_rule.gd
Syntax
class AdjacencyRequiredRule extends TilePaintRuleMembers
| Name | Kind | Summary |
|---|---|---|
match_terrain_name | Property | Terrain the neighbors must have. Leave empty to match the terrain being painted. |
require_horizontal | Property | When on, a matching neighbor must be to the left or right. |
require_vertical | Property | When on, a matching neighbor must be above or below. |
min_neighbors | Property | Fewest matching neighbors needed. With require_horizontal or require_vertical on, only neighbors in that direction count. With both on, the tile needs a match in both directions, forming a corner. |
include_diagonal | Property | When on, diagonal neighbors also count. |
error_message | Property | Message shown when the rule fails. |
validate_cell | Method |
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot