Viesis Posted May 11, 2018 Posted May 11, 2018 Like the title says, is there a method/way to spawn particles in a GUI? I have an entity displayed in my gui and noticed that the particles it has isn't show up in the GUI. My particles are working in game. I tried to just spawn smoke particles in drawGuiContainerBackgroundLayer and drawGuiContainerForegroundLayer but I am getting nothing generating. Any direction would be greatly appreciated. Thanks! Quote
Viesis Posted May 11, 2018 Author Posted May 11, 2018 Just as an update, I found out that the particles were spawning. I was using the mouse x/y so I could easily see if there was anything in the gui for my test and I happen to be looking up. My smoke particles were racing across the sky as my mouse moved. Not exactly the outcome I was hoping for. Quote
V0idWa1k3r Posted May 11, 2018 Posted May 11, 2018 (edited) I do not think there is a method to render particles in the gui as vanilla never does that. The default spawnParticle method spawns them in the world only. You would need to create your own method to render the particle in the gui. Edited May 11, 2018 by V0idWa1k3r clarification 1 Quote
Viesis Posted May 11, 2018 Author Posted May 11, 2018 Thank you for the reply @V0idWa1k3r. I had a feeling that would be the case. I didn't think there were any instances in Minecraft where that happens. I was trying to preview particles on an entity before players could accept them. They may just have to go in blind. Haha Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.