diff --git a/src/main/java/net/goldenstack/loot/LootFunction.java b/src/main/java/net/goldenstack/loot/LootFunction.java index 210688f..98bbe38 100644 --- a/src/main/java/net/goldenstack/loot/LootFunction.java +++ b/src/main/java/net/goldenstack/loot/LootFunction.java @@ -611,16 +611,16 @@ record CopyComponents(@NotNull List predicates, @NotNull Relevant public static final @NotNull BinaryTagSerializer SERIALIZER = Template.template( "conditions", Serial.lazy(() -> LootPredicate.SERIALIZER).list().optional(List.of()), CopyComponents::predicates, "source", RelevantTarget.SERIALIZER, CopyComponents::source, - "include", Template.>todo("data components").list().optional(), CopyComponents::include, - "exclude", Template.>todo("data components").list().optional(), CopyComponents::exclude, + "include", Serial.KEY.>map(ItemComponent::fromNamespaceId, DataComponent::namespace).list().optional(), CopyComponents::include, + "exclude", Serial.KEY.>map(ItemComponent::fromNamespaceId, DataComponent::namespace).list().optional(), CopyComponents::exclude, CopyComponents::new ); @Override public @NotNull ItemStack apply(@NotNull ItemStack input, @NotNull LootContext context) { if (!LootPredicate.all(predicates, context)) return input; - - throw new UnsupportedOperationException("Minestom currently does not support data components on blocks."); + + throw new UnsupportedOperationException("TODO: Implement Tag for blocks."); } }