<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FParameters</id>
	<title>Magic/Parameters - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FParameters"/>
	<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/Parameters&amp;action=history"/>
	<updated>2026-04-11T12:39:03Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mineplugin.org/index.php?title=Magic/Parameters&amp;diff=15843&amp;oldid=prev</id>
		<title>炫宙菌：​创建页面，内容为“== Spell Parameters ==  === Spell Properties ===  There are some base properties of a spell that can&#039;t be changed by cast parameters or wand overrides. These propert…”</title>
		<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/Parameters&amp;diff=15843&amp;oldid=prev"/>
		<updated>2021-08-20T13:03:31Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“== Spell Parameters ==  === Spell Properties ===  There are some base properties of a spell that can&amp;#039;t be changed by cast parameters or wand overrides. These propert…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Spell Parameters ==&lt;br /&gt;
&lt;br /&gt;
=== Spell Properties ===&lt;br /&gt;
&lt;br /&gt;
There are some base properties of a spell that can&amp;#039;t be changed by cast parameters or wand overrides. These properties go at the base level of a spell&amp;#039;s configuration, alongside &amp;amp;quot;actions&amp;amp;quot;, &amp;amp;quot;effects&amp;amp;quot; and &amp;amp;quot;parameters&amp;amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Please check out the [http://mine.elmakers.com/reference/#spells Reference Manual] for complete descriptions of all spell properties!&lt;br /&gt;
&lt;br /&gt;
== Wand Parameters ==&lt;br /&gt;
&lt;br /&gt;
=== Wand Customization ===&lt;br /&gt;
&lt;br /&gt;
Every wand is a unique item, though they may be created from templates. The survival templates can be found here:&lt;br /&gt;
&lt;br /&gt;
https://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/examples/survival/wands/&lt;br /&gt;
&lt;br /&gt;
Any of the parameters below may be used in a template, or applied to a wand in-game via any of the following commands&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/wand configure&lt;br /&gt;
/wand upgrade&lt;br /&gt;
/wandp @p configure&lt;br /&gt;
/wandp @p upgrade&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &amp;amp;quot;upgrade&amp;amp;quot; command will never lower a value on a wand, and is meant for in-game command block or other&amp;lt;br /&amp;gt;&lt;br /&gt;
use, to allow players to upgrade their wands, such incrase mana regeneration to a set limit, while not&amp;lt;br /&amp;gt;&lt;br /&gt;
affecting a wand that already has a higher xp regen.&lt;br /&gt;
&lt;br /&gt;
Note (mainly to other plugin developers) that these parameters are also the NBT tags used to store wand data, under the &amp;amp;quot;wand&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;
parent node.&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
&lt;br /&gt;
Please check out the [http://mine.elmakers.com/reference/#wands Reference Manual] for descriptions of all wand parameters!&lt;br /&gt;
&lt;br /&gt;
=== Messages ===&lt;br /&gt;
&lt;br /&gt;
All wand template names and descriptions are contained in messages.yml, &amp;lt;br /&amp;gt;&lt;br /&gt;
though non-builtin wands may include a default name and description in the wands.yml definition.&lt;br /&gt;
&lt;br /&gt;
== EffectLib Parameters ==&lt;br /&gt;
&lt;br /&gt;
EffectLib effects can be used via an &amp;amp;quot;effectlib&amp;amp;quot; block. The only required parameter in this block is &amp;amp;quot;class&amp;amp;quot;, referring to an EffectLib class.&lt;br /&gt;
&lt;br /&gt;
You can use the &amp;amp;quot;fxdemo&amp;amp;quot; spell in-game to preview all of the available effects.&lt;br /&gt;
&lt;br /&gt;
Please check out the [http://mine.elmakers.com/reference/#effectlib Reference Manual] for a list of all EffectLib effects and parameters!&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;   effects:&lt;br /&gt;
      cast:&lt;br /&gt;
      - location: target&lt;br /&gt;
        effectlib:&lt;br /&gt;
          class: AnimatedBall&lt;br /&gt;
          duration: 5000&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Developers ===&lt;br /&gt;
&lt;br /&gt;
Developers may want to browse through the [http://jenkins.elmakers.com/job/EffectLib/doxygen/namespacede_1_1slikey_1_1effectlib_1_1effect.html doxygen documentation].&lt;br /&gt;
&lt;br /&gt;
== Effect Parameters ==&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
Each effect is configured using a &amp;amp;quot;player&amp;amp;quot; class and several common parameters:&lt;br /&gt;
&lt;br /&gt;
| Name | Values | Description&amp;lt;br /&amp;gt;&lt;br /&gt;
|-------------------|----------------|-----------------&amp;lt;br /&amp;gt;&lt;br /&gt;
| effectlib | [[EffectLibParameters|EffectLib]] | Configuration of an [[EffectLib|EffectLib]] effect.&amp;lt;br /&amp;gt;&lt;br /&gt;
| location | target/origin/both | Where to play the effect&amp;lt;br /&amp;gt;&lt;br /&gt;
| color | RRGGBB | The main color to use, only applies to some effects (like Fireworks)&amp;lt;br /&amp;gt;&lt;br /&gt;
| color1 | RRGGBB | The secondary color to use, only applies to some effects (like Fireworks)&amp;lt;br /&amp;gt;&lt;br /&gt;
| delay | milliseconds | How long to wait before starting the effect&amp;lt;br /&amp;gt;&lt;br /&gt;
| effect | Effect name | A Bukkit effect, often includes sound and particles&amp;lt;br /&amp;gt;&lt;br /&gt;
| sound | [[Sound|Sound name]] | A sound to play, taken from the Bukkit sound constant or sounds.json&amp;lt;br /&amp;gt;&lt;br /&gt;
| sound&amp;#039;&amp;#039;volume | 0.0 - 2.0 | The volume at which to play a sound&amp;lt;br /&amp;gt;&lt;br /&gt;
| sound&amp;#039;&amp;#039;pitch | 0.0 - 2.0 | The pitch to use for playing a sound&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle | Particle name | A Particle type to use, taken from a Magic constant&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;count | count | The number of particles to spawn&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;offset&amp;#039;&amp;#039;x | integer | How much random x-jitter to apply to particles&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;offset&amp;#039;&amp;#039;y | integer | How much random y-jitter to apply to particles&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;offset&amp;#039;&amp;#039;z | integer | How much random z-jitter to apply to particles&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;data | integer | A special magic data number, use with care, it can crash the client!!&amp;lt;br /&amp;gt;&lt;br /&gt;
| particle&amp;#039;&amp;#039;sub&amp;#039;&amp;#039;type | string | A special magic data value, use with care, it can crash the client!!&amp;lt;br /&amp;gt;&lt;br /&gt;
| firework | Firework Effect | The type of firework to launch, if other firework params are specified without this it will be random&amp;lt;br /&amp;gt;&lt;br /&gt;
| firework&amp;#039;&amp;#039;power | integer | The firework power&amp;lt;br /&amp;gt;&lt;br /&gt;
| firework&amp;#039;&amp;#039;flicker | true/false | Whether or not to flicker the firework effect&lt;br /&gt;
&lt;br /&gt;
==== Built-in Effects ====&lt;br /&gt;
&lt;br /&gt;
Magic comes with a few builtin effect players that may be useful, but in general if you&amp;#039;re using EffectLib effects, EffectSingle is the only one you need.&lt;br /&gt;
&lt;br /&gt;
==== Built-in Effect Configuration ====&lt;br /&gt;
&lt;br /&gt;
| Name | Values | Description&amp;lt;br /&amp;gt;&lt;br /&gt;
|-------------------|----------------|-----------------&amp;lt;br /&amp;gt;&lt;br /&gt;
| class | Class name | An effect player class, either a builtin or a fully-qualified external EffectPlayer. Defaults to EffectSingle.&lt;br /&gt;
&lt;br /&gt;
==== Repeating Effects ====&lt;br /&gt;
&lt;br /&gt;
| Name | Values | Description&amp;lt;br /&amp;gt;&lt;br /&gt;
|-------------------|----------------|-----------------&amp;lt;br /&amp;gt;&lt;br /&gt;
| iterations | count | How many times to repeat the effect&amp;lt;br /&amp;gt;&lt;br /&gt;
| period | milliseconds | How often to repeat the effect&amp;lt;br /&amp;gt;&lt;br /&gt;
| reverse | true/false | Whether or not to play the effect in reverse&lt;br /&gt;
&lt;br /&gt;
==== EffectRing ====&lt;br /&gt;
&lt;br /&gt;
| Name | Values | Description&amp;lt;br /&amp;gt;&lt;br /&gt;
|-------------------|----------------|-----------------&amp;lt;br /&amp;gt;&lt;br /&gt;
| radius | blocks | How large the ring should get&amp;lt;br /&amp;gt;&lt;br /&gt;
| size | count | How many effects to spawn per ring&lt;br /&gt;
&lt;br /&gt;
==== EffectTrail ====&lt;br /&gt;
&lt;br /&gt;
| Name | Values | Description&amp;lt;br /&amp;gt;&lt;br /&gt;
|-------------------|----------------|-----------------&amp;lt;br /&amp;gt;&lt;br /&gt;
| length | blocks | The length of the trail, may be automatic if a target was provided.&lt;br /&gt;
&lt;br /&gt;
enum reference:&lt;br /&gt;
&lt;br /&gt;
* Sound: https://raw.githubusercontent.com/Bukkit/Bukkit/master/src/main/java/org/bukkit/Sound.java&lt;br /&gt;
* Effect: https://raw.githubusercontent.com/Bukkit/Bukkit/master/src/main/java/org/bukkit/Effect.java&lt;br /&gt;
* ParticleType: https://github.com/Slikey/EffectLib/blob/master/src/main/java/de/slikey/effectlib/util/ParticleEffect.java#L44&lt;br /&gt;
* FireworkEffect: https://raw.githubusercontent.com/Bukkit/Bukkit/master/src/main/java/org/bukkit/FireworkEffect.java&lt;br /&gt;
* EffectLib Classes: http://dev.bukkit.org/bukkit-plugins/effectlib/&lt;/div&gt;</summary>
		<author><name>炫宙菌</name></author>
	</entry>
</feed>