bytez1337 / particlelib Goto Github PK
View Code? Open in Web Editor NEWMultiversion spigot library supporting all particles and their data (1.8-1.19.3)
License: MIT License
Multiversion spigot library supporting all particles and their data (1.8-1.19.3)
License: MIT License
Why?
Error log: https://pastebin.com/tJ2NvfhB
My code:
private boolean isValidParticle(String particle) {
try {
ParticleEffect.valueOf(particle);
return true;
} catch (Exception e) {
return false;
}
}
I assume that this isn't intentional, but I don't know for sure.
Hello, i trying to display a Helix with particles in one world and one location, but my code with your library is displaying the helix in all worlds in the same X , Y and Z. (Video https://www.youtube.com/watch?v=jr_dwEfkwiU)
Can you help me?
private int createNPCHelix(Entity npc) {
if(npc == null) return 0;
final int radius = 1;
Location npcLocation = npc.getLocation();
List<Object> packets = new ArrayList<>();
ParticleBuilder particleBuilder = new ParticleBuilder(particle);
for(int t = 0; t < 20; t++) {
double x = radius * Math.cos(t);
double z = radius * Math.sin(t);
packets.add(particleBuilder.setLocation(npcLocation.clone().add(x, 0.5, z)).toPacket());
}
ParticleTask task = new GlobalTask(packets, 3);
return TaskManager.getTaskManager().startTask(task);
}
Hello,
nice plugin! I'm using it for my own server on 1.16.3 and have now faced complications with Spigots internal legacy support. Plugins not using the api-version settings in plugin.yml (introduced in 1.13) may lead to load the old legacy support.
More information about this is provided by Spigot on https://www.spigotmc.org/wiki/plugin-yml/#optional-attributes under api-version section.
You mind adding the api-version to your plugin.yml in the next update?
api-version: 1.14
I used this code in a event listener method:
new ParticleBuilder(particle, location).setParticleData(new BlockTexture(Material.GLASS)).display();
It seems that getBlockData()
in BlockTexture
is causing this, because the call on material.name()
goes to class CraftLegacy
in the OBC. If edited the plugin.yml and it worked out of box. The call above is working and resolving to OBC Material.name() instead.
Thanks for this nice plugin and your work
~Kaonashi
The sweepAttack particle wasn't added until 1.9.
Specifically this snapshot for 1.9: https://minecraft.gamepedia.com/Java_Edition_15w34c
Hello! I'm a developer over at mc.renatusnetwork.com and are working on a sequel for one of our top games! Due to the restrictions of combat on minecraft versions past 1.8, we have to run our gamemode off this version because of this, it makes us run spigot on 1.8 as well. As you may know spigot 1.8 simply has little to no particle control and in order to make this game as big as we want, we definitely need to get more particles in the library and running. With that, we found this plugin but got errors when trying to actually use the particles. I would appreciate any help with solving this issue and allowing us to get more particles. Thank you!
P.S, it should be noted that we are installing the project through maven.
Can you add the long distance option via your particle builder ?
https://wiki.vg/Protocol#Particle_2
So we can increase the range :)
Spigot Version: 1.8.8 Spigot
ParticleLib Version: 1.6.3
Description:
Using the method ParticleEffect#display(Location, float, float, float, float, int, ParticleData)
, the particles seem to duplicate to multiple worlds as seen in the pictures below. Worlds "world" and "world_nether" are shown. Each of the methods are called with "world" as the world set in the location parameter.
Hello, is there a installation guide? Its very helpful is there is.
Please reply :)
After updating to v1.6.4, I started getting this error on startup:
[22:00:38] [Server thread/ERROR]: Could not load 'plugins/ParticleLib.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:178) ~[patched_1.16.5.jar:git-Paper-783]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:160) ~[patched_1.16.5.jar:git-Paper-783]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.16.5.jar:git-Paper-783]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:269) ~[patched_1.16.5.jar:git-Paper-783]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-783]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-783]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 7 more
The above error occurs every time I start up the server.
I am running Paper 1.16.5.
Hi, yesterday I updated my plugin (https://github.com/I2000C/NewAmazingLuckyBlocks) to support Paper 1.19.3 (https://api.papermc.io/v2/projects/paper/versions/1.19.3/builds/384/downloads/paper-1.19.3-384.jar).
However, when I try to use the VILLAGER_HAPPY particle, the next error happens:
And this is the line 35 of my class EndermanSoup:
This error didn't happen in Paper 1.19.2.
Do you know what could be causing this error?
NOTE: I'm using the latest version (1.8.3) of ParticleLib (with is shaded in my plugin using Gradle).
Hello, it would be interesting to make the "PropertyType[] properties" variable accessible from a method. I'm currently accessing it from reflection.
Hello. I have the code from particle library in my code, but since the last update it stopped working and doesn't cooperate at all, please help.
error:
19:45:41[WARN] [RotatingHeadsPRO] Plugin RotatingHeadsPRO v1.0.1 generated an exception while executing task 1762
java.lang.ExceptionInInitializerError: null
at xyz.xenondevs.particle.ParticleConstants.<clinit>(ParticleConstants.java:246) ~[RotatingHeadsPRO.jar:?]
at xyz.xenondevs.particle.ParticleEffect.getNMSObject(ParticleEffect.java:1328) ~[RotatingHeadsPRO.jar:?]
at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Unknown Source) ~[?:?]
at java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:?]
at xyz.xenondevs.particle.ParticleEffect.<clinit>(ParticleEffect.java:1235) ~[RotatingHeadsPRO.jar:?]
at cz.gennario.rotatingheads.particles.ParticleLoader.loadFromString(ParticleLoader.java:22) ~[RotatingHeadsPRO.jar:?]
at cz.gennario.rotatingheads.system.Head.loadParticles(Head.java:194) ~[RotatingHeadsPRO.jar:?]
at cz.gennario.rotatingheads.system.Head.<init>(Head.java:130) ~[RotatingHeadsPRO.jar:?]
at cz.gennario.rotatingheads.Main.loadHeads(Main.java:165) ~[RotatingHeadsPRO.jar:?]
at cz.gennario.rotatingheads.Main$1.run(Main.java:118) ~[RotatingHeadsPRO.jar:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[server.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[server.jar:git-Purpur-1428]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[server.jar:git-Purpur-1428]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.RuntimeException: Could not load mappings
at xyz.xenondevs.particle.ParticleMappings.<clinit>(ParticleMappings.java:62) ~[RotatingHeadsPRO.jar:?]
... 23 more
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Unknown Source) ~[?:?]
at xyz.xenondevs.particle.ParticleMappings.<clinit>(ParticleMappings.java:53) ~[RotatingHeadsPRO.jar:?]
... 23 more
Hello! i want to ask a question
how should I customize the color of FIREWORKS_SPARK?
can it be defined color?
i tried notecolor and RegularColor it doesn't work
may I ask how it should be custom color?
thanks a lot!
Hey there. I just called the stopTask(taskId) Method in the Taskmanager. It removes the taskId from the running tasks arraylist but as its an int it will be interpreted as index and not as the id. I think casting it to Integer will fix the problem. Whats the idea of the running tasks arraylist? If its not important I would just call getScheduler().cancelTask(id) for now.
public void stopTask(int taskId) {
if (this.runningTasks.contains(taskId)) {
Bukkit.getScheduler().cancelTask(taskId);
this.runningTasks.remove(taskId);
}
}```
Hello,
I am currently updating my plugin for 1.19 and seems like particles are not rendered
I'm running the latest spigot version and latest version of your dependency
My code:
new ParticleBuilder(ParticleEffect.EXPLOSION_HUGE, player.getLocation())
.setOffsetY(1f)
.setSpeed(0.1f)
.setAmount(10)
.display();
player.sendMessage("particle");
More info:
In Spigot there is a 'force' parameter in the World.spawnParticle method to show particles despite of the user settings. Is it possible to add this option?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.