Unlimited Potions

Unlimited Potions

5.1k Downloads

Important!

We have a little utility mod called effects util, use it to find out if your modpack has conflicting potion effect IDs.

Find the utility mod here:

Effect Utils 1.16.5

Effect Utils 1.18.1

Find the commands and instructions to use effects-util within the links.

The Problem

A modpack that has more than 256 potion effects added by the mods starts to behave incorrectly when potion effects are triggered.

This is because of the following:

  • When a potion effect is triggered for a player, the server sends a message to the client including the potion effect id.
  • This id is stored in a byte variable in vanilla Minecraft, which makes the maximum amount of unique effects possible to be 256.
  • Anything over 256 starts to conflict and hence the player receives wrong potion effects.

The Solution

  • Unlimited Potions bypasses the issue with a substitute (integer) id, which makes the possible amount of potion effects to be virtually unlimited.
  • This should solve any conflicts and players will always receive correct potion effects.

Compatibility

The same fix is being used in my modpack Starpack Titan with 600+ mods and it gives perfectly accurate effects.
If you discover an issue, please report it from the issues tab above.

Distribution

Feel free to use this in your modpack. 
Any form of distribution should either be via this CurseForge project or should include a link to this description page.