Jump to content

Adapter

From Advanced Computers Wiki
Revision as of 14:17, 26 August 2026 by GHXX (talk | contribs) (Created page with "alt=Adapter block|thumb|Adapter block This block allows you to interact with non Advanced Computers blocks, such as the vanilla Minecraft jukebox, or blocks from other addon mods. It also offers special functionality for interacting with another Computer. The provided functionality changes based on the block that it is facing. == Provided component == This block provides the <code>adapter</code> component, offering the following propert...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Adapter block
Adapter block

This block allows you to interact with non Advanced Computers blocks, such as the vanilla Minecraft jukebox, or blocks from other addon mods. It also offers special functionality for interacting with another Computer. The provided functionality changes based on the block that it is facing.

Provided component

This block provides the adapter component, offering the following properties regardless of the block placed in front of it:

AdapterUD component methods
Name Type Description
:getBlockName() string Returns the name of the block that it is facing at. E.g. minecraft:air or minecraft:jukebox.

The remaining properties / methods are only available when the adapter is facing the respective block.

Jukebox

Jukebox properties
Name Type Read/Write Description
isPlaying boolean READ Whether the jukebox is currently playing music.
containedItem string READ The name of the currently contained item, e.g. minecraft:music_disc_otherside.
recordName string READ The fancy title of the music disc that is currently playing, e.g. Lena Raine - otherside.
Jukebox methods
Name Type Description
:restartPlaying() void Starts or restarts the current track.
:eject() void Ejects the current music disc.

Noteblock

Noteblock properties
Name Type Read/Write Description
instrument string READ The name of the instrument that this noteblock is representing.
notePitch int READWRITE The current pitch of the note that would be played.

Computer (Advanced Computers)

Computer properties
Name Type Read/Write Description
runState string READ The computer's runstate, see Computer.
crashReason string READ The crashReason that can also be read via the Debugger.