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
How to Install Carpet LAB Addition (Mod)
Carpet LAB Addition by chililisoup is verified for Fabric across Minecraft versions 1.20, 1.20.1, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11 (latest release: 1.5.0+26.3, file size: 33 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Carpet LAB Addition file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionshulkerBoxesDoNotBreakPaintings- Makes shulker boxes not break paintings or item frames when opening into them.
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.
encode_snbt(expr, force?) scarpet function- 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](https://minecraft.wiki/w/Java_Edition_1.21.5#Changes_2)
Bumped version to 1.21.5
hoppersDontStackShulkers rule- Use [Stackable Shulkers Fix](https://modrinth.com/mod/stackable-shulkers-fix) by KikuGie instead
Added
__on_player_edits_sign(player, block) scarpet event- Fires after a player edits a sign, after the vanilla text changes take place