Scattering blocks to random positions?

Started by EnsurdFrndship on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Scattering blocks to random positions?

Hello,

    I have 3 goals in my making of a mod...

 

1. Scatter chests during 'world creation' to random parts of the world (all 'random positions' being underground).

2. Place 1 book in each chest.

3. Have the content of each book contain text from a random file within a directory. 

 

    How can I achieve this even if it requires some coding? Thank you. 

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess not the way you may…
Tue, 06/09/2020 - 17:52

I guess not the way you may like, but you could create a block that will spawn underground substituting rock and make as so if you break this block there is a random chance you will get one of the many custom itens you created that contains a text in its description. If you want exactly what you wrote you will need to code