#Cannot resolve method .getNbt(), .hasNbt()
7 messages · Page 1 of 1 (latest)
This is a great article about custom item component data, but how can I edit vanilla item components? I would like to change a potion type.
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?