|
## Description
|
|
## Description
|
|
Sets an NBT value on an item
|
|
Sets an NBT value on an item
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
## Attributes
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|----------------|-------------|---------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| key | | The NBT key | NONE |
|
|
| equipslot | slot, s | The [slot] where the equipment you want to set the NBT of is located | |
|
|
|
|
| key | k | The NBT key to set. Can be a path | |
|
|
|
|
| value | val, v | The value to set | |
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
## Examples
|
|
```yaml
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- setItemNBT{key=some_key;value=<caster.name>} @self ~onUse
|
|
- setItemNBT{key=some_key;value=<caster.name>} @self
|
|
|
|
```
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
- setItemNBT{slot=HEAD;key=some_key;value=int/5} @self
|
|
- setItemNBT{slot=HEAD;key=some_key;value=int/5} @self
|
|
|
|
```
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- setItemNBT{key=some.other_key;value=double/5} @self
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- setItemNBT{key=some.other_key;value=double/5}
|
|
## Aliases
|
|
``` |
|
- [x] setSlotNBT |
|
\ No newline at end of file |
|
\ No newline at end of file |