Skip to content

Overview

Daedalus1400 edited this page May 15, 2017 · 3 revisions

Terminology

Condition

A condition is an object that represents a single examination of a variable, comparing it to reference a value.

Action

An action is an object that represents a single effect that can be applied to the player in Minecraft.

Event

An event is an object that represents the "If X, then Y" structure of the system. It marries the conditions to the events that they trigger.

Function

Each event used by the mod is composed of two lists: a list of conditions and a list of actions. All of the conditions are combined via logical AND after their individual checks, so they must all be true for the actions to occur. Similarly, every action is executed within the same tick.

This mod strives to be resource efficient. However, while each individual event may not noticeably impact TPS, checking enough events will slow down the tick rate. In order to reduce tick lag caused by processing events, the events are spread out over twenty ticks, ideally one real time second. As such, each event can occur at most once per second; any given event is not guaranteed to occur in the same tick as any other event; and each event may first occur anywhere from the exact tick that the conditions are first met to exactly nineteen ticks after the conditions are first met.

Clone this wiki locally