Skip to content
Carpet LAB Addition

Quick rating

Community listing page, reviews may not be monitored by the author.

Carpet LAB Addition

By chililisoupOwner

No reviews yet

Carpet features created for the LAB SMP

Mod Loaders
Minecraft
26.3 26.2

About

Description

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