linushsao wrote:for my childs,I try to hack the code of NPC-TRADER of 「 [Mod] MOB Framework [2.3.6] [mobf]」 , so I need to check NPC-TRADER to comfirm my hack. But I always can't find He's location.
What are you trying to do with the trader? The coordinates where the trader is can be obtained in diffrent ways. If you just want to find a trader on your map somewhere, there's no way but exploring (or spawning one). Traders that have not yet been spawned do not yet exist. If you want to access the trader's position from a mod, it depends on what you've got to start with.
Casimir wrote:There is a command called "/spawnentity", just add the name of the trader as it is used in the mod.
That would spawn him without his house. Better use "/builthouse <pos> <blueprintnumber> <mobname|optional>", i.e. "/buildhouse 0,0,0 0"
I'm working on a simplified version of a trader similar to that in mobf but without any dependencies.