Skip to content

In Grid

  • Id: moderner_beta:in_grid
  • Added in: 3.1.0

The In Grid biome predicate returns true if a biome is within a square grid region.

Properties

  • size
    • Type: int
    • Default: required
    • Description: The width of the grid space.
  • spacing
    • Type: int
    • Default: required
    • Description: The amount of space between grid space.
  • offset
    • Type: int
    • Default: required
    • Description: The offset of the position of the grid.

Example

JSON

json
{
  "id": "land",
  "parent": "land",
  "type": "moderner_beta:conditional_overlay",
  "predicate": {
    "condition": "moderner_beta:in_grid",
    "size": 64,
    "spacing": 16,
    "offset": -16
  },
  "onMatch": {
    "type": "layer",
    "value": "land"
  },
  "otherwise": {
    "type": "biome",
    "value": "minecraft:ocean"
  }
}

Output