Skip to main content

Questions tagged [pocketmine]

PocketMine is a server software written in PHP for Minecraft: PE, also developed into other derivatives (known as spoons). Use this tag for any questions related to plugin development for PocketMine or any of its spoons. If your question may be affected by the spoon you are using, remember to specify it; otherwise PMMP is assumed. This tag can also be used by questions for tools related to PocketMine.

-1 votes
0 answers
19 views

How to search GitHub for a code of a particular API version only?

I regularly search GitHub for PHP source code of PocketMine addons. I use the following URL to find what I need: https://github.com/search?q=pocketmine+%s+language%3APHP&type=code&l=PHP In ...
LA_'s user avatar
  • 20.3k
0 votes
0 answers
32 views

How to prevent the entity from sinking to the ground? - PocketMine

Here is my entity you can look at this on that image my entity is not normally can stand on the ground, and I have added code to spawn the entity and i want to be able to stand normally in the ground ...
pixelwhiz's user avatar
0 votes
1 answer
133 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 ...
LA_'s user avatar
  • 20.3k
-4 votes
1 answer
178 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 ...
NotU's user avatar
  • 1
0 votes
1 answer
117 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
NotU's user avatar
  • 1
0 votes
2 answers
614 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 = ...
AdolfJames Urian's user avatar
0 votes
1 answer
169 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 ...
I dont know how to ask google's user avatar
0 votes
1 answer
69 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. ...
I dont know how to ask google's user avatar
0 votes
0 answers
187 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 ...
MilkyDeveloper's user avatar
3 votes
1 answer
170 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 ...
Jviguy's user avatar
  • 33
0 votes
1 answer
269 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, ...
MasterBen's user avatar
-2 votes
2 answers
483 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 ...
Verify System Email's user avatar
1 vote
1 answer
191 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 ...
user avatar
0 votes
1 answer
62 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 ...
CortexPE's user avatar
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 ...
user avatar

15 30 50 per page