Skip to content

sky-min/ImageToParticle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo

  • roll
  • 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

API

registerImageParticle

use skymin\ImageParticle\particle\ImageParticleAPI;

/** @see skymin\ImageParticle\utils\ImageTypes for $imageType*/
ImageParticleAPI::getInstance()->registerImage(string $name, string $imageFile, int $imageType);

sendImageParticle

use skymin\ImageParticle\particle\ImageParticleAPI;
use skymin\ImageParticle\particle\EulerAngle;

ImageParticleAPI::getInstance()->sendParticle(string $name, EulerAngle $center, int $count, float $unit, bool $asyncEncode);