+ 1
How do you programm a Particle-Plugin for Minecraft (in Java Language)?
I would make a Plugin, which you can Spawn particles for example a particle-discoball or particle-wings... But i dont know why...?
10 Respuestas
+ 1
Okay, thanks.
0
Which API are you using for this? Is it Forge, Bukkit or perhaps Sponge?
0
It is Bukkit which I used... Why?
0
I'm sorry I don't entirely understand what you're saying. Are you asking me why you used Bukkit or are you asking if you should use Bukkit and why?
0
No sorry xD. With Why i mean:
Why do you ask me that?
0
I needed to know what you're working with to be able to help with that specific platform.
So, I don't know how much experience you have with Bukkit, but to spawn a particle effect you call something like spawnEffect on an instance of World. That might be a bit off though, it was a while since I programmed for Bukkit.
To do this repeatedly you can schedule a task that will run that code every x ticks. That is done through the Bukkit scheduler.
0
Okay thanks for this help now! I have basical Java experience and a bit Bukkit experience... Im learning to Code Plugins now and thats The reason why I asked this question... So i heard, that you need EffectLib to create Particles like wings and a discoball (xD)...
0
Well you could use a library as help but you can also spawn particles right through the Bukkit API. You might have to use something called NMS to get access to internal functions and send packets to the client manually to achive this though. If you don't know how to you can learn that later and use the library for now of course.
0
Benjamin, could I ask, how to make a plugin in which you click on the armor stand and it will do some command?
0
To know when someone has interacted with an armor stand you will have to register an event handler that runs on whichever event they have for interacting with entities. I don't exactly remember what it is called.
Then in that function you'll have to call a function in Bukkit which executes a command. Don't remember it's name.