AFN panel module reference
Mit FlammiCraft ausgelieferte Mod-Version: 1.13.0
Diese Detailseite ist derzeit auf Englisch verfügbar.
Requires the optional Dashpanels integration. Each section describes a property or supported data format.
setup
Place this module on a Dashpanels panel. Open properties with a Panel Wrench; configure its two frequency slots in Panel Link.
name
Name: identifies this module within the panel network, including merged and cable-connected panels. Reference its content with ${Name}, or its strength with ${strength($.Name)}. Native modules provide strength only.
rules
Number and content fields accept channel output syntax. Expressions such as ${OtherName} read modules in the same panel network; fields containing expressions show their result below the input.
bounds
Lower / upper bound: numeric endpoints, defaulting to 0 and 100. Both accept expressions. The lower bound must not exceed the upper bound.
strength
Redstone strength: output strength from 0 to 15, defaulting to 15; accepts expressions. The channel content is separate from its activation strength.
background
Screen background: a six-digit RGB color, written as RRGGBB or #RRGGBB.
text
Text color: the displayed text color, written as RRGGBB or #RRGGBB.
format
Received data: one number, for example 42 or 42.5. Arrays containing several values are not a single number.
function
A flat, single-cell intermediate channel. Receives content and strength for other modules to reference by name.
color
Color: the placeholder surface color, written as RRGGBB or #RRGGBB.
function
A circular radar map centered on the module's world position, including moving Sable structures. Receives bridge map points, lines and areas without terrain or automatic scale changes.
format
Received data uses absolute world x,y,z coordinates: 0,64,0; several triples: 0,64,0,24,64,16; or nested arrays: [[0,64,0],[24,64,16]]. Bridge map JSON with points, lines and areas is also supported.
shapes
Named map JSON: {"points":[{"name":"Home","position":[0,64,0]}],"lines":[{"points":[[0,64,0],[24,64,16]]}],"areas":[{"points":[[0,64,0],[24,64,0],[24,64,16]]}]}. Each feature can define name, color and text_color; any of the three collections may be omitted.
range
Only coordinates within the configured horizontal radius are visible. If a received point is missing, compare it with the module's own world position and increase the scale as needed.
rotation
Map rotation: clockwise rotation in degrees; accepts channel output syntax.
grid
Grid color: the circular radar grid color, written as RRGGBB or #RRGGBB.
points
Point color: the default color for received points, lines and areas. Colors supplied by the received map data take priority.
fixed points
Fixed points: additional world coordinates, with names shown when present. For example: {[0,64,0]:"Home",[20,64,10]:"Dock"}. Arrays and bridge map data also work; expressions are supported.
fixed color
Fixed point color: the default color for fixed points, lines and areas. Each feature's own color takes priority.
scale
Scale: the positive horizontal distance, in blocks, visible from the center to the map edge; defaults to 64. Larger values show a wider area; accepts expressions.
nodes
First / second node: the two values dividing the bounds into three color ranges. Leave either field blank to use its one-third or two-thirds position; both fields accept channel output syntax.
colors
First / second / third range color: the fill color at low, middle and high values, defaulting to red, yellow and green. Use RRGGBB or #RRGGBB.
reading
Values outside the bounds are clamped to the endpoints. The latest received value remains visible after activation ends.
condition
Activation condition: blank disables condition activation; a true result keeps the channel active. Conditions accept channel output syntax.
pulse
Pulse on change: enabled by default. Keeps the channel active and updates its value while dragging; a short pulse after release delivers the final value. The activation condition operates independently.
integer
Integer output: round the sent value to the nearest integer.
sensitivity
Sensitivity: drag movement multiplier; a smaller positive number gives finer control. Defaults to 1 on standard sliders and 0.4 on long sliders; accepts channel output syntax.
nodes
Nodes: numeric stops such as 20,50,80 or [20,50,80], also accepting expressions. Only nodes inside the bounds apply. Reaching the next node stops the current drag; release and drag again to pass it. Marks appear beside the scale.
colors
Slider / needle / scale color: independently color the slider cap, pointers and scale marks, including node marks. Use RRGGBB or #RRGGBB.
show name
Show name: display the configured name without changing name-based references.
needle
Needle color: the gauge pointer color, written as RRGGBB or #RRGGBB.
scale color
Scale color: the gauge marks and numbers, written as RRGGBB or #RRGGBB.
reading
Values outside the bounds hold the needle at the corresponding endpoint. The latest received value remains visible after activation ends.
function
Receives pager dialogue data and shows the latest message's avatar, name and content. Plain text is also supported.
format
Message JSON: {"avatar":"item:minecraft:apple","name":"Warehouse","message":"Delivery ready"}. Avatar accepts item: plus an item ID or player: plus a player UUID. Plain text uses an anonymous identity.
messages
The messages field can mix text and stock objects as inline item icons: {"name":"Warehouse","messages":["Stock",{"minecraft:apple":8}]}. message, content and text are also accepted as the message body.
clear
Right-click to clear the current message. An empty radio shows only its background; the latest received message remains visible after activation ends.
function
Receives and directly displays channel content, arranged to fit the screen.
format
Received data: any channel content, displayed directly as text. For example: Temperature 42 C. Unlike a radio, this module does not interpret message JSON as a dialogue.
reading
The latest received content remains visible after activation ends. Empty content shows only the background.
content
Channel content: the value sent while active; accepts text and channel output syntax.
cap
Button cap color: the pressed part's color, written as RRGGBB or #RRGGBB.
function
Drag the two-axis joystick to send an array [x,y]. The two configured corners define each axis's output range.
corners
First / second corner: two numbers such as -1,-1 and 1,1, or arrays [-1,-1] and [1,1]. Both accept channel output syntax. Each axis maps independently between the corners.
sensitivity
Sensitivity: 0.1 to 5, default 1. At 0.1 the crosshair is ten times larger for finer control; at 5 it is five times smaller for faster control. Accepts channel output syntax.
integer
Integer output: round both coordinates to the nearest integer; disabled by default.
memory
Memory: disabled by default. Enable it to keep the last position after release; otherwise the joystick returns at constant speed to the nearest node.
nodes
Nodes: output coordinates such as 0,0 or [[0,0],[1,1]], defaulting to [0,0]. Accepts channel output syntax. With memory disabled, release to return at constant speed to the nearest node.
pulse
Pulse on change: enabled by default. Keeps the channel active and updates [x,y] while dragging; a short pulse after release delivers the final value. The activation condition operates independently.
format
Sent data: a two-number array such as [0.5,-0.25]. Other AFN modules can read its components with ${Name[0]} and ${Name[1]}.
dashpanels — category.afn_modules
AFN Modules
afn_control_lever — function
Drag vertically to set and send a number between the configured bounds.
afn_control_lever — rules
Bounds, strength, activation conditions and channel output syntax accept expressions. Use ${OtherName} to read a module in the same panel network. Blank output syntax sends the slider's raw number; plain text sends fixed text; an expression containing ${...} sends its evaluated result. Expression results appear below the input.
afn_control_lever — pulse
Pulse on change: enabled by default. Keeps the channel active and updates its value while dragging, then leaves a short pulse after release. The activation condition operates independently.
afn_control_lever — colors
Slider / needle / scale color: set each color separately. Node marks use the scale color. Use RRGGBB or #RRGGBB.
afn_long_control_lever — function
A vertical control slider 10 pixels long, matching the large radar diameter. Drag it to set and send a number.
afn_horizontal_control_lever — function
Drag horizontally to set and send a number between the configured bounds.
afn_long_horizontal_control_lever — function
A horizontal control slider 10 pixels long, matching the large radar diameter. Drag it to set and send a number.
afn_fan_gauge — function
Receives one number and displays it on a fan-shaped gauge. This module cannot change the received value.
afn_circular_gauge — function
A compact circular gauge that receives and displays one number. This module cannot change the received value.
afn_button — function
Tap to send a short pulse, or hold to send continuously until released.
afn_switch — function
Right-click to toggle continuous output on or off.
afn_map — rotation
Radar rotation: clockwise rotation in degrees; accepts channel output syntax.
afn_map — range
Only coordinates within the configured horizontal radius are visible. If a point is missing, check its distance from the module and increase the scale as needed. Coordinates are absolute world positions, not relative offsets.
afn_energy_column — function
A vertical 1 by 4 segmented battery-style display. Receives one number and changes its fill color between three ranges.
afn_energy_column — colors
Low / middle / high range color: the whole fill color at low, middle and high values, defaulting to red, yellow and green. Use RRGGBB or #RRGGBB.
afn_horizontal_energy_column — function
A horizontal 4 by 1 segmented battery-style display. Receives one number and changes its fill color between three ranges.
afn_map — shapes
Named map JSON: {"points":[{"name":"Home","position":[0,64,0]}],"lines":[{"points":[[0,64,0],[24,64,16]]}],"areas":[{"points":[[0,64,0],[24,64,0],[24,64,16]]}]}. Each feature can define name, color and text_color; any of the three collections may be omitted.
afn_long_energy_column — function
A vertical 2 by 10 segmented battery-style display. Receives one number and changes its fill color between three ranges.
afn_long_horizontal_energy_column — function
A horizontal 10 by 2 segmented battery-style display. Receives one number and changes its fill color between three ranges.
afn_push_button — function
Uses the native Push Button appearance. Right-click to toggle continuous output on or off.
afn_joystick — rules
The first and second corners define each axis range. Coordinates, activation conditions, strength and channel output syntax accept expressions. Use ${OtherName} to read modules in the same panel network. Blank output syntax sends the raw [x,y] pair; plain text sends fixed text; an expression containing ${...} sends its result and can read the joystick's own named pair. Preview the result below the input.
afn_joystick — nodes
Nodes: output coordinates such as 0,0 or [[0,0],[1,1]], defaulting to [0,0]. Accepts channel output syntax. With memory disabled, nodes and their return zones are shown; release to return at constant speed to the node in the current zone.