From 69d2b6df11e6d9e2c3f42738609ac65250f6eb9a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 14 Jan 2021 01:15:14 +0000 Subject: [PATCH] Merge docs for 'Added nbt_storage() scapet function (#655) * Added storage() scarpet function Allows you to easly manage vanilla data command storage * Added docs and uniformed with scoreboard() storage(key, nbt) will now return the previous value to be consistant with the scoreboard() command. * Included imports * Renamed storage function to nbt_storage * Update docs/scarpet/api/Auxiliary.md Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>' --- docs/scarpet/Full.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index 0c427544..b762d444 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -3138,6 +3138,10 @@ Boolean, true if the entity is silent. Boolean, true if the entity is affected by gravity, like most entities are. +### `query(e, 'invulnerable')` + +Boolean, true if the entity is invulnerable. + ### `query(e, 'immune_to_fire')` Boolean, true if the entity is immune to fire. @@ -3618,6 +3622,10 @@ Silences or unsilences the entity. Toggles gravity for the entity. +### `modify(e, 'invulnerable', boolean)` + +Toggles invulnerability for the entity. + ### `modify(e, 'fire', ticks)` Will set entity on fire for `ticks` ticks. Set to 0 to extinguish. @@ -5006,6 +5014,12 @@ Available options in the scarpet app space: Scarpet related properties * `scarpet_version` - returns the version of the carpet your scarpet comes with. + +## NBT Storage + +### `nbt_storage()`, `nbt_storage(key)`, `nbt_storage(key, nbt)` +Displays or modifies individual storage NBT tags. With no arguments, returns the list of current NBT storages. With specified `key`, returns the `nbt` associated with current `key`, or `null` if storage does not exist. With specified `key` and `nbt`, sets a new `nbt` value, returning previous value associated with the `key`. +NOTE: This NBT storage is shared with all vanilla datapacks and scripts of the entire server and is persistent between restarts and reloads. You can also access this NBT storage with vanilla `/data storage ...` command. # `/script run` command Primary way to input commands. The command executes in the context, position, and dimension of the executing player,