guys to register particles dont you have to write in the main modinitializer the path of the particle and the name, and then in the client initialiazer to register it there too
I am getting this Render Error
[15:01:06] [Render thread/WARN] (Minecraft) Could not spawn particle effect net.fabricmc.fabric.api.particle.v1.FabricParticleTypes$1@114e051a
Can someone help me
#[ 1.21.5 ] Particle Error
73 messages · Page 1 of 1 (latest)
It's best, regardless of what your issue is, to always specify what minecraft version you're encountering issues on
I'm not very used to these things but I'll try to look into resources and documentation to see if I can find a fix, but if you have a link to the source code version that is encountering the issue, it'd help greatly with giving a specific fix
would you liek me to copy paste my code here so you can see because I dont have a repo fo my mod
It'd be most convenient to have a repo link but if that's impossible for you, copy pasting in a place like https://pastebin.com could work
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
If the code segments are small enough, you can use a Discord code block:
YourCodeHere
EndOfCode```
See screenshot on how to format a Java Discord code block
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Will review in just a moment
ok
I'll copy the code over to a 1.21.5 Fabric mod template and investigate the errors myself
ok thanks
Are there any other Classes/Files you coded in, btw?
yeah but not for the particle
So no other of your files contain code about BLOOD_BUBBLE_PARTICLE
yep
Alright
I have it dont worry
well it's impossible to help when we don't have the full code...
ok wait I will try and upload it to github
Just copying the lines of code to see if I could get the same warn, I couldn't replicate
ok
To be specific, I copied over the three lines of code:
public static final SimpleParticleType BLOOD_BUBBLE_PARTICLE = FabricParticleTypes.simple();```
```java
Registry.register(Registries.PARTICLE_TYPE, Identifier.of("strike", "blood_bubble_particle"), BLOOD_BUBBLE_PARTICLE);```
and
```ParticleFactoryRegistry.getInstance().register(Burnableblockmod.BLOOD_BUBBLE_PARTICLE, EndRodParticle.Factory::new);```
When launching the Minecraft Client and using the /particle command to see what it'd do in the console, no warns appeared.
The only unordinary things to note were a bunch of OpenGL errors (See https://pastebin.com/Me60gmPj for full test logs)
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
But either way, couldn't reproduce the warn [Render thread/WARN] (Minecraft) Could not spawn particle effect net.fabricmc.fabric.api.particle.v1.FabricParticleTypes$1@114e051a
Yes
best I can do
Will clone repo and try to run
Well no main menu at all certainly isn't a great start
hahaha no if you fullscreen it it will work
it is a feature I made and its still in progress
I see
Alright, using a cloned repo, the Warn line you originally reported was found again
Now to try and figure out what is causing the issue
ok'
did you find the issue?
Haven't found anything so far
- main/src/main/resources/assets/strike/particle
+ main/src/main/resources/assets/strike/particles
I contacted a "friend" and he says its about rendering the paricle in the client and register in the main
i pointed out what the error is
Will do a test with that name change
Yup that fixed it @cerulean moon
ok tell me what to do
In the assets folder, go to the strike folder, and rename the particle folder to particles
That's it really
wait
lets gooooooooooooo
ok now that I have somone to talk in this conv. can you help me with another error
Note: Recompile with -Xlint:deprecation for details.```
Basically
you're using HudRenderCallback which is deprecated
ok
HudRenderCallback.EVENT.register(DashOverlay::renderOverlay);```
In this line in your Client Class, there's deprecated stuff
Meaning it's no longer maintained or actively supported, causing potential instabilities
ok is there anyway to replace it or something like this
hover over the warning, it says what to use
ok
Due to them not being 1:1, you may need to change parts of your code to adapt to the non-deprecated alternative
ok I used HudLayerRegistrationCallback but now the renderOverlay is an error
Due to them not being 1:1, you may need to change parts of your code to adapt to the non-deprecated alternative
it's not a direct replacement
ohhhhh
Technically if the deprecated version works for your specific purposes it's not necessarily an issue but it is absolutely not recommended, and especially if you plan to update over time it will become more and more prone to bugs and issues.
So I'd absolutely advise reading up on the replacement and how to implement it into your systems
Feel free to open up a new thread if you need help implementing the replacement
ok guys thank you so much
