Difference between revisions of "TrainCarts/Signs/Effect"

From BergerHealer Wiki
Jump to navigation Jump to search
(Prepared the page for translation)
Line 1: Line 1:
[[TrainCarts/Signs|« Go back]]
+
<languages/>
 +
<translate>
 +
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
 +
 
  
 
== Description ==
 
== Description ==
  
This sign can be used to activate an effect configured in the train's [[TrainCarts/Attachments|attachments]] when a train enters or redstone power is supplied.
+
This sign can be used to activate an effect configured in the train's [[Special:MyLanguage/TrainCarts/Attachments|attachments]] when a train enters or redstone power is supplied.
 +
 
  
 
== Syntax ==
 
== Syntax ==
 +
 +
</translate>
 
{{sign|[+train]/[+cart]|effect|<name>|<name>}}
 
{{sign|[+train]/[+cart]|effect|<name>|<name>}}
 +
<translate>
 +
  
 
=== First line ===
 
=== 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)
 
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 ===
 
=== Second line ===
  
 
''effect'', followed up by an optional '''playback speed''' (''pitch'') and '''intensity''' (''volume''). Values of 1.0 are the defaults. Specifying '''effect stop''' will abort playback of the effect if possible.
 
''effect'', followed up by an optional '''playback speed''' (''pitch'') and '''intensity''' (''volume''). Values of 1.0 are the defaults. Specifying '''effect stop''' will abort playback of the effect if possible.
 +
  
 
=== Third and fourth lines ===
 
=== Third and fourth lines ===
Line 24: Line 34:
 
* Particle Attachment
 
* Particle Attachment
 
* Effect Loop Attachment
 
* Effect Loop Attachment
 +
  
 
== Legacy ==
 
== Legacy ==
 +
 
An old version of this sign still exists which can only play (some) Bukkit effects. For this, use ''beffect'' on the second line. ''peffect'' plays the effect at the player, and ''meffect'' every tick as a train drives over the sign.
 
An old version of this sign still exists which can only play (some) Bukkit effects. For this, use ''beffect'' on the second line. ''peffect'' plays the effect at the player, and ''meffect'' every tick as a train drives over the sign.
  
 +
</translate>
 
{{sign|[+train]/[+cart]|beffect|note|}}
 
{{sign|[+train]/[+cart]|beffect|note|}}
 +
<translate>
  
 
These effects can be played:
 
These effects can be played:
Line 34: Line 48:
 
* A particle effect (See: [https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html Available Effects])
 
* 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)
 +
</translate>

Revision as of 19:25, 8 October 2023

Other languages:

« Go back


Description

This sign can be used to activate an effect configured in the train's attachments when a train enters or redstone power is supplied.


Syntax

Signtemplate.png
[+train]/[+cart]
effect
<name>
<name>


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 playback speed (pitch) and intensity (volume). Values of 1.0 are the defaults. Specifying effect stop will abort playback of the effect if possible.


Third and fourth lines

One or two names of effect attachments to activate. In the Attachment Editor, go to the general menu (hamburger) and name the effect attachment. You can then put that name here to activate it.

Examples of supported attachments:

  • Sound Attachment
  • Particle Attachment
  • Effect Loop Attachment


Legacy

An old version of this sign still exists which can only play (some) Bukkit effects. For this, use beffect on the second line. peffect plays the effect at the player, and meffect every tick as a train drives over the sign.

Signtemplate.png
[+train]/[+cart]
beffect
note

These effects can be played: