Page 1 of 1

Maybe It's a stupid question,but...

PostPosted: Tue Mar 04, 2014 16:14
by linushsao
Hi,all:

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.

Is there any way to find where the NPC-TRADER is? I need NPC-TRADER's location,tkx...

PostPosted: Tue Mar 04, 2014 17:14
by hoodedice
If you mean that you want to find out where the NPC trader is ingame, you need to spawn him first.

PostPosted: Tue Mar 04, 2014 17:28
by Casimir
There is a command called "/spawnentity", just add the name of the trader as it is used in the mod.

PostPosted: Tue Mar 04, 2014 19:06
by Sokomine
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.