Ehm, don‘t understand your question 100% but you can simply use a shapeless recipe and use your item as a ingredient, or not? Or try to use a event and when the player hold the new item you add the old item in the inventory of the player.
Spamming is when you repeat the same words, don‘t make that
The installer log is the same as the crash report. If you have tried to download Forge and it send you this message, then it should write you :„Crash report was saved in: …“. If you are using Windwos then go in Folder and write the localization of the crash report.
Yes, sorry.
First i want to see if my code work.
Do you know a simple Method to get the ServerPlayer in my Item class? If it was possible, can i get the ServerPlayer from LivingEntity?
I have tried but it don‘t work, why? The Github link: https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/init/ModItems.java#L39
Ok, i am trying to attempt this
P.S.: if i filter this: .filter(goal -> goal.getClass() == PanicGoal.class).findFirst() then i am sure to get my PanicGoal, or not?