Skip to content

No way to get potions effects using peripheral.getItemDetail() ? #2266

@Da-shou

Description

@Da-shou

Hello,

I've recently been dabbling in this mod for fun and I absolutely love it. I've been making an inventory management program for a few days and unfortunately, I have not found a way to get the specific potions effects using the getItemDetail fuction from my storages. (Even though enchantments are there for enchanted items)

I believe this may have been caused by how potions effects storage has changed in one of the latest updates of 1.21.
Is there a way to get these potions effects without making an NBT lookup table for each vanilla potion ? And if not, I'd really love to have potions effects available with getItemDetail.

The other way I thought of doing this would be to ask for the item details through neoforge and get the effects from there, but that'd require a command computer and lock my project to neoforge, which i don't want.

Thanks a lot !

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-MinecraftThis affects CC's Minecraft-specific content.enhancementAn extension of a feature or a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions