SetItemOption as Mechanic, for Crucible
Summary
A Mechanic to Add, Remove, or Set item Options (MM) Options (Crucible)
Usage
Custom Enchantments, Curses, and Misc
ie Curses:
- a Curse that makes it so this item can no longer be repaired, as it sets "PreventCrafting PreventAnvil" to true
ie Enchantment:
- a Enchantment that makes it so the item can not be destroyed by fire or lava, as it sets "FireResistant" to true
- a Enchantment that makes it so the item can not break, as it sets "Unbreakable" to true
ie Misc:
- the ability to dynamically set the stack size of an item, by changing the "StackSize" option
Value
Seems like a very powerful and versatile addition to the current Mechanic stack.
Implementation
A Mechanic, I'd imagine it working like this
Attribute | Aliases | Description | Default |
---|---|---|---|
option | options, o, type | the option to set, list of Options (MM), Options (Crucible) | ItemModel |
set | value, val | The value to set the Option to. Must be applicable for Option or the mechanic will fail. Should be surrounded in double-quotes if using spaces. Value can also include placeholders, even from PlaceholderAPI |
Netherite_sword |
slot | the current slot system needs updating, it's borderline unusable with only 0 to 35 | If target is a player defaults to the item in cursor, if there are no items in cursor it falls back to the item in hand. If target is a mob defaults to hand |
- setItemOption{Option=[option_name_here];set=[true/false/"string"/int];slot=[defaults to target cursor slot if target is a player, defaults to hand slot if target is a mob]} @self
defaults to a Netherite Sword cause the "/mmm" item browser uses a Netherite Sword as the icon