ParticleAnimationLib Guides
SoruceModritnh page
  • Welcome
  • Getting Started
    • Quickstart
  • Commands
    • General Information
    • AnimatedBall command
    • AnimatedCircle command
    • Arc command
    • Cone command
    • Cuboid command
    • Donut command
    • Image command
    • Line command
    • Sphere command
    • Text command
    • Vortex command
  • Devolopment Guide
    • Coming soon!
Powered by GitBook
On this page
  • Description
  • Demo effect
  • Command Structure
  1. Commands

AnimatedBall command

Normal effect

PreviousGeneral InformationNextAnimatedCircle command

Last updated 2 months ago

Description

This effect spawns an animated ball, an effect that makes particles spiral around into tracing the surface of sphere. You can also make ovals.

To use this command you will need to type:

/pal animateball <paramters...>

Demo effect

To display the demo effect use:

/pal animatedball demo <particle> <posX> <posY> <posZ> <duration>

This will create a 1x1 ball at the selected coordinates, using the selected particles, running for the selected duration of time

Command Structure

The basic command structure for this effect is:

/pal animatedball <particle> <pos> <count> <perIteration> <size> <factors> <rotation> <duration>

or

/pal animatedball <particle> <pos> <count> <perIteration> <size> <duration>

  • count is the total number of particles that will be displayed in the spiral that makes up the sphere, and the more there are the more the curves will be evident, and the slower the animation will go

  • perIteration is the number of particles that are drawn each time the spiral is drawn. They can be more or less than the total count above, and will produce interesting effects. Best way to understand what these two numbers do is trying out different combinations!

  • size defines how big the sphere is. It acts like a multiplier, so the higher the bigger the sphere will be. If it's between 0 and 1, the sphere will be smaller.

  • factors are a series of 3 values defining how big in each direction the sphere should be. This can be used to create some ovals for example. (Remember that they are all double values so you will need to addtì the floating point!). If the factors are 0, the sphere won't be visible. This parameter is optional, and defaults to (1.0,1.0,1.0)

  • rotation is another set of three double values like before, but handles the rotation of the ball. They are expressed in radians, so PI (3.14) = 180°. Keep in mind that if the sphere is uniform (aka a true sphere, with all the same factors) you won't see the rotation. This parameter is optional, and by default doesn't rotate anything.

particle , duration and pos have already been explained in the .

General Information page
Page cover image
Cover

Example using count = 5 and perIteration = 100

/pal animatedball minecraft:electric_spark ~ ~ ~ 5 100 1 3

Cover

Example using count = 500 and perIteration = 100

/pal animatedball minecraft:electric_spark ~ ~ ~ 500 100 1 3

Cover

Example using factors of 1 2 1, creating an oval

/pal animatedball minecraft:electric_spark ~ ~ ~ 500 100 1 1 2 1 0.0 0.0 0.0 3

Cover

Example using factors of 1 2 1, creating an oval, and rotating it

/pal animatedball minecraft:electric_spark ~ ~ ~ 500 100 1 1 2 1 2.0 0.0 0.0 3