#Is there a better way to add vanilla blocks to a custom block tag? (1.21.8)

6 messages · Page 1 of 1 (latest)

small helm
#

Is this the only way to do it?

    @Override
    protected void configure(RegistryWrapper.WrapperLookup wrapperLookup) {
        getTagBuilder(FERTILIZABLE_BLOCKS)
                .add(Identifier.of("minecraft:farmland"));
    }
wise walrus
#

well don't overwrite

#

lesson 1 of mixins: don't use @override unless absolutely necessary

small helm
#

sorry, new to this. Just going through the docs section by section and on datagen right now. This isn't a mixin I believe?

wise walrus
small helm
#

Anyway found the answer, missed this line in the docs

        .add(Identifier.ofVanilla("oak_planks"))

guess its nots possible to do without having to find the vanilla identifier.

I'll understand what a mixin is when I get to that part, thanks anyway brother :)