Scoreboard - Objective Create (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 2.6.0

Syntax

objective with id %string% with [criteria] %criteria/string% named %string% [(for|of|from) %scoreboard%] [with render[ ]type %-rendertype%] [(with|in) [display[ ]slot] %-displayslot%]

Description

Create an objective. - `id` = The id used to keep track of your objective. - `criteria` = Uses a criteria object. If using an older server version, this will just be a string. - `named` = The display name of this objective. - `for scoreboard` = Optionally use a specific scoreboard (will default to the main scoreboard). - `render type` = How this objective will render, hearts or integer. - `display slot` = Where this objective will render.

Examples

set {_obj} to objective with id "le-health" with criteria {_c} named "&bLe &cHealth" with render type hearts in display slot player_list
set {_obj} to objective with id "my_objective" with criteria "dummy" named "OUR GOALS!" for scoreboard of player

View source