Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
    • Skills
    • Mechanics
  • SetItemNBT

SetItemNBT · Changes

Page history
updated layout and informations authored Apr 16, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 19 additions and 7 deletions
+19 -7
  • Skills/Mechanics/SetItemNBT.md Skills/Mechanics/SetItemNBT.md +19 -7
  • No files found.
Skills/Mechanics/SetItemNBT.md
View page @ 1b89a01c
## Description
Sets an NBT value on an item
## Attributes
| 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
```yaml
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{key=some.other_key;value=double/5}
```
```yaml
Skills:
- setItemNBT{key=some.other_key;value=double/5} @self
```
## Aliases
- [x] setSlotNBT
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • ResourcePack Generator
  • World Generation
Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions
Placeholders
  • Placeholders