forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
EffectLib Base Image
JasperLorelai edited this page Jan 14, 2024
·
2 revisions
These are the base options for image effects.
Option | Default |
---|---|
type |
"repeating" |
particle |
"redstone" |
period |
2 |
iterations |
200 |
Option | Description | Type | Default |
---|---|---|---|
fileName |
An image URL, or a path to an image file, starting from plugins . Usually people make an images folder within MagicSpells and load their images with plugins/MagicSpells/images/<fileName> . |
String | |
transparency |
Defines whether to check for transparent pixels. | Boolean | false |
frameDelay |
Defines how many ticks to show each frame. | Integer | 5 |
stepX /stepY
|
Each stepX/stepY pixel will be shown. Saves packets for high resolutions. | Integer | 10 |
size |
To scale the image down. | Float | 1/40 |
enableRotation |
Defiens whether to enable rotation. | Boolean | true |
rotation |
Define a fixed rotation to apply. Format: x,y,z . |
String | |
orient |
Defines if the image should orient to face the player's direction. | Boolean | true |
orientPitch |
Defines if the image should face in the same direction as the location, obeying yaw and pitch. | Boolean | false |
plane |
Defines what plane it should rotate on. May be: X , Y , Z , XY , XZ , XYZ , or YZ . |
String | "XYZ" |
angularVelocityX |
Turns the effect by this angle each iteration around the x-axis. | Double | PI / 200 |
angularVelocityY |
Turns the effect by this angle each iteration around the y-axis. | Double | PI / 170 |
angularVelocityZ |
Turns the effect by this angle each iteration around the z-axis. | Double | PI / 155 |