介绍
中文介绍正在准备中,下面暂时显示原文。
Carpet features created for the LAB SMP, as we need them.
Carpet rules
noteBlocksBroadcastSigns
- Makes note blocks with signs standing on top send the sign’s text in chat when triggered.
- Requires the first line on the front of the sign to be a broadcast marker:
[BROADCAST] - The broadcast marker can optionally supply a radius between 1 & 48:
[BROADCAST 16] - Default broadcast radius is 24.
shulkerBoxesDoNotBreakPaintings
- Makes shulker boxes not break paintings or item frames when opening into them.
Scarpet events
__on_player_message_broadcast(player, message)
- Triggers right before a player message is broadcast to the server.
- Can be cancelled by returning ‘cancel’, which prevents the message from being sent.
- Useful for making changes to chats before they’re sent.
__on_player_edits_sign(player, block)
- Fires after a player edits a sign, after the vanilla text changes take place.
- Can be used to add custom sign formatting.
- Example script
Scarpet functions
encode_snbt(expr, force?)
- Essentially the same as
encode_nbt(expr, force?), except it allows heterogeneous lists - This is done to bring it in line with vanilla’s new NBT format
常见问题
Carpet LAB Addition 支持哪些 Minecraft 版本?
Carpet LAB Addition 支持 Minecraft Java 版 1.20–26.3,共 19 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Carpet LAB Addition 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
chililisoup 的其他作品
查看全部 →
Big Sign Writer
by chililisoup
轻松在告示牌上书写大型多行文字和符号!
24.9万
1 个月前
Modrinth · CurseForge
Carpet: NeoForged
by chililisoup
非官方 Carpet 模组 NeoForge 移植版
20.6万
1 年前
Modrinth · CurseForge
Condiments
by chililisoup
加入各种原版增强功能,为模组版Minecraft增添新趣味!
2.2万
7 个月前
Modrinth · CurseForge
Creative Crafting Menus
by chililisoup
一款创意模式便利性模组,添加了便于访问的合成菜单,并针对创意模式进行了优化。
1.4万
20 天前
Modrinth · CurseForge
评论
登录后评论和评分