They don't really work - right now, they just stand still. If you punch them a few times, they die and respawn.
Any ideas on what I should make them do? I think I'll make them stare at and/or punch the nearest player tomorrow. I don't know how to make them move properly, as I don't know pathfinding yet.
Moving, I dot see any event for walking for players in the API...
Not really sure if it's there but if it really is... I'm blind :|
Hold down on NPCs, like dying a sheep. A menu pops up, and you can trade with golden ingots! Would that work?
If the menu isn't possible:
NPCs can spawn holding random items. Hold down a golden ingot on them, like dying a sheep, and you get the item they are holding (bread, steak, pick, etc.) in return for the ingot.
Hold down on NPCs, like dying a sheep. A menu pops up, and you can trade with golden ingots! Would that work?
If the menu isn't possible:
NPCs can spawn holding random items. Hold down a golden ingot on them, like dying a sheep, and you get the item they are holding (bread, steak, pick, etc.) in return for the ingot.
Will look into it. I'm not planning on adding trading yet though. I'll have to look to Citizens, the popular Bukkit plugin, for ideas.
Wow, haven't seen you in a while Also 500, does the Multiworld add Multiworld to the stable version or is it unlocking it in the dev version?
Dev version, of course. It's literally 5 lines of code to enable that feature in the Dev release. Shoghicp made his own world manager but I think mine's simpler.
Full confession: I'm just making this thread because I'm jealous of bilenmc's thread for his plugins.
I made these plugins for the latest version of Shoghicp's PocketMine server, which features multiworld. The dev release doesn't have a way to add or delete worlds, so I wrote these to test the feature.
Download all <- use if you can't download from the other links.
For all versions
Trampoline: Make the player bounce 4 blocks high when the player steps on a magenta wool block. Works with both 1.2.2 stable and 1.3 dev!
Download: (right-click and choose "Save As") https://raw.github.c.../trampoline.php
Dev release only
These are pretty much useless on the normal release - they might be useful when a new PocketMine is officially released.
To run these, you'll need the dev version of PocketMine, which allows multiworld support.
MultiWorld: The simplest multiworld loader ever! Loads all worlds found under the worlds/ folder of a PocketMine dev installation.
Just copy a world into worlds/, shutdown the server, and reload.
Need a new world generated? Just create a blank folder.
Please update your plugins to 1.3.1 Dev Release of PocketMine. They crash when used on the server!
U gotta wait It's hard cause quite a few functions have been replaced, and the major problem is "server.tick" is deprecated
It's annoying how we need to use the replaced version of it :|
Moving, I dot see any event for walking for players in the API...
Not really sure if it's there but if it really is... I'm blind :|
Why not repeatedly change the user's x, y and z?
Entity.move. I'm not using it though.
(Whispers "I'm not actually dead, I'm just in hiding and watching you all...)
I see it now
Could u possibly tell me how u found a player's location?
$data->x, $data->y and $data->z. The data passed in is just the Entity attached to the player.
Feel free to look at the source.
Hold down on NPCs, like dying a sheep. A menu pops up, and you can trade with golden ingots! Would that work?
If the menu isn't possible:
NPCs can spawn holding random items. Hold down a golden ingot on them, like dying a sheep, and you get the item they are holding (bread, steak, pick, etc.) in return for the ingot.
Will look into it. I'm not planning on adding trading yet though. I'll have to look to Citizens, the popular Bukkit plugin, for ideas.
Dev version, of course. It's literally 5 lines of code to enable that feature in the Dev release. Shoghicp made his own world manager but I think mine's simpler.
That's all it does for now.
(Whispers "I'm not actually dead, I'm just in hiding and watching you all...)
I wrote these before dev became the released 1.3; changed the OP to reflect that.
Looks like i tested my plugins too many times...
* Popular Plugins *
2-7 are all my plugins >.>
U gotta wait It's hard cause quite a few functions have been replaced, and the major problem is "server.tick" is deprecated
It's annoying how we need to use the replaced version of it :|