Groovy
96.8 FMNow playing 0:00 / 0:00Overnight with Ray Dawn
docs/INTEGRATIONS.md

Integrations

1686 words·~8 min read

Groovy needs nothing but NeoForge. Every integration is optional: code lives in mod/src/main/java/de/benkl/groovy/compat//, compiles against the mod's API only, and runs only when ModList says the mod is loaded. Each one with code is declared type="optional" in neoforge.mods.toml with a version range (Declared versions). Versions tested against: ATM10 8.4.

modwhat you gethow
Jadea station's frequency, name, whether it is on the air or live, what it plays and its range; a radio's frequency and signal
JEI (EMI via JEI)an information page for every block and item; switched-off content has none and leaves the item list
PatchouliThe Overnight Log, the guidebook: an entry for every block and item; its recipe, a book and a blank tape, loads only with Patchouli
CC:Tweakedstations and radios are peripherals: read what plays, tune, switch (Lua reference)compat/cctweaked; CompatGameTests.ccTweakedPeripherals with -PwithCCTweaked, against 1.120.2 and 1.113.1
ExtremeSoundMufflerevery radio, and the synthesizer's preview, is one entry in its list: groovy:broadcast; mute or muffle it there (details)no code: the sound event is registered (sound/GroovySounds) and plays as a vanilla sound in Jukebox/Note Blocks; IntegrationGameTests.jadeNamesAndTheSoundMufflersSee
Createdrills and saws leave a broadcast station alone (its tapes would spill)data only: the block tag create:non_breakable holds #groovy:holds_value
KubeJS
FTB Questsan example chapter for pack makers

Other mods in ATM10 that change sound, and what they do to radios: Immersive Engineering's earmuffs turn the Jukebox/Note Blocks category down to 10 % by default, radios included (untick "record" on the earmuffs to keep them). Ad Astra's space muffler leaves radios alone. No other mod in the pack touches them.

Groovy has no prices, so it has no Medici integration.

Jade

Look at a block with Jade installed on the client and the server:

  • Broadcast Station: 91.7 MHz · Night Owl FM (the frequency alone when it has no name), then On the air, Off the air or Live, the song ('Rain on Glass' by Steve) while a tape plays, and Range 160 blocks, from this server's config and the mast on top.
  • Radio: 91.7 MHz, then Signal 82% · Night Owl FM, No signal or Switched off.

Each can be turned off in Jade's settings (Broadcast Station, Radio, under Groovy).

CC:Tweaked

With CC:Tweaked 1.113.1 or newer, a computer next to a station or a radio, or a wired modem on one, sees a peripheral: groovy_station or groovy_radio. Every method runs on the server thread, so each call takes one game tick.

Frequencies are numbers in MHz, as on the dial: 87.5 to 108.0 in steps of 0.1. Anything else (91.75, 120) is an error, not rounded.

groovy_station

methodreturnswhat it does
getFrequency()numberthe frequency in MHz
setFrequency(mhz)nothingmoves the station to mhz. Only while the station is open to machines (below)
getName()stringthe name its owner gave it; "" when it has none
isOnAir()booleanradios hear it: switched on, redstone lets it, and a tape to play or someone live
isLive()booleansomeone plays a synthesizer live on it
isEnabled()booleanits switch is on (redstone can still keep it off the air)
play()booleanswitches it on; the playlist picks up where it stopped. Returns whether it is on the air now. Only while open to machines
pause()nothingswitches it off: radios go quiet and the playlist waits where it is. Only while open to machines
getNowPlaying()table or nilwhat it plays now (below); nil when it is off the air
getRange()numberhow far radios hear it, in blocks, with its mast

There is no skip: a station's playlist runs by the clock, and the station has no skip button either.

Who may change a station. A computer has no player behind it, and anyone can put one against someone else's station. So a computer reads everything, but changes a station only while its owner has opened it to machines: the Hoppers: open switch on the station's screen, the same one that lets hoppers and pipes reach the tapes. It is off on a new station. While it is off, setFrequency, play and pause fail with This station is closed to machines: its owner opens it on the station's screen (Hoppers: open).

groovy_radio

Anyone may tune a radio, so a computer may too.

methodreturnswhat it does
getFrequency()numberthe frequency it is tuned to, in MHz
setFrequency(mhz)nothingtunes it
getSignal()numberthe signal from the station it hears, 0 to 1 (1 at the station, 0 at the edge of its range); 0 while off
getNowPlaying()table or nilwhat it plays now (below); nil while it is off or hears nothing
isOn()booleanit is switched on
setOn(on)nothingswitches it on or off, as sneak-use does

The now-playing table

fieldtypemeaning
stationstringthe station's name, or its frequency ("91.7") when it has none
frequencynumberthe station's frequency in MHz
livebooleansomeone plays live on the station
titlestringthe song's title ("" when untitled). Only while a tape plays
authorstringwho wrote it. Only while a tape plays
slotnumberthe tape slot playing, 1 to 6, as a comparator reads it. Only while a tape plays
positionnumberseconds into the song, to a tenth. Only while a tape plays
lengthnumberthe song's length in seconds, to a tenth. Only while a tape plays
pausedbooleanthe tapes wait while someone plays live. Only while a tape plays

A station that is live with no tape in it gives station, frequency and live only.

Examples

What a radio plays, on a monitor:

local radio = peripheral.find("groovy_radio")
local monitor = peripheral.find("monitor")
while true do
  monitor.clear()
  monitor.setCursorPos(1, 1)
  local now = radio.getNowPlaying()
  if now == nil then
    monitor.write("No signal")
  elseif now.title then
    monitor.write(("%s: '%s' by %s"):format(now.station, now.title, now.author))
  else
    monitor.write(now.station .. " (live)")
  end
  sleep(2)
end

A station that goes on the air at night (open it to machines first):

local station = peripheral.find("groovy_station")
while true do
  local night = os.time() >= 18 or os.time() < 6
  if night and not station.isEnabled() then station.play()
  elseif not night and station.isEnabled() then station.pause() end
  sleep(10)
end

ExtremeSoundMuffler

Everything Groovy plays is one sound, groovy:broadcast, in the Jukebox/Note Blocks category. In ExtremeSoundMuffler (3.57, as in ATM10 8.4) it is in "All sounds" before any radio has played, and in "Recent sounds" once one has. Muting it silences every radio and the synthesizer's preview at once, on the next tick; unmuting brings them back within a second, on the beat. Listing groovy in its modsMuffled config does the same. An anchor mutes the radios within its radius. While a sound is muffled, ExtremeSoundMuffler sets its volume itself and the Jukebox/Note Blocks slider no longer applies to it; that is how it treats every sound. Its play button for this entry is silent: the music is made while it plays, there is no file to preview.

Declared versions

What neoforge.mods.toml declares, and why. Every integration is type="optional": the mod starts without it, and NeoForge refuses only a version below the range, at startup, with a message that names the mod. The lower bound is the oldest version the code was compiled against or tested with, never * (mod/gradle.properties holds the versions).

moddeclaredwhy that bound
Jade[15.10.6,)compiled against and tested in ATM10 8.4 with 15.10.6
JEI[19.70.0.464,)compiled against and tested in ATM10 8.4 with 19.70.0.464
Patchouli[1.21.1-93,)the book and its recipe checked with 1.21.1-93 (ATM10 8.4); Patchouli for 1.21 has no book recipe type
CC:Tweaked (computercraft)[1.113.1,)compiled against the 1.113.1 API, the oldest jar in ATM10 8.4; the compat test runs with 1.113.1 and with 1.120.2, which ATM10 8.4 loads
ExtremeSoundMufflernot declaredthe jar has no code or data for it; it works with the registered sound event
Createnot declareda block tag only, which does nothing without Create
KubeJS, CraftTweakernot declaredthe jar has no code or data for them; pack makers use them on the mod's data, and the examples are tested
FTB Questsnot declared

API notes

  • Jade 15.10: @WailaPlugin, IBlockComponentProvider (client) + IServerDataProvider<BlockAccessor> (server data, registered in register(IWailaCommonRegistration)). Jade loads the plugin class on a dedicated server too, so it names no client class.
  • JEI 19.70: @JeiPlugin, IRecipeRegistration.addIngredientInfo; IIngredientManager.removeIngredientsAtRuntime hides switched-off content (client only).
  • Patchouli 1.21.1-93: PatchouliAPI.get().getBookStack(id); the book's recipe is minecraft:crafting_shapeless with patchouli:book on the result (all four checked 2026-11-22).
  • CC:Tweaked 1.113.1 and 1.120.2: a peripheral is the block capability PeripheralCapability.get(), registered with RegisterCapabilitiesEvent#registerBlockEntity; there is no peripheral provider on NeoForge. @LuaFunction methods may throw only LuaException (CC:Tweaked drops the method otherwise, with an ERROR) and should be final; mainThread = true runs one on the server thread at the end of a tick. A peripheral is never told who placed the computer. AttachedComputerSet is new in 1.120.2: don't use it while 1.113.1 is the bound. The API artifact is cc.tweaked:cc-tweaked-1.21.1-forge-api on https://maven.squiddev.cc; the mod artifact cc-tweaked-1.21.1-forge carries Cobalt and JZlib inside.
  • A mixin into SoundEngine#calculateVolume keys every rule by SoundInstance#getLocation(); the "all sounds" list is BuiltInRegistries.SOUND_EVENT, so a mod's sound is listed only if its event is registered. Its neoforge.mods.toml names minecraft [1.21, 1.21.1), and NeoForge loads it on 1.21.1 anyway.
  • FTB Quests 2101.1.37 (FTB Library 2101.1.39): new ServerQuestFile(server).readDataFull(folder, registries) reads a quest folder without touching the server's; a command reward runs at permission_level (a legacy elevate_perms becomes 2); quest ids above 7FFFFFFFFFFFFFFF are replaced by random ones.
  • Create 6: drills and saws break any block not in the create:non_breakable block tag.