This mod is no longer actively being developed because it has been superseded by Edibles. It is fully configurable, has more features and includes the functionality of this mod.
A minimalistic configurable mod which allows players to eat sugar and receive a short speed bonus. Eating too much sugar per day will give players the weakness effect as well.
You may also be interested in Edible Blaze Powder or Edible Magma Cream.
Configurable
speedDurationSeconds (default = 15, min 1, max 3600): The duration in seconds of the speed effect when a player eats some sugar.
enableNegativeEffect (default = true): When enabled, gives the player a negative effect after eating more sugar in a day defined in 'maxSugarPerDay'
maxSugarPerDay (default = 5, min 0, max 1280): The maximum amount of sugar a player can eat before receiving the weakness effect.
weaknessDurationSeconds (default = 60, min 1, max 3600): The duration of the weakness effect in seconds when eating too much sugar.
The effect in action:
When eating too much sugar, by default 5 per day, players will also receive the Weakness effect.
------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!