PixelPrinter

什么是 PixelPrinter
PixelPrinter 是一个展示如何利用 THIS 资源所能实现功能的示例。使用该插件,你可以将图片或 GIF 加载到服务器中,通过方块或地图来呈现。该插件可以下载图片和 GIF,调整它们的大小,并让你轻松地在整个服务器中创建天空盒、电影和像素艺术。
自定义资源包支持:
自 1.0.14 补丁版本起,PixelPrinter 支持全服务器的资源包功能。使用此功能可以在使用自定义资源包时获得更高品质和准确度的图像效果。要添加自定义资源包支持,请执行以下步骤:
- 进入 <Server>/plugins/PixelPrinter/custom_textures/ 目录。
- 在新窗口中打开资源包 zip 文件,并导航至 Minecraft>textures>blocks 文件夹。
- 在其中,将所有纹理拖入 custom_textures 目录。
就这样。PixelPrinter 会处理其余部分。
命令
(你可以通过 /pixelprinter 或 /pp 访问所有 PixelPrinter 命令)
| /pp |
列出所有命令及其用法 |
|
/pp download <文件名> <url> /pp d <文件名> <url> |
将图像的位置下载到 txt 文件中。有助于减少内存占用。 |
|
/pp downloadimage <文件名><url> /pp di <文件名> <url> |
将图像下载到 png、jpg 或 gif 文件中。 |
| /pp create <方向> <文件名> <高度> | 在游戏中的方块版本中创建图像的副本,沿 <方向> 移动,并将具有 <高度> 的高度。宽度将根据图像高度进行缩放。 |
| /pp createFrames <方向> <文件名> <高度> /pp cf <方向> <文件名> <高度> | 在游戏中的物品框架版本中创建图像的副本,沿 <方向> 移动,并将具有 <高度> 的高度。宽度将根据图像高度进行缩放。 |
| /pp createskin <方向> <玩家名称或 UUID> | 创建一个 16x48x16 的玩家角色,使用指定玩家的皮肤。注意:若要使用玩家名称,则该玩家必须至少加入过一次服务器。 |
| /pp delete <文件名> | 删除名为 <文件名> 的文件 |
| /pp stopGif <ID> | 停止 ID 为 <ID> 的 GIF |
| /pp stopAllGifs | 停止服务器上所有的 GIF。 |
| /pp listGifs | 列出服务器上所有活动的 GIF。如果你不知道某个 GIF 的 ID,请使用此命令。 |
| /pp preview | 创建你要制作的图像的预览。这仅显示图像的边框,可用于判断该图像是否会“穿过”任何现有方块。 |
| /pp specs | 显示图像的规格信息。 |
| /pp list |
显示已下载到服务器的所有图像 |
| /pp help 或 /pp ? |
显示命令及其用途 |
权限
| pixelprinter.* | 授予所有权限 |
| pixelprinter.stop | 授予玩家停止 GIF 的权限 |
| pixelprinter.delete | 授予玩家删除图像文件的权限 |
| pixelprinter.create | 授予玩家在游戏中创建图像的权限 |
| pixelprinter.download | 授予玩家从 URL 下载图像的权限 |
本插件会自动更新:
本插件会检查更新并下载更新。如果你不希望本插件自动更新,只需编辑 "plugins\AUpdater\global.yml" 文件中的一行即可。只需将该处的变量更改为 false(或者如果遇到任何问题,复制以下代码)
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
安装方法
将此插件放入你的 plugins 文件夹并重启服务器。
本插件使用 bStats:
bStats 是一项指标服务,使我能够查看有多少服务器使用了我的插件,这些服务器有多少玩家,以及哪些国家最常使用我的插件。所有信息均已匿名化处理,因此无法直接将信息与用户关联,而是将其添加到使用该插件的所有服务器的平均值中。
PixelPrinter

What is PixelPrinter
PixelPrinter is a demonstration of what you can do using THIS resource. Using this plugin, you can load images or gifs to your server, either by using blocks or maps. This plugin can download images or gifs, resize them, and allow you to easily create Sky-Boxes, Movies, and pixel art all over your server.
Custom resourcepack support:
As of the 1.0.14 patch, Pixelprinter allows for server-wide resourcepack support. Using this feature will allow for better quality and accuracy of images when using custom resourcepacks. To add custom resourcepack support, do the following:
- Go into the <Server>/plugins/PixelPrinter/custom_textures/ directory.
- In a new window, open the resourcepack zip file and navigate to the Minecraft>textures>blocks folder.
- In there, drag all textures into the custom_textures directory.
And that's it. Pixelprinter will handle the rest.
Commands
(You can either access all PixelPrinter commands using /pixelprinter or /pp)
| /pp |
lists all commands and their usages |
|
/pp download <Filename> <url> /pp d <filename> <url> |
Downloads the location of an image to a txt file. Good for minimizing memory. |
|
/pp downloadimage <filename><url> /pp di <filename> <url> |
Downloads the image to a png, jpg, or gif file. |
| /pp create <direction> <File name> <Height> | Creates a in-game block version of the image, moving the the direction <direction> and will have a height of <Height>. The width will be scaled to the image height. |
| /pp createFrames <direction> <File name> <Height> /pp cf <direction> <File name> <Height> | Creates a in-game item-frame version of the image, moving the the direction <direction> and will have a height of <Height>. The width will be scaled to the image height. |
| /pp createskin <direction> <player's name or UUID> | Create a 16x48x16 player character with the specified players skin. Note: In order to use the player's name, the player must have joined the server once. |
| /pp delete <filename> | Deletes the file wit h the filename <file name> |
| /pp stopGif <id> | Stops the gif with the id <Id> |
| /pp stopAllGifs | stops all gifs on the server. |
| /pp listGifs | lists all the gifs active on the server. Use this if you do not know the ID of a gif |
| /pp preview | Creates a preview of the image you are going to make. This only displays the boarder of the image, and should be used to tell if this image will "clip" through any existing blocks |
| /pp specs | Shows the specifications of an image. |
| /pp list |
Displays all the images that have been downloaded to the server |
| /pp help OR /pp ? |
Displays commands and their uses |
Permissions
| pixelprinter.* | Gives all permissions |
| pixelprinter.stop | Gives the player permission to stop gifs |
| pixelprinter.delete | Gives the player permission to delete image files |
| pixelprinter.create | Gives the player permission to create an image in-game |
| pixelprinter.download | Gives the player permission to download an image from a URL |
This plugin does update automatically:
This plugin checks for updates and will download updates. If you do not want this plugin to automatically update, all you need to do is edit one line in the "plugins\AUpdater\global.yml" file. Just change the one variable in there to false (or, if you run into any problems, copy the code below)
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
How to Install
Drop this plugin into you plugins folder and restart your server.
This plugin uses bStats:
bStats is a metrics service that allows me to to see how many servers use my plugins, how many players they have, and which countries use my plugin the most. All information is anonymized, so no information can be directly linked to you, and instead is added to the average of all severs that use the plugin.
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PixelPrinter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.0.46
添加了对 1.16 的预支持。
将 1.15 的方块加入 RGB 颜色系统。
修复了更新后的方块数量显示不正确的问题。
将内部方向系统更改为新的 `ImageRelativeBlockDirection` 枚举,替代原来的 `BlockFace`。
实现了新系统,使加载新方块变得更加容易。
1.0.45
修复了 1.14 的支持问题。
修复了 1.14+ 版本中大型图像加载的问题。
修复了多张图像导致的长时间等待/崩溃问题。
修复了 `/pp undo`(撤销)命令。
修复了旋转方块的朝向不正确的问题。
1.0.44
添加了对 1.14 的支持。
添加了 `/pp undo` 命令用于撤销图像操作。此操作不会影响空气方块。
将所有 PluginConstructorAPI 类移至 PixelPrinter。它不再需要作为依赖项使用。
修复了 1.14 版本中的地图无法渲染的 Bug。
优化了地图处理,使得包含相同图像的地图会被复用。
更新至 Maven。
1.0.43
修复了 GIF 地图的问题。
修复了 1.13 版本的地图问题。
1.0.42
修复了方向混淆的问题。
修复了当图像被裁剪时出现 VOID AIR(虚空空气)错误的问题。
修复了 1.13 版本中的问题:即使所有物品都不再拥有 materialIDs,系统仍在检查它们。
1.0.41
修复了玩家在控制台使用 `pp di` 时出现的错误信息。
更改下载器,使其保存为 PNG 格式。
1.0.40
将所有 1.13 相关代码移至单独的类中。这应该能修复找不到该类的问题。
1.0.39
移除了异常抛出机制。
1.0.38
重新支持较低版本。
1.0.37
添加了对 1.13 的完整支持。
1.0.36
添加了对透明图像的支持。现在你可以加载物品图标,而无需破坏透明像素对应的方块。
修复了自定义资源包中方块的问题。
修复了部分方块的 RGB 颜色问题。
确保大多数 1.13 方块可以被加载。
向黑名单中添加了更多非实体方块。
1.0.35
添加了更多方块面。包括活塞、南瓜、发射器和侦测器。
1.0.34
增加了更多皮肤支持。
1.0.33
增加了更多皮肤支持。
1.0.32
修复了旧版皮肤的问题。
1.0.31
添加了更多行代码。
1.0.30
修复了导入问题。
1.0.29
修复了 Java9 JavaX 导入问题。
1.0.28
修复了更新超时错误。
1.0.27
修复了 GitHub 更新器。
1.0.26
添加了对瘦长皮肤的半支持。
1.0.25
在图像中添加了门。
1.0.24
在配置文件中添加了 `whitelistedMaterials`(白名单材质)。现在你可以指定创建图像时允许服务器上存在的方块类型。
1.0.23
修复了更新器。
1.0.22
修复了黑块未加载的问题
在 /pp create 命令中添加了 enableTrans 参数。这将允许您控制图像是否应渲染透明像素,还是将其变为黑色。
改进了区块加载的代码。
优化了提示信息,避免在加载图像时产生聊天刷屏。
1.0.21
代码清理
添加了帽子支持!
修复了 PP(Post-Processing)中透明图像的问题。现在无需再担心为图标图像创建时破坏所有黑块的问题。
1.0.20
代码清理
在 onEnable 周围增加了更多检查。即使某些操作失败,插件仍应能正常运行。
在依赖项下载后添加了重载功能,因为本插件需要 PCAPI 才能正常工作。
修复了 /pp d 命令的权限问题。
修复了图像加载时的区块对齐问题。现在低端系统的延迟应有所减少。
1.0.19
用 BukkitRunnables 替换 Schedulers
在 1.0.4 中添加了对 PPAPI 的支持:更优的颜色检测
1.0.18
修复了依赖问题
1.0.17
添加了 PluginConstructorAPI 依赖
为玩家皮肤添加披风支持
1.0.16
添加了离线服务器支持。
修复了披风相关的问题。
1.0.15
修复了方块的不正确数据值。
修复了 GIF 高度只有预期一半的问题。
修复了加载大型 GIF 时的问题——图像转换采用异步方式。
1.0.14
添加了 /pp createSkin 命令。这将生成玩家皮肤的 1-1 像素版本。
添加了对 1.12 的支持。
修复了颜色代码值:方块颜色现在应该准确无误。
修复了无效链接错误。
添加了自定义资源包支持
修复了重新加载时 GIF 停止播放的问题
降低了 GIF 的帧率,以便低端客户端能更好地渲染它们。
1.0.13
为 ASCII 打印机添加了更多字符
更新了更新器
1.0.12
更改了更新器的位置。不应再与其他插件产生冲突。
修复了 GIF 输入流错误。
允许用户在命令中输入 URL。
1.0.11
添加了对所有版本的 bukkit/spigot 的支持
修复了聊天颜色代码。现在通过 /pp specs XXX 生成的聊天图像外观更好/更准确
次要 bug 修复
1.0.10
添加了图像查看器。你现在可以通过聊天窗口预览所选的图片。使用 /pp specs 文件名> 命令将在聊天中输出该图片。
(注意:由于 Minecraft 仅支持 16 种颜色,当前图像几乎难以辨认。待我实现多字符支持以及 Minecraft 增加更多颜色后,
图像将会变得更加清晰。)
更新了适配新 BukkitDev 网站的代码
添加了更新日志
1.0.9
将图像加载方式从自下而上改为从左到右。这将为服务器和玩家带来显著的性能提升(在某些情况下,加载大型图像时部分玩家将完全不再出现卡顿)。
修复了图像可能变为最大尺寸而非根据玩家输入进行缩放的问题。
1.0.8
新增 bStats
新增方向:FlatSouthEast、FlatSouthWest、FlatNorthEast 和 FlatNorthWest
提供更准确的数值。
为方块顶部和侧面添加了颜色值。
修复了原木生成时出现“顶面”的问题。现在树皮将始终显示。
修复了一些命令。
新增了每秒加载方块数量的设置功能。若希望每秒生成一个方块,请使用 /pp setLoadCount 1。
下载图片或图片路径时,URL 需输入在第二行。此举支持使用较长的 URL。
其他错误修复。
1.0.7
修复颜色查找算法
新增更多方块
轻微错误修复
1.0.6
修复图片数值
提高颜色搜索算法的准确性。
新增一些快捷键。
一般性错误修复
1.0.5
新增许可证
修复一些轻微问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
评论 0
登录后参与评分
还没有评论,来抢沙发吧