Difference between revisions of "TrainCarts/Signs/Effect"

From BergerHealer Wiki
Jump to navigation Jump to search
m (1 revision imported)
Line 20: Line 20:
  
 
The effects to play. These can be:
 
The effects to play. These can be:
* A sound effect (See: [https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/Sound.java#L13 Sound source file])
+
* A sound effect (See: [https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html Available Sounds])
* A particle effect (See: [https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/Effect.java#L14 Effect source file])
+
* A particle effect (See: [https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html Available Effects])
 
* ''link'', to play the fizz and smoke effects at once (link effect)
 
* ''link'', to play the fizz and smoke effects at once (link effect)
 
''Note: If someone finds a proper page for the sound and particle effects, please edit the above two links)''
 

Revision as of 20:30, 30 September 2022

« Go back

Description

This sign can play a particle or sound effect when a train enters or power is supplied.

Syntax

Signtemplate.png
[!train]/[!cart]
effect
<effect>
<effect>


First line

When [train] is used, the effect is played in all the minecarts of the train. When [cart] is used, the effect is only played at the minecart that is currently above the sign. When no minecarts are near when the sign is powered, the effect is played above the sign. (at the rails)

Second line

effect, followed up by an optional pitch and volume. Values of 1.0 are the defaults.

Third and fourth lines

The effects to play. These can be: