All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Pluto's Drinks API

Pluto's Drinks API

by pluto7073 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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)
  • /drink command 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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Pluto's Drinks API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
12d ago 1
1.20.x
Fabric
12d ago 1
1.21.x
Fabric
12d ago 1
1.20.x
Fabric
12d ago 1
1.21.x
Fabric
15d ago 1
1.20.x
Fabric
15d ago 1
1.20.x
Fabric
16d ago 1
1.20.x
Fabric
20d ago 1
1.20.x
Fabric
1mo ago 1
1.20.x
Fabric
1mo ago 1
1.20.x
Fabric
1mo ago 1
1.20.x
Fabric
4mo ago 1
1.20.x
Fabric
7mo ago 1
1.20.x
Fabric
7mo ago 1
1.20.x
Fabric
7mo ago 1
1.20.x
Fabric
10mo ago 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
## Fixes
  • Drink actions aren't applied for Specialty Drinks
## Fixes
  • Drink actions aren't applied for Specialty Drinks
## Changes
  • 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
  • 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
> This version is still in beta, if any bugs are found please report them and the full release will come soon

## Changes
  • Updated to 1.21.1
## Fixes
  • Specialty drinks not taking into account base drink data
## Changes
  • Drink colors are now computed subtractively to get more accurate colors
  • To conform with Dynamic Registries in the 1.21.1 version, the drink_additions and specialty_drinks
folders have been moved to pdapi/drink_addition and pdapi/specialty_drink respectively. See wiki
for new datapack instructions if unclear

### API Changes
  • Color computation methods have been moved from DrinkUtil to the new ColorUtil class
## Fixes
  • Specialty drink base can't be found from an empty item stack, causing a crash
## Fixes
  • Parsing drink additions from item NBT can include null additions causing crashes
  • Client sends empty Drink and Addition registries to itself overriding newly received additions and drinks on Singleplayer
## Fixes
  • Client copy of specialty drinks and drink additions stored in wrong location causing crashes and errors when changing dimensions
## Fixes
  • Items with no/empty tags have issues stacking together
## Changes
  • 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
## Fixes
  • Drinks that have been drank from should not be editable with a workstation
## Additions
  • 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() and Level.getDrinkAdditionManager
  • Adds support for (and embeds) Chemicals 2.0.x, using ConsumedInstances and AbsorptionTypes
## Additions
  • 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() and Level.getDrinkAdditionManager
  • Adds support for (and embeds) Chemicals 2.0.x, using ConsumedInstances and AbsorptionTypes
Pluto's Drinks API Icon
Download Pluto's Drinks API
Select game version
Select platform