Download NBT Peripheral — Minecraft Mods — MetaMods
NBT Peripheral

NBT Peripheral

Active

Downloads

0

Last update

4 years ago
Client
Technological
Addons

NBT Peripheral - NBT Interaction via ComputerCraft

NBT Peripheral mod unlocks new capabilities for working with computer systems from ComputerCraft by enabling the use of standard Minecraft blocks as peripheral devices. These devices can process NBT tags, presenting them in convenient table format for further programmatic manipulation.

Available Peripheral Devices

Observer (OBSERVER)

The observation block provides four main commands for block analysis:

  • read_nbt - reads NBT data from the target block within range, with data presence verification
  • has_nbt - checks if the target block contains NBT tags
  • read_state - reads block state with mandatory reporting when state is absent
  • has_state - determines whether the block possesses a state

Note: Scanning is limited to the block directly in front of the observer.

Pressure and Detection

Gold and iron pressure plates, as well as beacons, function as entity detectors with identical command sets:

  • is_empty - checks for entities within detection range
  • count - counts the number of detected entities
  • read - reads NBT data from all entities within operational radius

Important: Pressure plate detection range matches their physical dimensions, not the full block. Beacons scan within a radius corresponding to their upgrade level - approximately 10 blocks per level, starting from 10 blocks.

Additional Data Tags

For extended functionality when scanning entities, special fields are added:

  • _distanceSq - squared distance to the center of the target block
  • _relative - relative coordinates [x,y,z] from the peripheral device
  • _name - entity name (for players - account username)
  • _displayName - displayed entity name
  • _team - team name (only when participating in scoreboard systems)
  • _teamColor - team color (also only for team-based systems)
Project members
MakerTim

MakerTim

Created: 19 Jan 2021

ID: 90208