Skip to content

wh0oo/scarpet-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scarpet Scripts

These are lightweight scarpet scripts for Minecraft servers running Carpet that add QOL without needing Fabric mods

Current Scripts

ping.sc

Adds a /ping command.

Commands

/ping

Shows your current ping in milliseconds.

/ping <player>

Shows another online player's ping.

Features

  • Uses Carpet/Scarpet's built-in player ping query
  • Supports online player autocomplete
  • Configurable cooldown
  • Available to all players
  • No separate mod required beyond Carpet

seen.sc

Adds a /seen <player> command.

Commands

/seen <player>

Shows whether a player is currently online, or when they were last seen.

Features

  • Tracks player joins and disconnects
  • Configurable cooldown
  • Saves data using Scarpet app data
  • Supports autocomplete from previously seen players
  • Case-insensitive lookups
  • Marks online players offline when the server shuts down
  • Available to all players

Data File

The seen data is stored in an NBT file:

world/scripts/seen.data.nbt

Usage

Ping

/ping

Example output:

Pong! Your ping is 42 ms
/ping dontflex

Example output:

dontflex's ping is 42 ms

Seen

/seen dontflex

Example output if online:

dontflex is online right now.

Example output if offline:

dontflex was last seen: 2026-06-12 19:45:03 UTC

Example output if no data exists:

No seen data for dontflex.

License

Use, modify, and share freely.

About

scarpet scripts for a Minecraft server

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages