MonitoringMinecraft MonitoringMinecraft

Toby's Camera

Мод FabricFoliaPaper

Capture and share Minecraft moments with a client camera and companion server plugin

16 скачиваний 0 подписчиков
Оцените первым

TobysCamera

Turn the Minecraft world in front of you into persistent, shareable map photos.

Only the photographer needs the Fabric client mod. The server runs the Paper/Folia plugin, while finished media is delivered as vanilla filled_map items that every player can view, hold, trade, and place in item frames.

Supports Fabric 1.21.11 / 26.1 clients and Paper or Folia 1.21.11+ servers.

Keep the client mod and server plugin on the same TobysCamera release. Older clients receive an explicit rejection for unsupported camera packets.

For players

Before you start

Ask a server administrator for a camera. Cameras work from either the main hand or off hand; right-click one to open the viewfinder. If right-click is occupied by another interaction, use P to toggle the viewfinder.

The default shutter is the left mouse button, not the attack key. Every binding can be changed under Options → Controls → TobysCamera.

Default binding Action
Right-click / P Open or close the viewfinder
Left mouse button Shutter
Right mouse button Close the viewfinder
- / = Zoom out / in
G Cycle guides: off, rule of thirds, crosshair
R Open composition controls

Take a photo

  1. Hold a camera and right-click to open the viewfinder.
  2. Adjust the shot with zoom, guides, and the composition panel. The panel supports rotation, aspect ratio, zoom, and guides; use 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, or enter a custom ratio.
  3. Press the shutter. The client captures the rendered world and opens a preview.
  4. Choose the print size and whether to use Floyd–Steinberg dithering, then select Use photo. Select Retake to return to the viewfinder instead.
  5. Once the server has accepted and saved the upload, it gives you a photo bag containing a preview plus photographer, location, and time metadata.

Use a photo bag in either of these ways:

  • Hold right-click for about one second in the air to unpack it into its vanilla map tiles.
  • Right-click an empty item frame. If nearby empty item frames form a rectangle of the required size and orientation, the whole image is placed at once.
  • Break any frame in that placed group to recover the entire image as one photo bag, rather than dropping separate tiles.

FAQ

Why does the shutter not work? Make sure you are still holding an item marked tobyscamera:camera, the composition panel is closed, and the camera has enough film—or is film-free.

Do other players need the client mod? No. They receive and use vanilla map items; only the photographer needs the client mod.


For server administrators

Install

  1. Put tobyscamera-plugin-<version>.jar in the plugins/ directory of a Paper or Folia server and start the server once.
  2. Give photographers the Fabric client JAR matching their Minecraft version.
  3. Edit plugins/TobysCamera/config.yml as needed, then run /tobyscamera reload.

/tobyscamera reload requires tobyscamera.reload (OP by default). It reloads limits for later uploads without disturbing stored photos or database connections.

Give cameras and film

TobysCamera reads the root fields of an item's minecraft:custom_data; it does not read Bukkit PDC. Write tobyscamera:* keys directly, and do not put them inside PublicBukkitValues.

The following commands use the default keys and can be run from console or by a permitted player:

# Basic camera: up to a 4×4 map print; starts with no film
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4}]

# Film: hold it on the cursor and click a camera slot in an inventory to load it
/give @s minecraft:paper[minecraft:custom_data={"tobyscamera:film":1b}] 64

# Unlimited-film camera
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4,"tobyscamera:no_film_required":1b}]

# Single-use magic camera: consumes one camera when a valid photo upload begins; no film required
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4,"tobyscamera:magic_photo":1b}]

Loading film stores it in the camera and updates its lore. A photo costs one film per final map tile: a 2×2 print costs four film. If a player's inventory is full, delivered maps drop at their feet; if delivery occurs while they are offline, the server retries when they next join.

Item components (minecraft:custom_data)

Key Value Purpose
tobyscamera:camera Any value; normally 1b Required. Identifies an item as a camera.
tobyscamera:film Any value; normally 1b Identifies an item as film that can be loaded into a camera.
tobyscamera:max_grid_size Positive integer Maximum side length of photo prints. Defaults to the server's upload.max-grid-size; normal cameras are also limited by the square root of their remaining film.
tobyscamera:no_film_required Any value; normally 1b Makes a camera consume no film.
tobyscamera:magic_photo Any value; normally 1b Film-free, single-use photo camera. One camera is removed only after the server accepts a valid upload.

tobyscamera:film_remaining is an internal value maintained by the plugin while loading and consuming film. Do not normally issue or edit it manually.

The client currently recognizes tobyscamera:camera only. Keep the default camera-tag-key: "tobyscamera:camera" so the Fabric client and server agree.

Configuration

The first-start defaults in plugins/TobysCamera/config.yml are:

camera-tag-key: "tobyscamera:camera"
film-tag-key: "tobyscamera:film"
token-ttl-seconds: 60

rate-limit:
  per-second: 1
  per-minute: 12

upload:
  max-grid-size: 4
  max-chunks-per-second: 120
  max-active-upload-bytes: 16777216
Setting Purpose
token-ttl-seconds Validity period for server-issued upload tokens.
rate-limit Per-player rate limits for starting captures/uploads.
upload.max-grid-size Global maximum side length for photo prints.
upload.max-chunks-per-second / max-active-upload-bytes Network-rate and concurrent-memory protection for photo uploads.

Deployment checklist

  • Photographers have the Fabric Mod that matches the server version; the server has the plugin.
  • Each camera has tobyscamera:camera at the root of custom_data, not inside PublicBukkitValues.
  • Normal cameras have enough loaded film, or use tobyscamera:no_film_required / tobyscamera:magic_photo.
  • Verify with an unmodded client that delivered maps display and can be placed, and survive a server restart.

Compatibility and boundaries

  • One plugin JAR supports both Paper and Folia.
  • Finished photos are vanilla map items, so vanilla clients can use them.
  • The viewfinder captures what the photographer's client actually renders; the server does not render the world off-screen.
  • Key bindings, composition, and zoom are stored locally in config/tobyscamera/viewfinder.properties.

TobysCamera

把你眼前的 Minecraft 世界拍成可保存、可分享的地图照片。

只需要摄影师安装 Fabric 客户端 Mod;服务器安装 Paper/Folia 插件。成片是原版 filled_map,没有安装 Mod 的玩家同样可以查看、持有、交易和挂到展示框中。

适用于 Fabric 1.21.11 / 26.1 客户端,以及 Paper 或 Folia 1.21.11+ 服务器。

请保持客户端 Mod 与服务端插件处于同一 TobysCamera 版本;旧客户端发送不受支持的相机数据包时会收到明确的拒绝提示。

玩家指南

开始前

向管理员索要一台相机。相机可放在主手或副手;右键相机即可打开取景器。若右键被其他物品操作占用,也可以按 P 开关取景器。

相机的默认快门是鼠标左键,不是攻击键;所有按键都可在"选项 → 控制 → 托比相机"中重新绑定。

默认按键 作用
右键 / P 打开或关闭取景器
鼠标左键 快门
鼠标右键 关闭取景器
- / = 缩小 / 放大
G 切换参考线:关闭、三分线、十字线
R 打开构图面板

拍一张照片

  1. 手持相机并右键,进入取景器。
  2. 用缩放、参考线和构图面板调整画面。构图面板可设置旋转角度、比例、缩放和参考线;支持 1:14:33:43:22:316:99:16,也可输入自定义比例。
  3. 按快门。客户端会截取实际渲染的世界画面并打开预览。
  4. 在预览中选择成片大小、是否使用 Floyd–Steinberg 抖动,再点"打印照片";也可点"重新拍摄"。
  5. 服务器确认并保存后,会发放一只照片袋。照片袋带有预览、拍摄者、地点和时间信息。

照片袋的使用方式:

  • 在空中长按右键约 1 秒:拆成对应数量的原版地图。
  • 对着一块空展示框右键:若附近存在大小、朝向一致的空展示框矩形,会自动铺满整张照片。
  • 打掉这组展示框中的任意一块:整组会收回为一个照片袋,避免多格照片散落。

常见问题

服务器重启后,旧照片会一直占内存吗? 不会。只有带标签的地图或相片袋位于玩家主手、副手,或已加载区块的物品展示框中时,服务器才会读取照片;失活渲染器会立即释放像素。冷数据会异步从磁盘读取,并在读取完成后的下一 tick 显示,不会阻塞服务器 tick。

为什么快门没有反应? 请确认仍手持带 tobyscamera:camera 标记的相机、取景器未被构图面板遮挡,且相机有足够胶卷(或是免胶卷相机)。

其他玩家需要安装客户端 Mod 吗? 不需要。他们看到的是原版地图;只有拍摄者需要客户端 Mod。


服务器管理员指南

安装

  1. tobyscamera-plugin-<version>.jar 放进 Paper 或 Folia 服务器的 plugins/ 目录并启动一次。
  2. 将与摄影师 Minecraft 版本相符的 Fabric 客户端 JAR 交给摄影师安装。
  3. 按需编辑 plugins/TobysCamera/config.yml,然后执行 /tobyscamera reload

/tobyscamera reload 需要权限 tobyscamera.reload(默认 OP)。它会重新读取后续上传限制;已保存的照片与数据库连接保持不受影响。

发放相机和胶卷

TobysCamera 读取的是物品 minecraft:custom_data根字段,不是 Bukkit PDC。请直接写入 tobyscamera:* 键,不要把它们放进 PublicBukkitValues

以下命令使用默认键名,可从控制台或拥有权限的玩家执行:

# 基础相机:最多打印 4×4 地图;初始没有胶卷
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4}]

# 胶卷:把它拿在鼠标上,点击相机所在的背包格即可装入
/give @s minecraft:paper[minecraft:custom_data={"tobyscamera:film":1b}] 64

# 无限胶卷相机
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4,"tobyscamera:no_film_required":1b}]

# 一次性魔法相机:成功开始一张照片上传时消耗一台,不需要胶卷
/give @s minecraft:spyglass[minecraft:custom_data={"tobyscamera:camera":1b,"tobyscamera:max_grid_size":4,"tobyscamera:magic_photo":1b}]

胶卷装入时会写入相机并更新其说明。照片的胶卷消耗等于最终地图数量:2×2 成片消耗 4 张。若玩家背包已满,成片会掉在其脚边;若玩家在发放时离线,服务器会在其下次加入时重试。

物品组件(minecraft:custom_data

用途
tobyscamera:camera 任意值;通常 1b 必需。将物品识别为相机。
tobyscamera:film 任意值;通常 1b 将物品识别为可装入相机的胶卷。
tobyscamera:max_grid_size 正整数 照片可打印的最大边长;缺省为服务器 upload.max-grid-size。普通相机还会受剩余胶卷的平方根限制。
tobyscamera:no_film_required 任意值;通常 1b 相机不消耗胶卷。
tobyscamera:magic_photo 任意值;通常 1b 免胶卷的一次性照片相机;只有服务器接受有效上传后才扣除一台。

tobyscamera:film_remaining 是插件在装填或消耗胶卷时维护的内部计数,不建议手工发放或编辑。

客户端当前固定识别 tobyscamera:camera。为保证 Fabric 客户端与服务器一致,请保持 camera-tag-key: "tobyscamera:camera" 的默认值。

配置说明

首次启动后的 plugins/TobysCamera/config.yml 默认如下:

camera-tag-key: "tobyscamera:camera"
film-tag-key: "tobyscamera:film"
token-ttl-seconds: 60

rate-limit:
  per-second: 1
  per-minute: 12

upload:
  max-grid-size: 4
  max-chunks-per-second: 120
  max-active-upload-bytes: 16777216
配置项 作用
token-ttl-seconds 服务器发放的上传令牌有效期。
rate-limit 每位玩家开始拍摄/上传的频率限制。
upload.max-grid-size 照片允许的全局最大边长。
upload.max-chunks-per-second / max-active-upload-bytes 照片上传的网络速率与并发内存保护。

部署检查清单

  • 摄影师安装了与服务器版本匹配的 Fabric Mod;服务器安装了插件。
  • 相机的 custom_data 根部存在 tobyscamera:camera,并非嵌套在 PublicBukkitValues
  • 普通相机已装入足够胶卷,或带有 tobyscamera:no_film_required / tobyscamera:magic_photo
  • 用未安装 Mod 的客户端验证:收到的地图能正常查看、展示,并在服务器重启后恢复。

兼容性与边界

  • 插件 JAR 同时支持 Paper 与 Folia;只需部署一份。
  • 成片为原版地图物品,因此可由纯原版客户端使用。
  • 取景器截取的是摄影师客户端实际渲染的画面;服务端不进行离屏渲染。
  • 客户端按键、构图和缩放会保存在摄影师本地的 config/tobyscamera/viewfinder.properties
Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1224 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
AxisMine  VanillaPlus
8 онлайн
1.21.11 версия
Ванильный мир с сотнями уникальных механик и справедливой игрой! /free, pat-pat, emotecraft, Voice.
VanillaSquad
185 онлайн
26.1.2 — 26.2 версия
Приватный ванильный сервер Minecraft с классическим выживанием без привата, доната и лишних плагинов
PLIRGAME - ДЕВУШКИ ВОЙС ЧАТ
29 онлайн
1.21.10 — 26.1.1 версия
❤️ Выживание! ❤️ Войс Чат ❤️ Девушки ❤️ /free
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат