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.

PocketMine is a server software for Minecraft: PE and Minecraft: Windows 10 Edition, written in PHP, originally for documentation purpose. It has a versioned plugin API that allows changing of PocketMine's behaviour.

Target API

This tag is mainly used by questions that involve developing plugins with the PocketMine plugin API, which may refer to many versions. Before 2014, an older API (example) was used, but it is obsolete now and is not covered by this tag.

Since late 2015, after inactivity from the main developer, a large number of PocketMine derivatives/variants (a.k.a. spoons) emerged, which caused a great variant in API. PMMP was semi-officially recognized as the official derivative, so if not specified, it is assumed that a question tagged with pocketmine is about the PMMP plugin API. Usage of spoons should be clarified, because they have slightly different API.

As StackOverflow aims to let questions be meaningful for future readers, the API should be specified too.

Other than plugins

There might also be other things associated with PocketMine that suit themselves on StackOverflow. These include PocketMine GUI wrappers, installers, etc. They are also included in this tag, but are restricted to programming-related. For installation of PocketMine, etc., use other sites such as SuperUser instead.

Questions can also refer to Poggit, the CI for PocketMine plugins and plugin release platforms, but must conform to be programming-related.

Useful links

24 questions
4
votes
1 answer

How to give docker container write/chmod permissions on mapped volume?

I have a synology NAS which has docker support and wanted to run some docker containers (I'm pretty new to Docker) on it. For example pocketmine-pm (but I believe I have the write issue also with other containers). I created a volume on the host and…
Patric
  • 2,789
  • 9
  • 33
  • 60
3
votes
1 answer

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 spawn a player at a random position and have their…
Jviguy
  • 33
  • 1
  • 3
2
votes
1 answer

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:19132 -p 19132:19132/udp --name pmmp…
user7885981
2
votes
1 answer

How to create commands with localized description in PocketMine plugins?

How to create commands with translated description or usage using the PocketMine API in plugins? In vanilla commands, strings of translation codes such as %pocketmine.command.help.description are passed. They are references to the lang file in the…
SOFe
  • 7,867
  • 4
  • 33
  • 61
1
vote
1 answer

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 machine) standard_init_linux.go:185: exec user…
user7885981
1
vote
1 answer

php - Store an Array Containing Objects

am using the PocketMine API (not for web), and i have ran a function that returns an array, storing multiple pocketmine\item\Item arrays. This could be thought as an array storing objects. Basically, what I need to do is store this array, but not in…
Samueljh1
  • 129
  • 1
  • 11
1
vote
1 answer

Display multidimensional array as bullet points

I need help designing a recursive function that does: Displays a multidimensional array recursively Must use bullet points e.g.
    and
  • Text must link to a document. For example text "1. Hi" will be redirected keeping its directory…
Michael Yoo
  • 489
  • 1
  • 6
  • 14
0
votes
0 answers

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 looks more easy to clone the logic from some…
LA_
  • 19,823
  • 58
  • 172
  • 308
0
votes
1 answer

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
  • 1
  • 1
0
votes
2 answers

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 = CustomConfig::get("data.yml"); $block =…
AdolfJames Urian
  • 97
  • 1
  • 1
  • 9
0
votes
1 answer

Failed loading opcache.so:could not open shared object file

Who can be my server developer?you will get dev rank and op on my server.Who can help me to fix php error when i use my own server software?
QMoon DEV
  • 1
  • 1
  • 1
0
votes
1 answer

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 edition it is possible to hijack the "Command Context"…
0
votes
1 answer

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. Effectively what it boils down to is that I have a…
0
votes
0 answers

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 scripted a compatibility layer between it and Heroku,…
MilkyDeveloper
  • 608
  • 1
  • 6
  • 13
0
votes
1 answer

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, column 9), context while parsing a block mapping…
MasterBen
  • 9
  • 1
1
2