Pluto's Drinks API

Pluto's Drinks API

Mod

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

Client and server FoodLibrary

3,266 downloads
1 follower
Follow Save

v2.0.1+1.20.6

Changelog

Note about this release: Any drinks with additions will lose all of their addition data when coming from 1.20.4 or below because of Minecraft's introduction of the Item Component system. Specialty Drinks will also lose their data and will become Uncraftable Drinks

Additions

  • Translations for Tags added

Changes

  • Updated to 1.20.5 and 1.20.6 (Crying rn pain and suffering that was)
  • The Drink Addition and Specialty Drink system has been moved over to custom Item Components (more info below)
  • Just like Recipes have in this version, OnDrinkSerializers and SpecialtyDrinkSerializers now use StreamCodecs to serialize packets

Drink Components

Pre-2.0.1 (1.20.4 and below), Drink data (Additions, Coffee Type, etc.) was stored in a CompoundTag under the key DrinkData. In here there were elements like Additions, a ListTag containing the IDs of the Additions added, or in Pluto's Coffee there was CoffeeType in brewed coffee which stored the Roast of coffee.

Drink Data has been split into several different components. Drink Additions use the pdapi:additions component, and Coffee Types in Pluto's Coffee use the plutoscoffee:coffee_type component.

Basically, if you wanted to give yourself an item with preset additions, here's the difference between versions

1.20.4 and below /give @s pdapi:example_drink{DrinkData:{Additions:["pdapi:ice","pdapi:milk","pdapi:sugar"]}}

1.20.5 and above /give @s pdapi:example_drink["pdapi:additions":["pdapi:ice","pdapi:milk","pdapi:sugar"]]

Dependencies

Files

PlutosDrinksAPI-1.20.6+2.0.1.jar(171.25 KiB) Primary Download
PlutosDrinksAPI-1.20.6+2.0.1-sources.jar(98.46 KiB) Download

Project members

pluto7073

Member

Details

Licensed MIT
Published a year ago
Updated 3 months ago