Pluto's Drinks API (or PDAPI for short) is a (not so) simple API mod for the Pluto's Drinks Series that adds customizable drinks.
Features
While this is an API mod, it does add some Runtime features into the game, including:
- A Drink Workstation block for adding ingredients into drinks (Useless without another Drink mod)
/drinkcommand for setting/retrieving amount of caffeine (and other chemicals) in players- Several built-in drink additions (list can be found on the wiki and the ability to create custom drink additions using datapacks
Heads Up
While you are free to use this in your own projects, this API is still in Beta and I am still developing the Pluto's Drinks Series, meaning I will often rewrite and fiddle around with various parts of the code thus causing several breaking changes in minor versions of the mod.
Nonetheless...
Usage
If you wish to use this API in your own Mods, add the following to your build.gradle and gradle.properties files. See modrinth or github for the latest version.
build.gradle
repositories {
maven { url = "https://maven.shedaniel.me/" } // Cloth Config
maven { url = "https://maven.plutonia.xyz/maven" } // PDAPI
}
dependencies {
modImplementation "ml.pluto7073:pdapi:${minecraft_version}+${pdapi_version}"
}
gradle.properties
pdapi_version=VERSION_NUMBER
Forge Version?
No, I lack the time, attention span, and motivation to learn an entirely new modloader
Modpacks?
Completely fine as long as you credit me and link back to the Modrinth or GitHub page for this mod.
How to Install Pluto's Drinks API (Mod)
Pluto's Drinks API by pluto7073 is verified for Fabric across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21 (latest release: 1.21.1+1.5.4+beta.1, file size: 252 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Pluto's Drinks API file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 12d ago | 1 | ||||
| 12d ago | 1 | ||||
| 12d ago | 1 | ||||
| 12d ago | 1 | ||||
| 15d ago | 1 | ||||
| 15d ago | 1 | ||||
| 16d ago | 1 | ||||
| 20d ago | 1 | ||||
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
- Drink actions aren't applied for Specialty Drinks
- Drink actions aren't applied for Specialty Drinks
- Holding down the shift key will drink an entire drink without sipping it
## Fixes
- Advancements triggered upon drinking customizable drinks don't trigger
- Specialty Drinks apply actions on each sip instead of after the drink is fully drank
- No Sip Action doesn't work
- Holding down the shift key will drink an entire drink without sipping it
## Fixes
- Advancements triggered upon drinking customizable drinks don't trigger
- Specialty Drinks apply actions on each sip instead of after the drink is fully drank
- No Sip Action doesn't work
## Changes
- Updated to 1.21.1
- Specialty drinks not taking into account base drink data
- Drink colors are now computed subtractively to get more accurate colors
- To conform with Dynamic Registries in the 1.21.1 version, the
drink_additionsandspecialty_drinks
pdapi/drink_addition and pdapi/specialty_drink respectively. See wikifor new datapack instructions if unclear
### API Changes
- Color computation methods have been moved from
DrinkUtilto the newColorUtilclass
- Specialty drink base can't be found from an empty item stack, causing a crash
- Parsing drink additions from item NBT can include
nulladditions causing crashes - Client sends empty Drink and Addition registries to itself overriding newly received additions and drinks on Singleplayer
- Client copy of specialty drinks and drink additions stored in wrong location causing crashes and errors when changing dimensions
- Items with no/empty tags have issues stacking together
- Mod now requires Java 21 and Fabric Loader 0.18
- Milk no longer restores hunger
- Specialty Drink items are now called Specialty Drinks, and the drink name is shown in the tooltip
## Fixes
- Fixed a bug causing dedicated servers to crash on startup
- Drinks that have been drank from should not be editable with a workstation
- Added an empty mug item for use in Pluto's Coffee and Tea Time
- Drinks in mugs can be given additions by right clicking on the cup with the ingredient
## Changes
- Sip amounts are no longer determined by item durability, rather by a custom tag called
Sipped. - The "Specialty Drinks" creative tab icon has been changed to the PDAPI Icon (a custom item only obtainable through commands)
- The current level must be used to obtain the Specialty Drink and Drink Addition managers
- use
Level.getSpecialtyDrinkManager()andLevel.getDrinkAdditionManager - Adds support for (and embeds) Chemicals 2.0.x, using
ConsumedInstancesandAbsorptionTypes
- Added an empty mug item for use in Pluto's Coffee and Tea Time
- Drinks in mugs can be given additions by right clicking on the cup with the ingredient
## Changes
- Sip amounts are no longer determined by item durability, rather by a custom tag called
Sipped. - The "Specialty Drinks" creative tab icon has been changed to the PDAPI Icon (a custom item only obtainable through commands)
- The current level must be used to obtain the Specialty Drink and Drink Addition managers
- use
Level.getSpecialtyDrinkManager()andLevel.getDrinkAdditionManager - Adds support for (and embeds) Chemicals 2.0.x, using
ConsumedInstancesandAbsorptionTypes