"Random model offset" for blocks and plants

Upvotes: 3
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

Nice idea and thanks for the example. We will consider adding this.