I want to replace a villager with my custom mob when closing its' interface or punching it.
I got the check with the interface and punch but am missing the spawn method.
I'm passing on the position of the trader but what do I need to use to set the position for the new mob + how do I even summon it?
This is my first larger mod so please forgive me if thats a dumb question or it's missing information.