Skip to content

Reaction Instability Cause

Daniel Mills edited this page Mar 31, 2016 · 1 revision

What does it do?

This is the brain of React. This is used to determine what "too much" of anything is. Note that React is smarter than just checking a limit. For example if TNT is at 1000 and Liquids are at 1000, but the server is lagging and the TNT/s is only 500, and liquids are at 800, react will judge logarithmically and determine that liquid is the source of lag.

When is it used?

This is used on an interval every X amount of ticks defined in the config. This action then calls other actions to fix the lag and looks to see if that actually fixed the issue. This also is the action responsible for notifying you about any issues and writing it to the issues book.

Configuration

Located at plugins/React/reactions/action-instability-cause.yml

component:
  # You can disable this here. However, be aware that it won't be used.
  # React will still warn you, but will not fix the problem
  enable: true
  
  # Most reactions do not use an interval, but some do
  # You shouldn't usually need to change this.
  interval: 20
action-instability-cause:
  # These are only compared when the server IS LAGGING.
  # If the server is not lagging, these will not be looked at.
  high:
    # What high liquid flow is considered before judgement.
    liquid: 4096
    drop:
      # Drop count to reach before teleporting drops
      # If drop teleporting is disabled, this will do nothing.
      count: 1024
    # High redstone before judgement.
    redstone: 4096
    chunk:
      # High chunk generation before warnings.
      gen: 64
    memory:
      chunk:
        # High memory percent from chunks before warning (from 0 to 1)
        percent: 0.9
      # High memory used percent (from 0 to 1)
      percent: 0.8
    worldedit:
      # High World edit BPS before warning.
      bps: 10000
    # High tnt count before warning & Judgement.
    tnt: 256
    # Low spms before warning.
    spms: 1
    entity:
      # High entity count before judgement.
      count: 8192
  low:
    # This determines WHEN to actually look at the above
    # Values. If the tps is higer than this, nothing will happen
    # Ensure you do not set this too low or high.
    tps: 16.8