Random Block Rotation (ON WORLD GENERATION)

Started by scarfcrow on

Topic category: Help with MCreator software

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Block Rotation (ON WORLD GENERATION)

How do I make naturally-generating blocks (in this case, a grass replacement) have a random rotation (like grass)?

I managed to figure out how to do it with blocks around the player, but they noticeable correct themselves and reset if the player goes too far.

How do I make it permanent?

 

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could either: A)…
Sun, 04/06/2025 - 21:08

You could either:

A) Generate the blocks through a Feature, and generate from a list of blockstates with the property 'facing' set to different values. I would personally attempt to do it this way and you'd probably encounter the least difficulty with it.

B) Do things how you're doing them right now, but determine the rotation using the coordinates of the location that the block is placed in. This way they won't change if the player goes too far away and comes back. I'm not sure exactly what is causing the issue you describe but I think this might fix it.