-
-
Couldn't load subscription status.
- Fork 1.2k
Starscript
MineGame159 edited this page Aug 5, 2021
·
10 revisions
Starscript is the formatting language currently used in Discord Presence.
Full syntax can be found here.
A list of standard variables can be found here.
-
version: Meteor version. -
mc_version: Minecraft version. -
fps: Current FPS.
-
player: Username. -
player.health: Player's health. -
player.hunger: Player's hunger. -
player.speed: Speed in blocks per second. -
player.pos: Player's position formatted asX: 0 Y: 0 Z: 0. -
player.pos.x: Player's X position. -
player.pos.y: Player's Y position. -
player.pos.z: Player's Z position. -
player.yaw: Player's yaw rotation. -
player.pitch: Player's pitch rotation. -
player.hand: Player’s main held item. See Item. -
player.offhand: Player’s offhand held item. See Item. -
player.get_item(slot): Item in the specified slot. See Item. -
player.count_items(id): Number of items in the entire inventory.
-
crosshair_target.type: Eithermiss,blockorentitystring. -
crosshair_target.value: Either empty string, Block or Entity.
-
server: Server name. -
server.tps: Server's TPS. -
server.time: Server's time formatted as16:00. -
server.difficulty: Server's difficulty. -
server.player_count: Server's player count.
Various variables and functions can return more complex objects which fields can be accessed using .. An empty means the object iself and not accessing any field.
-
: Item's name formatted asStone 32xor justStoneif count is 1. -
name: Item's name. -
count: Number of items.
-
: Block's name. -
pos: Block's position formatted asX: 0 Y: 0 Z: 0. -
pos.x: Block's X position. -
pos.y: Block's Y position. -
pos.z: Block's Z position.
-
: Entity's name. -
health: Entity's health or 0 if the entitiy doesn't have health. -
pos: Entity's position formatted asX: 0 Y: 0 Z: 0. -
pos.x: Entity's X position. -
pos.y: Entity's Y position. -
pos.z: Entity's Z position.