+ 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...?

10th Jun 2017, 3:08 PM
Miro
Miro - avatar
10 Respuestas
+ 1
Okay, thanks.
10th Jan 2018, 7:34 PM
Dominik Dý Púček
Dominik Dý Púček - avatar
0
Which API are you using for this? Is it Forge, Bukkit or perhaps Sponge?
13th Jun 2017, 9:45 AM
Sannholm
0
It is Bukkit which I used... Why?
13th Jun 2017, 11:04 AM
Miro
Miro - avatar
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?
13th Jun 2017, 11:13 AM
Sannholm
0
No sorry xD. With Why i mean: Why do you ask me that?
13th Jun 2017, 11:17 AM
Miro
Miro - avatar
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.
13th Jun 2017, 11:23 AM
Sannholm
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)...
13th Jun 2017, 1:44 PM
Miro
Miro - avatar
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.
13th Jun 2017, 2:14 PM
Sannholm
0
Benjamin, could I ask, how to make a plugin in which you click on the armor stand and it will do some command?
10th Jan 2018, 7:26 PM
Dominik Dý Púček
Dominik Dý Púček - avatar
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.
10th Jan 2018, 7:33 PM
Sannholm