Changed: - ToolType is replaced with ToolAction, which can selectively represent which actions are supported by an item. - Added a canPerformAction method to query ToolActions. - Renamed canHarvestBlock to isCorrectToolForDrops to match vanilla. - Added TierSortingRegistry, which can be used to add custom tiers and supports sorting between vanilla or with other mods. How to use: For the breaking system there's 2 methods: - getDestroySpeed decides if an item *can* mine the block fast. Override if you have multiple tags or your item isn't a DiggerItem. - isCorrectToolForDrops decides if an item will get drops. Returning false will also slow down mining, regardless of getDestroySpeed. Override if you have type-dependant tiers or your item isn't a DiggerItem. For the tier system mods can just call `TierSortingRegistry.registerTier(tier, "name", List.of(lesser tiers), List.of(better tiers));` to register their tiers. There's helper methods to query tiers such as TierSortingRegsitry.isCorrectTierForDrops. The ToolActions solve 2 problems: 1. distinguishing which kind of digger an item can be 2. querying if the item can perform specific secondary actions. Any item can override `canPerformAction` to customize which actions it performs.
MinecraftForge
Forge is a free, open-source modding API all of your favourite mods use!
| Version | Support |
|---|---|
| 1.16.x | Active |
| 1.15.x | LTS |
Notes:
- Introduced in 1.13 was a new FML, information found here.
Installing Forge
Go to the Forge website and select the Minecraft version you wish to get Forge for from the list.
You can download the installer for the Recommended Build or the Latest build there. Latest builds may have newer features but may be more unstable as a result. The installer will attempt to install Forge into your vanilla launcher environment, where you can then create a new profile using that version and play the game!
For support and questions, visit the Support Forum.
Here is a short video from Rorax showing how to install and setup Forge.
Creating Mods
See the "Getting Started" section in the Forge Documentation.
Contribute to Forge
If you wish to actually inspect Forge, submit PRs or otherwise work with Forge itself, you're in the right place!
See the guide to setting up a Forge workspace.
Pull requests
See the "Making Changes and Pull Requests" section in the Forge documentation.
Please read the contributing guidelines found here before making a pull request.
Contributor License Agreement
We require all contributors to acknowledge the Forge Contributor License Agreement. Please ensure you have a valid email address associated with your GitHub account to do this. If you have previously signed it, you should be OK.
Donate
Forge is a large project with many collaborators working on it around the clock. Forge is and will always remain free to use and modify. However, it costs money to run such a large project as this, so please consider becoming a patron.