FoilCarpet
适用于 1.21.11 的 Folia Bukkit 插件,将 Carpet 模组的部分规则移植到原版 Folia 服务器。
将 gnembon 的 Fabric Carpet 移植为 Bukkit 插件
使用事件和 Folia 区域线程重新实现 Carpet 规则,而非依赖 Fabric Mixins
在原版 Folia 上运行,无需加载 Fabric 加载器
通过经典的 /carpet 命令设置规则
已实现:tntDoNotUpdate, mergeTNT, railPowerLimit, movableBlockEntities, persistentParrots, stackableShulkerBoxes, pushLimit, creativeNoClip, /log tnt, /profile
安装方法:
将 jar 文件放入 plugins 文件夹
重启服务器
完成
要求:
Folia 1.21.11(需要 Folia 的区域线程,普通 Paper 无法工作)
Java 21
是否包含所有 Carpet 规则?
不,这只是其中一小部分,请查看上述列表
是否在普通 Paper 上可用?
不,它需要 Folia
命令:
/carpet <rule> <value> - 设置 Carpet 规则(控制台或管理员)
/carpet <rule> - 显示当前值
/profile - Carpet 分析器工具
/log tnt - 记录 TNT 放置日志
配置:
规则不会存储在 config.yml 中
请使用 /carpet 命令,如果你希望某项规则在重启后保留,请在出现 “[Change permanently?]” 提示时回答 yes,否则每次重启都会将其重置为默认值
权限:
无权限节点,/carpet 仅限控制台或管理员使用
工作原理(极客内容):
Folia 将世界划分为多个区域线程,因此任何涉及世界的操作都必须在区域任务内运行
中央时钟计数器取代了旧的服务端 Tick 事件
由于 Folia 隐藏了全局区块列表,已加载的区块需手动追踪
tntDoNotUpdate 会记住你放置 TNT 的位置,并取消同一 Tick 内的红石点火
railPowerLimit 会扫描每个已加载的区块,并重写每个轨道的通电状态以匹配限制,同时也能处理阶梯地形
movableBlockEntities、鹦鹉和潜影盒挂钩于 Bukkit 事件以及周期性扫描
重要提示
听好了
这是一个实验性的业余项目,并非用于生产环境
仅在 Folia 1.21.11 上经过测试,在其他版本上可能会出现 Bug
使用前请备份你的世界,你已经收到警告
如果发现 Bug,请提交报告,最好附上相关规则、你执行的命令以及服务器日志
如果出现问题,这是我的 Bug,不是 Carpet 的 Bug,不要责怪 gnembon
如果你不喜欢这个项目,可以 Fork 代码,MIT 许可证就是为此而设
如需报告 Bug,请在 GitHub 仓库中开启 Issue
现在去享受你的 Carpet 吧
如果你喜欢这个模组
捐赠我:ko-fi.com/xxduckyxx
许可证:
MIT,与此构建所基于的 Carpet 模组相同
Carpet 版权所有 2020 gnembon 及 Carpet 贡献者,采用 MIT 许可证,此分叉版按要求在 LICENSE 文件中保留了该声明,gnembon 的模组。
FoilCarpet
Folia bukkit plugin for 1.21.11 that ports some of the carpet mod rules to a stock folia server
a port of gnembon's fabric carpet into a bukkit plugin
re-implements the carpet rules with events and folia region threading instead of fabric mixins
runs on stock folia, no fabric loader needed
rules are set the classic way with /carpet
implements: tntDoNotUpdate, mergeTNT, railPowerLimit, movableBlockEntities, persistentParrots, stackableShulkerBoxes, pushLimit, creativeNoClip, /log tnt, /profile
how to install:
drop the jar in the plugins folder
restart server
done
requires:
folia 1.21.11 (needs folia's region threads, normal paper wont work)
java 21
does it have all carpet rules?
no, its a small subset, check the list above
does it work on normal paper?
no, it needs folia
commands:
/carpet <rule> <value> - sets a carpet rule (console or admin)
/carpet <rule> - shows the current value
/profile - the carpet profiler thing
/log tnt - logs tnt placements
config:
rules are not stored in config.yml
use /carpet, and if you want a rule to survive a restart answer yes to the "[Change permanently?]" prompt, otherwise every restart resets it to the default
permissions:
no permission nodes, /carpet is console/admin only
how it works (nerd stuff):
folia splits the world into region threads, so anything touching the world has to run inside a region task
a central tick counter replaces the old server tick event
loaded chunks are tracked manually because folia hides the global chunk list
tntDoNotUpdate remembers where you placed the tnt and cancels redstone ignition from the same tick
railPowerLimit rescans every loaded chunk and rewrites the powered flag of each rail to match the limit, works up steps too
movableBlockEntities, parrots and shulkers hook into bukkit events plus a periodic scan
IMPORTANT NOTE
LISTEN UP
THIS IS AN EXPERIMENTAL HOBBY PROJECT, NOT FOR PRODUCTION
ONLY TESTED ON FOLIA 1.21.11, EXPECT BUGS ON ANYTHING ELSE
BACKUP YOUR WORLD BEFORE USING THIS, YOU HAVE BEEN WARNED
IF YOU FIND A BUG REPORT IT, PREFERABLY WITH THE RULE, THE COMMANDS YOU RAN, AND YOUR SERVER LOG
IF ANYTHING BREAKS ITS MY BUG, NOT CARPET'S, DONT BLAME GNEMBON
IF YOU DONT LIKE IT FORK THE CODE, ITS MIT FOR A REASON
TO REPORT BUGS OPEN AN ISSUE ON THE GITHUB REPO
now go enjoy your carpet
if you enjoy this mod
Donate me: ko-fi.com/xxduckyxx
license:
MIT, same as the carpet mod this is built on
Carpet is copyright 2020 gnembon and carpet contributors, MIT licensed, and this fork keeps that notice in the LICENSE file as required, gnembons mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧