"Random model offset" for blocks and plants

Status
Fixed
Issue description

With this piece of code, the block model can be offset by a random amount on the 3 axis, based on where it's placed

public Block.EnumOffsetType getOffsetType() {
	return Block.EnumOffsetType.NONE;
}

The possible values are:

  • NONE, used by most blocks
  • XZ, used by flowers
  • XYZ, used by tall grass

It could be used to create grass-like plants, or plants that need to be centered.

(It's also possible to create custom model offsets by overriding the getOffset method found in Block.java)

Issue comments

is there something that does the reverse? I made saplings for trees using plants, but the models are offset like flowers and grass