CC: HUD Glasses

What the computer writes to the modem is visible to the player in the glasses.

Редакция NLZONE · 2 мин чтения · 1 просмотр
CC: HUD Glasses
Скачать CC: HUD Glasses1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

What the computer writes to the modem is visible to the player in the glasses.

  • Тип: мод
  • Загрузчик: neoforge
  • Версии Minecraft: 1.21.1
  • Скачиваний на Modrinth: 8 879

Подробно

Wear a ComputerCraft monitor on your face. A pair of glasses and a special modem let any computer draw a heads-up display straight onto a player's screen, using the same monitor/term API you already know.

- HUD Glasses — worn in the helmet slot (or a Curios slot). Whatever the bound modem outputs is drawn as a full-screen overlay. - HUD Modem — a ComputerCraft peripheral (type = "hudglasses"). Wire it to a computer like any other peripheral and write to it like a monitor. - Binding lives on the glasses. Right-click a modem with the glasses in hand and they're bound to it. Hand the glasses to a friend and the HUD goes with them. Any number of players can watch the same modem.

lua local hud = peripheral.find("hudglasses") hud.setBackgroundColour(0) -- transparent background hud.setTextColour(colors.lime) hud.setCursorPos(1, 1) hud.write("Hello, HUD!")

If you've ever written a monitor program, you already know this peripheral.

- Monitor-compatible API: write, blit, clear, scroll, setCursorPos, setTextColour, setBackgroundColour, setPaletteColour, getSize, and more. Most monitor scripts run unchanged. - Transparent background — setBackgroundColour(0) (or - in blit) lets the world show through, so the HUD overlays the game instead of covering it. - Pixel-perfect CC font — reuses CC: Tweaked's own glyph sheet, so all 256 characters (box-drawing, sub-pixel blocks, arrows) look exactly like a real terminal. - Runtime resolution — setSize(w, h) from Lua, or set defaults in the config. Fewer cells means bigger text. Choose how the grid maps to the screen: FIT (keep aspect, letterbox), STRETCH (fill the screen), or COVER (fill + crop). - Shared screens — bind several glasses to one modem and everyone sees the same display. Good for team status boards, base alarms, and shared coordinates. - Place anywhere — the modem mounts on any block face (floor, wall, ceiling), screen facing out. - Portable HUD — craft a pocket computer together with a HUD Modem to give it the HUD upgrade, and carry the display with you. Same hudglasses peripheral; bind your worn glasses to it with sneak + right-click (a plain right-click still opens the terminal). - HUD + ender modem in one slot — a pocket computer only has one upgrade slot, so craft a HUD Ender Modem (HUD Modem + Ender Modem) and fit it to the pocket: one peripheral that is both screen and radio. rednet works on it, peripheral.find("hudglasses") finds it, and the modem half is interdimensional. Server

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также