23 questions
0
votes
1
answer
272
views
How to add movement to my Pocketmine-MP entity?
I've added my own entity to pocketmine-mp server:
class DinosaurEntity extends Entity { ... }
and would like to add random moves for my entity. I don't want to implement my own movement logic. It ...
-4
votes
1
answer
243
views
How can I create a WorldBorder using PocketMine-MP? [closed]
I'm trying to make a world border by getting player coordinate and stopping them from moving past that coordinate. What should I do? Using Pocketmine 4.0.0
I've tried to find a method to get the ...
0
votes
1
answer
184
views
What is the namespace for PluginBase file in PocketMine?
I can't find the namespace for PluginBase in PocketMine-MP
I expected it to be found, but Error because it was unfound
0
votes
2
answers
705
views
Pocketmine: BlockPlaceEvent, add items when chest is placed
What I want to do is some kit, whenever I place a chest, it will fill items inside it. This is my code so far.
public function onBlockPlace(BlockPlaceEvent $event): void {
$dataConfig = ...
0
votes
1
answer
230
views
PocketMine (PHP) Command Context possible?
As of 1.13 of Minecraft (and im not sure when it came out for bedrock) they added in the "command ui" with syntax and autofilling for commands (see below)
Command Syntax
I know on java ...
0
votes
1
answer
82
views
PHP trying to push an instance but looking for it in the local folder
If it isn't obvious by the way the title of this post is phrased, I understand what is going wrong, but I do not know the vocabulary necessary to phrase a question to get an answer through google.
...
0
votes
0
answers
200
views
Syncing Heroku's ephemeral storage to Dropbox
I'm not sure that this is, well, the ordinary use case for Heroku. I want to run a PocketMine (Minecraft Bedrock Edition server) on Heroku. I've compiled a new PHP build, compiled the Phar, and ...
3
votes
1
answer
184
views
Problem Using a Integer From a config.yml file as a variable in a mt_rand() function (pocketmine plugin)
I'm trying to use a config file to store a minimum and maximum value that can be changed by users for easier changing of a randomizing code. This is being used for a PocketMine-MP plugin that will ...
0
votes
1
answer
301
views
did not find expected key (line 93, column 9), context while parsing a block mapping (line 84, column 9)"
i Own A Minecraft Bedrock PocketMine-MP Server, Today i Started Making The Crates, i Looked In Console To Be Sure There isn't Any Problem but i Saw This Error:
did not find expected key (line 93, ...
-2
votes
2
answers
507
views
How to delay without stop
<?php
namespace Test;
class A {
public function T(){
sleep(1000);
//Code not possible for thread to perform
}
}
?>
But, When call method T, Program Stucking ...
1
vote
1
answer
200
views
How do you fix a docker image to run on Ubuntu 16.04?
I am working on creating a Docker image to run PocketMine-MP. The only issue is that once it is built and I attempt to run the image it gives this output. (which means it is not compatible with my ...
0
votes
1
answer
72
views
Getting the exact center of the currently being generated map while generating its chunks
I'm trying to get the center of the map while generating it to know when to set the blocks... (To make a circle of pillars)
There's currently no way that I know that can get the center of the map ...
0
votes
3
answers
5k
views
How do you upload a file (from url) to a Docker container?
How would somebody use the Docker Engine API to stop a container, upload a file (from a url) to a path in a container, then run the start command again? I am running this image. The intention is to ...
2
votes
1
answer
5k
views
How can I fix “standard_init_linux.go:187: exec user process caused "exec format error"” in Docker?
I have just made my first ever Docker Image to run pmmp/PocketMine-MP inside of Docker. When I try to the the container I get the following error:
[root@docker pmmp-docker]# docker run -it -p 19132:...
0
votes
1
answer
912
views
how to get fullpath of scandir() [duplicate]
when i scandir() it's return in array like this
Array(
[0]=>
string(8) "DevTools"
[1]=>
string(17) "LB-Particles.phar"
[2]=>
string(11) "NoGrifersDP"
[3]=>
string(12) "...