SimpleMapRenderer
Incompatible con la versión actual de PocketMine-MP — Could not load plugin 'SimpleMapRenderer': Incompatible API version (plugin requires one of: 3.0.0) · Probado en PocketMine-MP 5.50.0 (PHP 8.4.27).
SimpleMapRenderer
Simple Map Plugin for PocketMine-MP
How to use
Just put the plugin on plugins folder and enjoy it!
API
Get MapFactory instance
$factory = \alvin0319\SimpleMapRenderer\MapFactory::getInstance();
Get MapData object
mapData = mapId);
Register Map info
colors = []; y = 0; y++){ for(x < 128; x++){ colors[] = new \pocketmine\utils\Color(mt_rand(0, 128), mt_rand(0, 128), mt_rand(0, 128)); } } mapId, center);
mapData);
Get block color
x, z); block);
Save image file
colors = []; for(y < 128; y++){ for(x = 0; x++){ colors[] = new \pocketmine\utils\Color(mt_rand(0, 128), mt_rand(0, 128), mt_rand(0, 128)); } } \alvin0319\SimpleMapRenderer\util\ImageUtil::toPNG(filePath, $colors);
Note
$mapId cannot overlap with an existing ID.
- The $color must be a two-dimensional array from 0 to 128. (ex: [y][x] = Color)
To-Do
- Implement MapDecoration (tracking player, mob, etc...)