#Cannot resolve method .getNbt(), .hasNbt()

7 messages · Page 1 of 1 (latest)

distant field
#

In 1.20.6 Minecraft replaced most of NBT's by Item Components

tired nimbus
#

ah

#

how do compontents differ?

#

nbt's were just really messy JSONs right?

buoyant viper
tired nimbus
#

I have managed to create an uncraftable potion with water_bottle.set(DataComponentTypes.POTION_CONTENTS, PotionContentsComponent.DEFAULT);
but how can I make it a water bottle?