/goop mmoitems addGemSlot <color> <player> <slot>
Can also choose what color.
A vanilla chainmail helmet to which Gem Slots were added.
Technically speaking, MMOItems Slots are not colors, but words; strings.
This is the exact string the gem slot will have. (Fancy way of saying it won't parse color codes, &aGreen wont equal §aGreen)
The player whose inventory items will be given slots.
Supports a few vanilla selectors.
The slot in the player's inventory that will be checked. To read on slots see Inventory Slots.
Examples: mainhand, offhand, chest, feet, any, 0-8, ec*
Vanilla items will be converted into MMOItems if you attempt to add a Gem Slot to them.
However, Gem Slots are not supported by every MMOItem type (you cant put one on Miscellaneous, for example).
In this case, the command will fail.
They will be transformed into the most appropiate MMOItem type as explained in the MMOItem Converter.
There is no limit to how many Gem Slots an item can have, so if you want to limit this, see the example below.
Apparently some people put spaces in their gem slots, say &bLight Blue.
For this command you must replace spaces by underscores
Thus this example would be &bLight_Blue
When running this command from MythicMobs skills, beware that MythicMobs parses color codes before sending commands to the console, but also before parsing MM placeholders.
When you are creating your Gems in /mmoitems browse, you add a &cRed gem slot.
If you use the mechanic command{c="goop mmoitems addGemSlot &cRed <caster.name> mainhand"}, MythicMobs will parse the color code before sending it and you will end up adding a slot incompatible with your Gem Stone, §cRed.
To avoid this, and effectively add a &cRed slot, just run the command the following way (GooP parses <$nd> into &):
MCM_RedSlot:
Skills:
- command{c="goop mmoitems addGemSlot <$nd>cRed <caster.name> mainhand"}
/goop mmoitems addGemSlot &eYellow atuosto mainhand
Will add a &eYellow empty gem slot to the item player atuosto is holding.
/goop mmoitems addGemSlot &aGreen gunging *,ec*
Will add a &aGreen empty gem slot to every item player gunging has in their inventory and enderchest.
/goop mmoitems addGemSlot &bLight_Blue cocopad offhand
Will add a &bLight Blue empty gem slot to every item player cocopad has in their offhand.
This will be a consumable that will add gem slots when applied (similar to how identify scrolls identify items).
It will do this upon being 'applied' (GooP)
Will increase its gem slot amount (GooP)
Gem Slots (MMOItems)
Despite it being called a 'consumable' earlier, you want it to be of MMOItem type MISCELLANEOUS or something that does not automatically consume.
Set its OnApply Command to (for this example):
goop mythicmobs runSkillAs GemSlot_Add_Direct %player% vCOLOUR=&6Golden;TYPE=MISCELLANEOUS;ID=GOLDEN_SHELLNotice the dynamic variables section of the command (semicolon-separated list that starts with a v):
COLOUR: Color of the Gem Socket that will be added.
TYPE: MMOItem Type of this gemstone-adder item.
ID: MMOItem ID of this gemstone-adder item.
If you wish, you may restrict it to certain item types with a mask.
That you can also find in this pastebin:
plugins/MythicMobs/Skills/any-file.yml
# Begin the whole process by checking the amount of gem stones in the target itemGemSlot_Add_Direct: Skills: # Start with every score in the defaults. - settargetscore{objective=Cgemslots;value=0} @Self{targetcreative=true} # Count the number of Gems already in the item in there, to not allow more than three. (If there is none, it will return 0) - command{c="goop mmoitems countGems true <target.name> <goop.slot.provided> Cgemslots"} @Self{targetcreative=true} # Let the Commands run - delay 1 # Proceed to next skill - skill{s=GemSlot_Add_MaxTest_Direct}The very second thing ever supported by GooP. MMOItems developer Jules, upon being contacted, was kind enough to release a new dev version in which the GemStoneData constructor was now public, in order for anyone (me) to be able to access it and modify it.
I spent at least 40 hours going through every single unicode character, and in my opinion, ⃣ is the best for empty socket gem lore:
plugins/MMOItems/language/stats.ymlempty-gem-socket: '&8⃣ &7Empty # &7Gem Socket'filled-gem-socket: '&7&l&m⃣&7 #'