Name | Adjust |
Related Guide Page | https://guide.denizenscript.com/guides/basics/mechanisms.html |
Syntax | adjust [<ObjectTag>/def:<name>|...] [<mechanism>](:<value>) |
Short Description | Adjusts an object's mechanism. |
Full Description | Many object tag types contains options and properties that need to be adjusted.
Denizen employs a mechanism interface to deal with those adjustments. To easily accomplish this, use this command with a valid object mechanism, and sometimes accompanying value. Specify "def:<name>" as an input to adjust a definition and automatically save the result back to the definition. You can optionally adjust a MapTag of mechanisms to values. To adjust an item in an inventory, use inventory, as '- inventory adjust slot:<#> <mechanism>:<value>'. Note that that is only for items, not actual inventories. To adjust an actual InventoryTag mechanism, you should still use the normal 'adjust' command, not 'inventory adjust'. |
Related Tags | <entry[saveName].result> returns the adjusted object.
<entry[saveName].result_list> returns a ListTag of adjusted objects.
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | mechanism |
Group | core |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/core/AdjustCommand.java#L31 |