Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockStateExtensions and BlockExtensions "canSustainPlant" do not work #21

Open
kleiders3010 opened this issue Nov 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kleiders3010
Copy link

Tested with:

public class TestBlock extends Block implements BlockExtensions {
	public static BlockBehaviour.Properties PROPERTIES = FabricBlockSettings.of(Material.GRASS).sound(SoundType.GRAVEL).strength(1f, 10f);

	public TestBlock() {
		super(PROPERTIES);
	}

	@Override
	public boolean canSustainPlant(BlockState state, BlockGetter world, BlockPos pos, Direction facing, IPlantable plantable) {
		return true;
	}
}

And also tried the same with BlockStateExtensions, neither worked; Doesn't seem to be anything at all.

@AlphaMode
Copy link
Member

AlphaMode commented Nov 29, 2022

This probably needs to be moved to a separate interface as leaving it in block would probably compromise mod compatibility

@TropheusJ TropheusJ added the bug Something isn't working label Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants