PlayEffect
PlayEffect
PlayEffect allows to spawn a visual (and sound) effects in your Minecraft worlds. You can play single effect in defined location or create a "static" effect that repeatedly plays in defined area. This plugin is logical extension of my plugin NoSmoking! and created to replace it.
Features
- 59 different types of effects
- Ability to play effect in defined area (location, line, cuboid, plain)
- Static effects repeatedly played in defined area
- Effect customization
Video demonstration
This video is created by EpicATrain. Thank you very much :)
New video created by EpicTrain. This videos is demonstrating how to use PlayEffect with command blocks :)
How to use PlayEffect
- /play <effect> <param1:value> <param2:value>... — play single effect
- /play set <effect> <param1:value> <param2:value>... — set static effect at your view poing
- /play wand <effect> <param1:value> <param2:value>... — link effect to a wand (default wand is the coal item)
Main effect parameters
- id:<effect id> — id or name of effect, necessary to static effects only;
- draw:<normal, line, plain, circle, area> — render view of effect: normal — single location poing, line — line defined by two point (loc and loc2), circle — ring defined by center and radius, plain — rectangle, area — cuboid region;
- loc:<world,x,y,z> — main (first) location point
- loc2:<world,x,y,z> — second location point (used with draw types: plain, line, area)
- radius:<radius> — radius (used with draw types: normal, circle)
- chance:<%> — chance to play effect
- time:<time> — repeating time for static effects (time formatis fully compatible used in plugin ReActions)
- dur:<time> — duration time for single effect (could be combined with static)
- freq:<time> — repeating time if single effect (use only with duration (dur) parameter)
Every effect could have own parameters, that listed in effect definition.
Effects
There are 45 different effect types. All of them listed here: Effect list
PlayEffect API
PlayEffect contains an API that allows plugin developers easy access to develop plugins with effect features.
I created plugin PlayeEffectRailgun as example of using API: PlayEffectRailgun (source code)
Plugins supported PlayEffect API:
- Laser: lasers and other beam weapon
- ReActions: very simple custom event processing system — add new actions to buttons, plates, etc..
If you developer and your plugins is using PlayEffect API please inform me and I will add you plugin to this list.
Commands
Main command of plugin is /playeffect. Aliases: /play, /pef, /pe
- /play help [page number] - Hmmm.... :)
- /play list [page] [effect id] — display list of static effects
- /play info [number of effect id] — display full information about effect
- /play remove [effect number] — remove effect
- /play set <effect> [param] — set the effect. If parameters loc and loc2 omitted player location and view point coordinates will used. If WorldGuard plugin is installed and you can use wand (wood axe) to select location point loc and loc2.
- /play wand <effect> [param] — line defined effect with wand (coal item)
- /play wand — disable wand mode
- /play show <effect id> — show effect(s)
- /play hide <effect id> — hide effect(s)
- /play restart — stop playing of all effects and start it again
- /play reload — reload configuration and effects from the file, restart effects
How to setup location points
You can define coordinates using:
- Parameters loc and loc2. You can use keyword "here" and "view" to define coordinates of player and coordinate of view point. Example: /play SMOKE loc:here, /play smoke loc:world,0,65,0 /play FIREWORK loc:here loc2:view draw:line
- WorldEdit tool. If WorlEdit is installed, after selecting a points using WE tool (wood axe - default) first (left-click) point will be used as loc parameter, second (right-click) will used as loc2.
- Default. If coordinates omitted and WordEdit was not used loc parameter will be equal to you view point loc2 to your position. Example: /play SMOKE is equal to /play SMOKE loc:view
Commands example
- /play SMOKE wind:north loc:here — plays effect with wind direction - north at player locations
- /play firework draw:line loc:here loc2:view type:burst — Oh! What a great laser effect!
- /play set driplava id:lavarain time:1s draw:plain loc:world,10,75,10 loc2:world,-10,75,-10 chance:10 — creates a lava rain
- /play set flamenew id:fireland time:5s draw:area land:true loc:world,10,50,10 loc2:world,-10,75,-10 chance:10 — creates a "flaming" land
Permissions
- playeffect.config - main for OPs
- playeffect.wand - ability to use wand command
- playeffect.set - ability to use /playeffect set command
- playeffect.play - ability to use /playeffect playe command
- playeffect.show - ability to use /playeffect show and /playeffect hide commands
How to upgrade from the NoSmoking! plugin
PlayEffect supports NoSmoking v0.0.7 file format. To import NoSmoking! effects you just need to copy smokepoints.yml file to PlayEffect folder and restart server. NoSmoking! effects will be imported to PlayEffect and file will be renamed to smokepoints.yml.old.
Warning! Imported effects could differ from the NoSmoking! effects: explosion and ender pearl effects are changed to another, sound effect is totally new (I tried to use the same sounds) and there a difference between time representations used in the plugins.
If you need to import from earlier versions of NoSmoking! you need to use NoSmoking v0.0.7 first to get a compatible file format
Metrics and update checker
PlayEffect includes two features that use your server internet connection. First one is Metrics, using to collect information about the plugin (versions of plugin, of Java.. etc.) and second is update checker, checks new releases of plugin after PlayEffect startup and every half hour. This feature is using API provided by dev.bukkit.org. If you don't like this features you can easy disable it. To disable update checker you need to set parameter "version-check" to "false" in config.yml. Obtain more information about Metrics and learn how to switch off it, you can read here.
Hey I was wondering if it is possible to play the lightning effect without the sound
I am using the lightning effect to help create a backdrop to a minigame in my server and find that it looks great, however the sound can be incredibly irritating as there is a constant rumble.
Looking forward to the float coord version as I really hate ParticleLib.
@fromgate
That is excellent news :-)
@pilvimaa
Hello! Effects coordinates will support float values in next version (this part of code is already implemented, but plugin needs some additional changes, so I cannot upload new version yet).
And I will check how the "force" attributes works, but after some test at 1.8.7 I can say that now distance is not limited by 15 blocks, so I will remove hard-coded distance limitation from the plugin.
P.S. Today new Minecraft snapshot released and there are some good news. Particles engine optimized :)
Hmm. It seems the effects are always centered on the dead center of a block, right?
Why can't I use a more precise location with fractions in the coordinates? This has been bothering me for quite a while. Let's say I wish to show a heart right above the head of the player - except I can't, because if the player is not standing exactly in middle of a block's center then the heart won't be exactly above the player's head.
Would it be trivial to fix this?
Also a feature request: since the vanilla /particle command has now supported the "force" attribute which makes particles visible even though you are over 15 blocks away from them - would it be possible to get this type of option in Playeffect also? AFAIK, it doesn't have one.
@DuffstersATL
I think he just said in the message right before you that he will look into it to see if it's possible.
is there any chance of implementing the Elder Guardian's attack beam? maybe having it aim at the player from where the effect is placed?
@pilvimaa
Oh! Sorry! Barriesr did not supports "item" parameters. It just barrier sign (I will remove this from description page) I will check guardians effect. If I find way to add this effect, I'll do it :)
I don't understand the parameters for the barrier effect. The description says it accepts "item:" for example: "item:IRON_SWORD" is this an error, or ... ?
It doesn't seem to do anything. Every time I just see the normal barrier block graphics not for example - an iron sword.
Also speed doesn't seem to do anything afaik with barrier effect.
Also: Is it possible to add the particle effect that happens when guardians shoots at something? Or would that require spawning entities?
How do I do sounds
can you place the effects on items?
can you make the effects to items.
Perhaps you could give me the correct command to display a continuous PORTAL effect in the cuboid -3 6 -7 -2 4 -7. Much obliged.
I understand that PlayEffect was not tested with 1.8.7. /play set portal to locations set by WE seems not to work. It generates a parse error: Failed parse effect name set.
Please update (and test) to 1.8.7.
Thanks.
Could you please add a command for absolute location of here? For example:
The regular "here" location does an effect at the player's location. But if you stand on the edge of a block and do it, it puts the effect in the middle, which doesn't look right.
If you had, say "here-a" (just an example name) as well, you could choose to have rounded coordinates (how it is now) or absolute coordinates. Other than that, this is a really amazing plugin. I just think adding that option would make it perfect :)
EDIT: And obviously, an absolute "view" option as well (exact coordinates of where player is looking)
@cc58c58
What do you mean by "spawn"? If you ask about area where players spawns - you can set some static effects there.
v0.4.1
Can it make the spawn have effect?
Oh wow, it's been a long time since I've been here! This plugin has been working flawlessly on my server! I should probably do another review!
Ну что, как обстоят дела с углем?)