Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameNote
Related Guide Pagehttps://guide.denizenscript.com/guides/advanced/notables.html
Syntaxnote [<object>/remove] [as:<name>]
Short DescriptionAdds or removes a named note of an object to the server.
Full DescriptionAdd or remove a 'note' to the server, persistently naming an object that can be referenced in events or scripts.
Only works for object types that are 'notable'.
Noted objects are "permanent" versions of other ObjectTags. (See: Language:ObjectTags)
Noted objects keep their properties when added.

Notable object types: CuboidTag, EllipsoidTag, PolygonTag, LocationTag, InventoryTag
Related Tags<server.notes[<type>]> Deprecated in favor of Tag:util.notes
<CuboidTag.note_name> Gets the name of a noted CuboidTag. If the cuboid isn't noted, this is null.
<EllipsoidTag.note_name> Gets the name of a noted EllipsoidTag. If the ellipsoid isn't noted, this is null.
<PolygonTag.note_name> Gets the name of a noted PolygonTag. If the polygon isn't noted, this is null.
<InventoryTag.note_name> Gets the name of a noted InventoryTag. If the inventory isn't noted, this is null.
<LocationTag.note_name> Gets the name of a noted LocationTag. If the location isn't noted, this is null.
Usage Example
# Use to note a cuboid.
- note <[some_cuboid]> as:mycuboid
Usage Example
# Use to remove a noted cuboid.
- note remove as:mycuboid
Usage Example
# Use to note a location.
- note <context.location> as:mylocation
Synonyms (Search Aid)notable
Groupcore
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/core/NoteCommand.java#L26