"Reaction to pistons" option for blocks

Upvotes: 2
Issue description

This is (yet) another property determined by the material, but it's possible to override it with this piece of code:

public EnumPushReaction getMobilityFlag(IBlockState state) {
	return EnumPushReaction.REACTION;
}

The possible reactions are:

  • NORMAL,
  • DESTROY: pistons break the block when extending (e.g. replaceable plants, pumpkins)
  • BLOCK: pistons won't extend (e.g. obsidian, bedrock)
  • PUSH_ONLY: the block won't be pulled back by sticky pistons (e.g. glazed terracotta)
  • IGNORE: not really sure, seems to behave like PUSH_ONLY

Issue comments

Developer Submitted by Klemen on Sun, 09/08/2019 - 09:16

We will consider adding this option in the future.

Developer Submitted by Klemen on Mon, 09/09/2019 - 13:25

The ticket is open and this is planned to be added, DKMK100.