Scattering blocks to random positions?

Started by EnsurdFrndship on Thu, 05/28/2020 - 19:37

Topic category: Help with modding (Java Edition)

Last seen on 20:43, 10. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Scattering blocks to random positions?
Thu, 05/28/2020 - 19:37

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. 

Last seen on 23:27, 4. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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