NeoForge 1.21.1 - Deprecated Features #2564
Replies: 5 comments 2 replies
-
|
Remove the |
Beta Was this translation helpful? Give feedback.
-
|
Deprecated means it is discouraged from being used and like spino said, would be best to remove. However, that’s just a warning. Not an error that would prevent the mod from running |
Beta Was this translation helpful? Give feedback.
-
|
You can just remove that Note this does mean you should require at least NeoForge 21.6.6 or higher in your neoforge.mods.toml. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you all for your help. |
Beta Was this translation helpful? Give feedback.
-
|
I applied the changes but it does not work as intended. For the past few days I have been going through my code but I can't see what's wrong. It doesn't recognise any errors. Please excuse the poor formatting of the code, I'm fairly new to using it on GitHub and its acting a little odd. ModEvents: `import net.droidcrafter23.droidsimplements.item.custom.HeavyShovelItem; import java.util.HashSet; public class ModEventsHeavyShovel { Custom Item: `package net.droidcrafter23.droidsimplements.item.custom; import java.util.ArrayList; public class HeavyShovelItem extends DiggerItem { Tutorial ModEvents: Tutorial Custom Item: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been following the ModdingByKaupenjoe Neoforge 1.21.1 tutorial and have encountered an issue with the EventBusSubscriber in the Hammer tutorial. An image of the error can be found below.

My code:
@EventBusSubscriber(modid = DroidsImplements.MOD_ID, bus = EventBusSubscriber.Bus.GAME)Tutorial's code: https://github.com/Tutorials-By-Kaupenjoe/NeoForge-Tutorial-1.21.X/blob/16-hammerTool/src/main/java/net/kaupenjoe/tutorialmod/event/ModEvents.java
Help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions