Equipment
MMOItems Required: This feature only works with this external plugin.
Equip extra items by putting them into your Container
For ring/accessory inventories and all things of the sort; And also potions that give temporal MMOItem stat buffs (see tips)!
Container to Equip Insignias
Insignia Slot
Insignia MMOItem with some Bonuses
The basics
For usage of the command, see the Config Equipment page. This is how you turn slot #11 into an equipment slot
/goop containers config equipment <container> 11 true
Once a slot has been deemed an 'Equipment Slot', any MMOItem the player puts in it will grant its stat bonuses to the player. Thats why it is important to use Masks to restrict which items can actually be stored there.
Restrictions
Suppose you want a player to require certain permission, or certain class, or certain level to be able to use an equipment slot, using restrictions you make a slot only be useable after level 35:
/goop containers config restrictions <container> 11 level 35..
Now, the player must first level up before gaining access to this slot.
Advanced Restrictions
What about a restriction that is easy to lose? Suppose you have classes Warrior, Rogue, and Mage:
/goop containers config restrictions <container> 11 class Warrior,Rogue
The player can equip items if they are a melee attacker, but as soon as they swich their class to Mage, they no longer meet the restrictions to use the equipment slot...
What happens to the item the player already had equipped?
There are four restriction behaviours that handle this — DROP, LOCK, TAKE, and DESTROY — which you choose using the /goop containers config restrictions command.
LOCK: The item is trapped inside the slot, unable to be taken out or switched.
Does not grant equipment bonuses anymore.
TAKE: The item can be retrieved, but it remains in the slot until the player manually takes it out.
Does not grant equipment bonuses anymore.
DROP: The item is forcefully given back to the player (or dropped into the ground if the player has no inventory space).
DESTROY: The item is destroyed, the slot becomes empty.
Example: Making a potion that applies MMOItem Stats (MMOItems)
This potion will give you 40% critical strike chance for 10 seconds, wow!
It will be a MMOItems consumable (MMOItems)
It will equip another MMOItem to grant stats inside an Equipment Container for 10 seconds (GooP)
The magic is in the command
goop unlockables unlock %player% SMOOTHIE_GAPPLE true true 10s oS= goop nbt setItem @s |Equipment|11 m CONBUFF GAPPLESMOOTHIE 1 oS= goop delay 205 goop mmoitems equipmentUpdate @s
#1 Unlock SMOOTHIE_GAPPLE Unlockable for player, stays unlocked for 10 seconds:
goop unlockables unlock %player% SMOOTHIE_GAPPLE true true 10s
#2 Set the item m CONBUFF GAPPLESMOOTHIE in slot #11 of player's container Equipment
goop nbt setItem @s |Equipment|11 m CONBUFF GAPPLESMOOTHIE 1
#3 Wait 10.25 seconds
goop delay 205
#4 Force equipment update of MMOItems (makes sure the player stops having 40% more crit chance)
goop mmoitems equipmentUpdate @s
Important prior setup
So, step #1 that unlocks a GooP Unlockable requires you to setup the container slot this way:
- 11||STORAGE||m CONSUMABLE ENCHANTED_APPLE_SMOOTHIE||1||EQPtrue||RCBDESTROY||RCCUCKBSMOOTHIE_GAPPLE||
Destroys the item when it becomes locked/goop containers config restrictions Equipment 11 behaviour DESTROY
To be 'unlocked,' the GooP Unlockable SMOOTHIE_GAPPLE must be unlocked/goop containers config restrictions Equipment 11 unlockable SMOOTHIE_GAPPLE
Important prior setup
And step #2 requires you to create a mmoitem m CONBUFF GAPPLESMOOTHIE:
It is this MMOItem where you put the stats the potion will grant, this example uses critical strike chance but you can use ANY MMOItem stats, including abilities if you want to get creative...