"Random model offset" for blocks and plants

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



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.