Перейти к содержимому
Mineforgian

Pluto's Drinks API

A small little API Mod for the Pluto's Drinks Series

Загрузки
5K
Подписчики
1
Обновлён
26 июня 2026 г.
Лицензия
MIT

Опубликован 18 марта 2024 г.

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.

Центр версий

21 версий
  • Релиз262 КБ
  • Релиз264 КБ
  • Релиз264 КБ
  • Релиз264 КБ
  • Релиз240 КБ
  • Релиз196 КБ
  • Релиз196 КБ
  • Релиз189 КБ
  • Релиз175 КБ
  • Релиз175 КБ
  • Бета171 КБ
  • Бета166 КБ
  • Бета166 КБ
  • Бета165 КБ
  • Бета160 КБ
  • Бета94 КБ
  • Бета98 КБ
  • Бета83 КБ
  • Бета83 КБ
  • Бета84 КБ

Ченджлог

1.20.1+0.4.4+build.154Релиз1.20, 1.20.1 · 26 июня 2026 г.

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
1.20.1+0.4.3+build.144Релиз1.20, 1.20.1 · 12 апреля 2026 г.

Fixes

  • Drinks that have been drank from should not be editable with a workstation
1.20.1+0.4.2+build.141Релиз1.20, 1.20.1 · 6 апреля 2026 г.

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
1.20.1+0.4.1+build.139Релиз1.20, 1.20.1 · 6 апреля 2026 г.

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
0.3.14+1.20.1Релиз1.20, 1.20.1 · 27 декабря 2025 г.

Changes

  • Server config is no longer controlled by gamerules, and now uses a server config.
    • Modmenu can be used to edit the config in game, or you can edit the pdapi_server.json in the config folder
    • Cloth Config is required to edit the config using ModMenu
  • There's also a new client config, where you can edit Shaking settings (pdapi_client.json)
0.3.12+1.20.1Релиз1.20, 1.20.1 · 29 мая 2025 г.

Additions

  • The sipping feature from bartending has been added to PDAPI, now all drinks inheriting AbstractCustomizableDrinkItem are drank in sips
    • Total ounces are determined via base drink and additions added

Changes

  • Drink Additions now have a volume component that is used to determine sip size. Default is 0
    • Built in addition volumes:
      • Chorus Fruit - 0.25oz
      • Glow Berries - 0.25oz
      • Honey - 0.25oz
      • Ice - 4oz
      • Milk - 1oz
      • Sugar - 0.25oz
      • Pumpkin Slice (farmersdelight) - 0.25oz
  • Specialty drinks have an optional volume component, if not specified then volume will be determined from base and additions
  • Items cannot be added to drinks that have already been partially consumed
0.3.11+1.20.1Релиз1.20, 1.20.1 · 12 января 2025 г.

Changes

  • Specialty drinks are now rendered using the model of their base item
    • Basically they are rendered as if they were their base item but with the specified color in the drink
  • In progress items are now based on recipes, and can be added via datapacks.

Fixes

  • Fixed a weird bug involving the amount of ingredients displayed in Drink Addition displays in REI
0.3.9+1.20.1Релиз1.20, 1.20.1 · 29 декабря 2024 г.

0.3.9

  • Drink additions can now have decimals in their chemical definitions
  • Specialty drinks now auto-load the amount of chemicals and all of the actions in their steps and will apply these when drank even if they aren't specified. Any chemicals specified will be added onto these
  • REI Support for plain drink additions, to see all the items that can be added to drinks

0.3.6-8

  • Fixed an error with REI caused by null problems :/
  • Specialty drinks now give the correct empty glass/bottle associated with the base drink

0.3.4-5

  • Datagen support for specialty drinks

0.3.3

  • Codecs are now used for additions and specialty drinks, and Chemicals are now placed in an object named "chemicals" in the json to match the 1.20.4+ versions
  • The "type" field in Specialty Drinks is no longer a thing, and "base" is now an object where you can define the base item for the drink
    • This contains a "type" field and whatever other fields are required depending on the type
      • "pdapi:item": The most common. Requires "item" which is an ID of the base item
      • "plutoscoffee:brewed_coffee": Added by PlutosCoffee, Requires "coffee" which is the ID of the specific coffee type to match
      • "teatime:tea": Added by TeaTime, requires "tea" which is the id of the tea type to match

Комментарии

Загружаем…