Grow/Death Condition

Unlike normal conditions, these conditions apply to crops

Condition Library

biome

condition_xxx:
  type: biome
  value:
    - minecraft:plains

random

condition_xxx:
  type: random
  value: 0.3

suitable_season

condition_xxx:
  type: suitable_season
  value:
  - Spring

unsuitable_season

condition_xxx:
  type: suitable_season
  value:
  - Winter

crow_attack

condition_xxx:
  type: crow_attack
  value:
    chance: 0.005
    fly-model: crow_fly
    stand-model: crow_stand

water_more_than (For custom pots)

condition_xxx:
  type: water_more_than
  value: 0

water_less_than (For custom pots)

condition_xxx:
  type: water_less_than
  value: 1

moisture_more_than (For vanilla farmland)

condition_xxx:
  type: moisture_more_than
  value: 0

moisture_less_than (For vanilla farmland)

condition_xxx:
  type: moisture_less_than
  value: 1

pot

condition_xxx:
  type: pot
  value:
  - default

fertilizer

condition_xxx:
  type: fertilizer
  value:
  - speed_grow_1

fertilizer_type

condition_xxx:
  type: fertilizer_type
  value:
  - SPEED_GROW

temperature

condition_xxx:
  type: temperature
  value:
    - 0.15~0.85

“>” “>=” “<” “<=” “=” “!=”

condition_xxx:
  type: '='
  value:
    value1: '20'
    value2: '%player_health%'

“startsWith” “endsWith” “equals” “contains” “in-list”

'!startWith':
  value1: '%player_name%'
  value2: 'X'  <- player names that are not starting with "X"

condition_xxx:
  type: 'contains'
  value:
    value1: '%player_name%'
    value2: '_'  <- player names that contain "_"

condition_xxx:
  type: '!equals'
  value:
    value1: '%player_name%'
    value2: 'XiaoMoMi'  <- player names that not equal "XiaoMoMi"

condition_xxx:
  type: 'in-list'
  value:
    papi: '%player_name%'
    values: 
      - 'XiaoMoMi'
      - 'XIAOMOMI'
      - 'XlA0M0Ml'

logic (Create complex conditions)

'||':
    condition_xxx1: {}
    condition_xxx2: {}
    '&&':
        condition_xxx3: {}
        condition_xxx4: {}

light_more_than

condition_xxx:
  type: light_more_than
  value: 7

light_less_than

condition_xxx:
  type: light_less_than
  value: 8

natural_light_less_than

condition_xxx:
  type: natural_light_less_than
  value: 8

natural_light_more_than

condition_xxx:
  type: natural_light_more_than
  value: 8

Last updated