Help reading .nbt structures files and placing structure one block at a time in world.

Started by Yue on

Topic category: General discussion

Last seen on 16:14, 26. Mar 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help reading .nbt structures files and placing structure one block at a time in world.

Looking for a bit of help and guidance with creating a builder block which generates a structure; however does so one block at a time.

So the block needs to: 

* read a selected .nbt file

* read the max x, y & z coordinates of that .nbt file

* index a block with a given xyz position from the .nbt file

* place the read block in the world if enough energy is stored within the builder block.

Unfortunately I'm struggling to find any tutorials or guidance online which'll help me achieve this in a block by block placement method. 

Can anyone help, or point me towards material which describes this process?

many thanks in advance. Yue.

Last seen on 22:27, 12. Feb 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you will need to convert nbt…
Sat, 02/25/2023 - 17:23

you will need to convert nbt structure to some usable format and not only extension.

If you don't know, mcreator can't just take block from specific position from structure so you need to make procedure that opens converted structure file and reads if and then places correct block.

Last seen on 16:14, 26. Mar 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see, thanks for that.  How…
Sat, 02/25/2023 - 17:30

I see, thanks for that. 

How would i go about converting the .nbt via a procedure and then reading the resultant file to achieve to get that xyz position data?