Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sky-min/imagetoparticle
ImageToParticle
https://github.com/sky-min/imagetoparticle
mcbe-plugin particle plugin pmmp pocketmine
Last synced: 4 months ago
JSON representation
ImageToParticle
- Host: GitHub
- URL: https://github.com/sky-min/imagetoparticle
- Owner: sky-min
- License: mit
- Created: 2022-05-08T09:46:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T13:39:17.000Z (about 2 years ago)
- Last Synced: 2024-10-09T23:04:25.618Z (4 months ago)
- Topics: mcbe-plugin, particle, plugin, pmmp, pocketmine
- Language: PHP
- Homepage: https://poggit.pmmp.io/p/ImageParticle/
- Size: 196 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Todo
- [x] roll
- [x] yaw pitch equal to entity yaw pitch# how to use
1. In resource_packages.yml, change force_resources to true.
2. this plugin load
3. image file put at plugin_data/ImageParticle/image/
4. Enter a file name at plugin_data/ImageParticle/Images.yml
5. server reboot[plugin_data example](https://github.com/sky-min/ImageToParticle/tree/master/example)
# API
## registerImageParticle
```php
use skymin\ImageParticle\particle\ImageParticleAPI;/** @see skymin\ImageParticle\utils\ImageTypes for $imageType*/
ImageParticleAPI::getInstance()->registerImage(string $name, string $imageFile, int $imageType);
```## sendImageParticle
```php
use skymin\ImageParticle\particle\ImageParticleAPI;
use skymin\ImageParticle\particle\EulerAngle;ImageParticleAPI::getInstance()->sendParticle(string $name, EulerAngle $center, int $count, float $unit, bool $asyncEncode);
```