Juke Alert
Juke Alert turns a note block or a jukebox into a snitch, a block that watches the space around it and reports to your Name Layer group. A note block sends a chat alert when an outsider walks in. A jukebox sends the same alerts and also keeps a log of what people did nearby, which you can read later even if nobody was online at the time.
Snitch types
| Notification snitch | Logging snitch | |
|---|---|---|
| Block | Note block | Jukebox |
| Name shown in game | Snitch | Logsnitch |
| Range | 11 blocks | 11 blocks |
| Chat alerts | Entry, login, logout | Entry, login, logout |
| Keeps a log | No | Yes, every action it can detect |
| Lever output | No | Yes |
| Goes dormant | 4 weeks after its last refresh | 6 weeks after its last refresh |
| Culled | 8 weeks after its last refresh | 12 weeks after its last refresh |
The field is a cube. It reaches 11 blocks from the snitch in every direction, up and down included, so it covers 23 by 23 by 23 blocks with the snitch in the middle. It passes through walls, so you can bury the block and it works the same.
Placing a snitch
A snitch has to be reinforced with Citadel, and the group you reinforce it to is the group that owns it. Run /ctf <group> and place the note block or jukebox.
If you place the block bare and reinforce it afterwards with /ctr, it becomes a snitch only if the server has not restarted in between.
A snitch lives exactly as long as its reinforcement. Break or remove the reinforcement and the snitch is gone. Change the reinforcement to another group and the snitch moves to that group. Deleting a group deletes its snitches, and merging a group into another moves them across.
Naming
/janame <name> names the snitch you are looking at, up to 40 blocks away. If you are not looking at one, it names the closest snitch whose field you are standing in. Names are cut off at 40 characters. An unnamed snitch shows up in alerts as plain Snitch or Logsnitch.
/janameat [world] <x> <y> <z> <name> renames one from a distance by its coordinates.
Alerts
When a player enters a field, or logs in or out while inside one, every online member of the owning group who holds the SNITCH_NOTIFICATIONS permission gets a line in chat like this:
Enter Steve North gate [120 64 -340] [85m North East]
That is the action, the player, the snitch name, the coordinates of the snitch, and how far away and in which direction the snitch is from you.
/jamute <group> switches alerts from one group off, and the same command switches them back on. /jamutelist shows what you have muted. To silence everything, open /config, go to JukeAlert and turn on "Ignore all snitch alerts". The same menu lets you drop the distance and direction from alerts and show them in a single colour.
Alerts can also be relayed to a Discord channel, see Discord. Nodes have their own snitch module that covers a whole node without a block, described under Node Specialisations.
Who a snitch ignores
Anyone with the SNITCH_IMMUNE permission on the owning group is invisible to its snitches. They cause no alerts, no log entries and no lever pulses. By default that is every member of the group.
The catch is that a jukebox will not record what your own members do. If you want a vault snitch that logs insiders too, put it on a group where the member rank has had SNITCH_IMMUNE removed.
Reading logs
Only jukeboxes keep logs. Stand in the field or look at the jukebox and run /ja to open the log as a menu. The same menu has buttons to rename the snitch, clear its log and switch lever output.
/jainfo prints the log in chat, newest first, 8 entries per page. Pages count from 0. The options can be combined in any order:
| Option | What it does |
|---|---|
/jainfo 2 |
Jump to a page. |
/jainfo next |
Next page of whatever you last looked at. |
/jainfo censor |
Replace coordinates with [*** *** ***], for screenshots you want to post.
|
/jainfo action=break |
Only entries whose action contains that text. |
/jainfo player=steve |
Only entries whose player name contains that text, in any letter case. |
A jukebox records these actions:
| Shown as | Recorded when a player |
|---|---|
| Enter, Leave | walks into or out of the field |
| Login, Logout | logs in or out inside the field |
| Break, Place | breaks or places a block |
| Opened | opens a chest, barrel, furnace or other container, including chest minecarts and chest boats |
| Emptied bucket, Filled bucket | uses a bucket |
| Ignited | lights a block with flint and steel |
| Edited | writes on a sign |
| Killed | kills a mob or another player |
| Placed, Broke, Entered, Exited | places, destroys, boards or leaves a boat or minecart |
| Mounted, Dismounted | gets on or off a horse or other animal |
Entries are kept for 4 weeks and then dropped. Times are in UTC.
/jaclear wipes the whole log of a jukebox.
Refreshing, dormancy and culling
A snitch needs a visit now and then. Its timer resets whenever a player with the LIST_SNITCHES permission on its group walks into or out of the field. By default that means Mods, Admins and the Owner. An ordinary member walking past does not refresh anything unless you grant them LIST_SNITCHES.
Standing inside the field does not count, and neither does logging in there. You have to cross the edge. A base you never leave can lose its own snitches this way.
A note block goes dormant 4 weeks after its last refresh, a jukebox after 6. A dormant snitch does nothing at all, but one visit from someone with LIST_SNITCHES wakes it up with a full timer. Leave it dormant for as long again (8 weeks in total for a note block, 12 for a jukebox) and it is culled. The block stays where it is but is no longer a snitch, and the only way back is to break it and place it again.
/jalist shows every snitch on the groups where you hold LIST_SNITCHES, the ones closest to being culled first, each with the time left until it goes dormant or is culled. Add group names to narrow it down, as in /jalist mygroup.
Lever output
A jukebox can pulse a lever when something happens in its field. Attach the lever directly to a side of the jukebox, then turn the feature on with /jatogglelevers or the lever button in /ja. It is off on a new snitch. Each side answers to a different event, and the pulse lasts one second.
| Side of the jukebox | Pulses when |
|---|---|
| North | a player enters the field or logs in inside it |
| South | a container is opened |
| East | a block is placed |
| West | a block is broken |
What an intruder can tell
Nothing tells a player that they have tripped a snitch, and no command reveals the fields of groups you are not on.
What an intruder can do is find the block and break it. Whoever breaks a snitch's reinforcement is told who placed it, which group it was on and who owns that group. Once it is broken, a jukebox's log is gone with it.
So hide snitches, and place them inside each other's fields. A jukebox records the breaking of any block in its field, including another snitch.
Group permissions
These are set per group in Name Layer.
| Permission | Default ranks | Allows |
|---|---|---|
| SNITCH_NOTIFICATIONS | Members, Mods, Admins, Owner | Receiving alerts |
| READ_SNITCHLOG | Members, Mods, Admins, Owner | /ja and /jainfo
|
| SNITCH_IMMUNE | Members, Mods, Admins, Owner | Not being detected |
| LIST_SNITCHES | Mods, Admins, Owner | /jalist, and refreshing snitches by visiting
|
| RENAME_SNITCH | Mods, Admins, Owner | /janame and /janameat
|
| CLEAR_SNITCHLOG | Mods, Admins, Owner | /jaclear
|
| SNITCH_TOGGLE_LEVER | Mods, Admins, Owner | /jatogglelevers
|
Commands
Commands that act on one snitch pick the one you are looking at, or else the closest one whose field you are standing in.
| Command | What it does |
|---|---|
/ja |
Open the log menu for the snitch here. |
/jainfo [page] [censor] [action=<text>] [player=<name>] |
Print a jukebox's log in chat. |
/jainfo next |
Print the next page. |
/jalist [group ...] |
List your groups' snitches with their timers. |
/janame <name> |
Name the snitch here. |
/janameat [world] <x> <y> <z> <name> |
Name the snitch at those coordinates. |
/jaclear |
Delete all log entries of the jukebox here. |
/jatogglelevers |
Turn lever output on or off for the jukebox here. |
/jamute <group> |
Mute or unmute alerts from a group. |
/jamutelist |
List the groups you have muted. |