I'm trying to develop a plugin for the New API and I will need to create a fake player with a name tag over its head. I will need to be able to both create it and destroy it. It does not need to move (although it would be nice to know how i can do that too) and I also need to know how to make it spawn in s specific location. Lastly what would (if anything) I need to add to the pocketmine "use" list at the beginning of the plugin? Can anyone help me out?
Yep. I have almost everything ready. All I need to do besides this is finish the messages that he sends and then his sign placing, griefing, and building abilities. (those I think I know how to do )
Go right ahead as long as you dont use any of the code without my permision http://github.com/Comedyman937/HerobrineAlive/blob/master/Plugin
Look at The Introducer (at AmaiPlugins in my repo list). Although it is for the old API, the packet methods are similar.
Is it possible to get a random yet safe (no blocks that would be inside the fake player) location for me to teleport "Herobrine"?
I though that was only for players when they spawn normally (like player.spawn or player.respawn) but ill look at it a little closer
Would I have to use a Vector3? PHP: $x = rand(1, 256);$y = rand(1, 256);$z = rand(1, 256);$level->getSafeSpawn(vector3($x, $y, $z)); or would I just do PHP: $x = rand(1, 256);$y = rand(1, 256);$z = rand(1, 256);$level->getSafeSpawn($x, $y, $z);