URLium 是一个 Polymer Library 的服务端模组,它通过 HTTP(S) 将红石、实体、命令和方块状态数据发送至可配置的 URL。
URLium 仅发送出站请求,并将 HTTP 响应数据记录到服务器日志中。URLium 不允许接收传入的命令或控制。任何对服务器的传入控制均通过现有的原生 RCON 连接完成,而非 URLium 的任何功能。
通过 RCON 响应 Minecraft 服务器以完成输入/输出的闭环。
可能的用途:
- 服务器之间的红石电路
- 比较已书写书的文本以进行问答比赛
- 从 Web 获取交互式 I/O:
- 观众投票生存竞赛
- 可在公共 HTML 浏览器中查看的记分板
- 根据悬挂告示牌上的文本来更新玩家在网站上的状态
- 寻宝游戏
- 配合启用了报告的箱子,查看谁先收集物品
- 配合发布魔杖,查看谁先点击方块
- 通过触发树莓派植物浇水系统的游戏内事件来浇灌现实生活中的植物
- 任何可以通过 HTTP 实现的功能
依赖项:
- Fabric 1.20.1 需要 Polymer 0.5.18
- Fabric 1.20.2 需要 Polymer 0.6.2
- 请务必运行 '/polymer generate-pack' 以生成客户端资源包,并在服务器设置中更新 SHA1 密钥,否则 URLium 物品将不可见。
配置:
- 在 /config/urlium.properties 中设置 URL:
- target=
- agent=可选的用户代理名称
- messageCommand=webcom
- securityToken=secret_token
(令牌包含在 Authentication: Bearer 头中)
示例 PHP Web 服务器响应脚本:
示例 Golang 脚本:
示例 Python 脚本:
查看更多文档:
![]()
![]()

![]()



![]()
![]()

URLium is a Polymer Library server-side mod that transmits redstone, entity, command, and blockstate data over HTTP(S) to a configurable URL.
URLium only transmits outbound requests and logs the HTTP response data to the server log. URLium does not allow incoming commands or controls. Any in-bound control of the server is performed by existing native RCON connections, not any feature of URLium.
-
URLium Block
- reports redstone power level changes
- can also be right-clicked by user
- transmits 'place', 'break', 'use', and 'sense' events
-
URL Post Wand
- use as tool to report target block or entity data
-
URL Config Wand
- use on Signs, Chests, Barrels, Comparators, Light Sensors, Sculk Sensors, Hoppers, Droppers, Dispensers, Lecterns, and Mobs will enable/disable change reporting
- chest contents sent when changed or block update occurs (not always real-time)
- sign front and back text content sent when changed
- comparator power level sent when changed
- sculk sensor power, phase, and frequency sent when changed
- light sensor power level sent when changed
- when a writable book or written book is placed on lectern, contents will be sent
- mobs and entities with change reporting send an "interact" event when right-clicked by any user
-
Ugetblock Command
-
Usetblock Command
- RCON-accessible command to query and set block data for remote webserver RCON response
- allows external server to perform lightweight query and get raw ('F3+i' debug query) block data
- forces block loading / generation if unloaded
- specify dimension (unlike regualr /setblock)
- silent execution
- webserver application/game logic can be written in ANY web language that can respond via RCON
- PHP, Python, Java, JS, Go, C#... anything!
-
"/webcom" Commands
- Users may send message to webserver with "/webcom ...message text..."
- Set command name ("webcom") in config file to any unused command name
- Up to 3 custom commands!
Respond to the Minecraft server via RCON to complete the circuit of input/output.
Possible uses:
- server-to-server redstone circuitry
- compare written book text for a quiz show competition
- get interactive I/O from the web:
- audience voting survival competition
- public HTML browser-viewable scoreboards
- update your player's status on a website from text on a hanging sign
- treasure-hunt
- with a reporting-enabled chest to see who collects items first
- with a Post Wand to see who can click the blocks first
- water real-life plants from in-game events triggering a RaspberryPi plant-watering system
- Anything That Can Be Done Via HTTP
Dependencies:
- Polymer 0.5.18 for Fabric 1.20.1
- Polymer 0.6.2 for Fabric 1.20.2
- Be sure to run '/polymer generate-pack' to produce the client-side resource pack and update the SHA1 key in server settings or URLium items will not be visible.
Config:
- set URL in /config/urlium.properties:
- target=
- agent=optional_user_agent_name
- messageCommand=webcom
- securityToken=secret_token
(token is included in Authentication: Bearer header)
Sample PHP Webserver Response Script:
Sample Golang Script:
Sample Python Script:
See the docs for more:
![]()
![]()

![]()




![]()

评论 0
登录后参与评分
还没有评论,来抢沙发吧