Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Advanced Concepts

Ijwu edited this page Nov 19, 2012 · 2 revisions

Introduction

Advanced Circuits has some advanced functionality that allow you to expand on, customize, or improve what it is you're trying to do. This page will cover these more advanced functions and expand on the Advanced Circuits Basic Guide.

Modifiers

Since AC 1.1, Advanced Circuits has the ability to read modifiers that can change the function or behavior of a component. Modifiers take the shape of cobalt ore and are placed on the four corners of a components activation region. The activation region is the area in which the component uses for input, output, and modifiers. This region is the same for most components, equating to a 3x3 square with the component in the direct center.

![Activation Region Picture](img/Activation Region.png)

In the picture above the activation region is described by the iridescent brick wall. The input ports described by the glass blocks and the modifier slots described by the cobalt ore.

The modifiers work on amounts, not on positions. That means that slot in which a modifier fills in is irrelevant, but instead the amount of modifiers affecting the component change its behavior. Each component that is affected by modifiers is affected differently by differing amounts of modifiers.

Grandfather Clocks can have up to two modifiers. One modifier on a Grandfather Clock will cause it to change its output to coincide more with the light levels of night and day. This means that any lights that are connected to a clock will be on before the night has come, in preparation for the darkness. Two modifiers on a Grandfather Clock will cause it to only change its output to 1 when a bloodmoon arises.

![Grandfather Clock Modifiers Picture](img/Grandfather Clock Modifiers.png)

Dart traps may use up to four modifiers. The amount of modifiers present changes the trap's configuration. There are five configurations and the amount of modifiers selects which configuration is used. These configurations are defined in the AC configuration XML file.

![Dart Trap Modifiers Picture](img/Dart Trap Modifiers.png)

Timers may use up to four modifiers. The amount of modifiers in a timer's modifier slots affects the time of the timer itself. One modifier doubles its time, and two modifiers quadruples it. Going in the other direction, three modifiers half its time and four modifiers quarter its time.

![Timer Modifiers Picture](img/Timer Modifiers.png)

Logic gates may also use one modifier. This modifier will force the logic gate to only take in input on all of its ports if they are from one circuit only.

The Block Activator

Introduced in AC 1.1, the Block Activator component is a port defining component that allows the conversion of any block into an active/inactive block. The block activator takes the shape of the Active Stone Block. The block activator component is comprised of two portions, the control block and the target blocks. The control block is the component itself. The control block requires an input port to function. The target block is a group of blocks that the component is made to target. To be choose which blocks should be targeted you must place a wall type behind the control block. Next you must place the same wall type behind the blocks you wish to be toggled. Lastly you must wire an output port of the control block to each of the target blocks.

When the control block receives a 0 signal it will make its target blocks disappear and store them in its memory. When the control block receives a 1 signal, it will make them reappear.

![Block Activator Component Picture](img/Block Activator Component.png)

Here are some guidelines and notes for when the block activator is in use:

  • Not all block types are compatible with this component. These blocks will not be affected by the component. For example, all blocks that make up other components are unaffected.
  • If a block has a different wall type behind it than the control block, it will be ignored.
  • If the control block has stored some blocks but is signaled with an 0. then nothing will happen.
  • If the control block is signaled with a 1 without having any blocks stored, then nothing will happen.
  • If the tile where a block should be restored is blocked, that block will not be replaced and the stored block is lost.
  • No wall type (sky) is also a valid wall type.
  • The maximum amount of storable blocks is limited by the configuration.
  • Block Activators have a configurable cooldown.
  • If the control block is removed with blocks in its storage, those blocks will be lost.
  • Multiple control blocks may be used on the same target blocks.
Clone this wiki locally