"Forge is setting up Minecraft environment" stuck at 0%, causes exceptions
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By PoppaBlade · Posted
Hello there, i've been getting a lot better at reading crash logs and sorting out my issues, but this one has me stumped. here is my crash log; https://pastebin.com/B2sTs1Tx anything helps! thanks. if you have any questions, lmk. -
I’m not sure why your first problem is being a problem, it’s code should work. Can I see your ModItems class? There might be a problem there. Your second issue, two effects on one material, is because you are trying to modify an immutable map before it is built. The way your code works is the each armour material is mapped to ONE armour effect. Is you want multiple effects for each material, you will have to modify the map so that it maps armour materials to a list of effects. You will also have to modify the effect applying code to work with lists if effects.
-
You could try and manage custom armour features from inside armourTick. You would need to create a custom item called, for example, SapphireChestplateItem. It would extend ModAmrorItem. Your code might look like this: @Override public void onArmorTick(){ super.onArmorTick(); //your code here } If onArmorTick is to slow for you, you can listen for server ticks and loop through the servers players and if the current one if wearing your armor, do whatever you want. btw this is only is you want the result of the effect, not like a full blown armour independent effect, e.g night vision
-
Thank you so much 😎
-
Hi, I have tried to make biome tags for custom biomes, however when the ModBiomeTagProvider runs, it throws an error saying: “could not create tag tagname because it is missing the following references: biomename”. I used the normal way you register tags, extending ForgeBiomeTagProvider. Thank you in advance.
-
-
Topics
-
Who's Online (See full list)
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.