跳到正文

Carpet LAB Addition

作者:chililisoup

Carpet features created for the LAB SMP

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 的其他作品

查看全部 →