Skip to content
Discussion options

You must be logged in to vote

Figured it out :3
I was missin' the getStateForPlacement() and/or createBlockStateDefinition() methods in my class!

public class CarvedPalePumpkinBlock extends HorizontalDirectionalBlock {
    public static final MapCodec<CarvedPalePumpkinBlock> CODEC = simpleCodec(CarvedPalePumpkinBlock::new);
    public static final EnumProperty<Direction> FACING;

    public @NonNull MapCodec<? extends CarvedPalePumpkinBlock> codec() {
        return CODEC;
    }

    public CarvedPalePumpkinBlock(final BlockBehaviour.Properties properties) {
        super(properties);
        this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH));
    }

    public BlockState getStateF…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bxtiivok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
1 participant