McPets - 4.1.2
MythicMobs - 5.6.2
MC/Server - 1.20.4
I am using Skript and with this, my intention is to make a custom pet item. That when right clicked you get the pet it is associated with.
So far, I successfully was able to retrieve the icon of a pet by doing
import:
fr.nocsy.mcpets.data.Pet
fr.nocsy.mcpets.data.Items
fr.nocsy.mcpets.mythicmobs.mechanics.GivePetMechanic
command /test:
trigger:
set {_pet} to Pet.getFromId("Wolfhawk_Dire")
set {_info} to Items.petInfo({_pet})
give player {_info}
Looking through the source code, I see the public class GivePetMechanic as well as the public GivePetMechanic(MythicLineConfig config)
However, I do not know what the config is or how/where to access it to be used for the function.
That is really the only part I need help with, getting the config and using the GivePetMechanic to give a player a pet