Potions Please

Quick rating

Potions Please

By Lare

No reviews yet

Adjust the duration of minecraft potions

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Server Only

Runs entirely on the server. Also works in singleplayer.

About

Project Details

Type
Mod
License
Creative Commons Zero v1.0 Universal
Latest Version
1.0.1

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Potions Please

Server-side fabric mod for Minecraft 1.21.5 to alter vanilla potion durations by injecting the POTION_DURATION_SCALE Component.

Potion Sources

This mod only affects potions generated through the following primary sources:

  • Brewing
  • Villager Trading
  • Loot Tables (set_potion function)
  • Tipped Arrow crafting

Potions that is created from any other source such as the /give command or the creative inventory do not have the durations modified. This is because the mod is unable to inject the POTION_DURATION_SCALE Component to the items from those sources.

Configuration

Opening the game for the first time generates a file to config/potionsplease.json5. Configuring this file is used to alter the potion durations.

The JSON keys match minecraft's potion IDs and the next 4 values define the duration in TICKS for each item type.

  • DEFAULT_DURATION -> Potion
  • SPLASH_DURATION -> Splash Potion
    • (Vanilla splash potions have the same duration as regular potions)
    • LINGER_DURATION -> Lingering Potion
      • (Vanilla lingering potions only apply 25% of the regular potion duration)
    • TIPPED_DURATION -> Tipped Arrow
      • (Vanilla tipped arrows only apply 12.5% of the regular potion duration)
{
  "minecraft:long_strength" : {
    "DEFAULT_DURATION" : 9600,
    "SPLASH_DURATION" : 9600,
    "LINGER_DURATION" : 2400,
    "TIPPED_DURATION" : 1200
  }
}

The above example uses the vanilla long_strength (Extended strength) potion durations. In this case drinking the potion regularly will grant the player strength for 8 minutes. Maybe this isn't long enough so we can change the values to following to instead have default potion grant 45 minutes of strength. To calculate the number of ticks for the potion duration, you can simply follow this equation: MINUTES × 60(seconds in a minute) × 20(ticks per second)

{
  "minecraft:long_strength" : {
    "DEFAULT_DURATION" : 54000, // 45 × 60 × 20 = 45 minutes in ticks
    "SPLASH_DURATION" : 18000, // 15 × 60 × 20 = 15 minutes in ticks
    "LINGER_DURATION" : 9600, // 8 × 60 × 20 = 8 minutes in ticks
    "TIPPED_DURATION" : 3600 // 3 × 60 × 20 = 3 minutes in ticks
  }
}

Removing a potion from the config disables the duration injection logic for that potion.

Screenshots

Gallery

  • Long potions not long enough?
    Long potions not long enough? Configure potion durations easily

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works