NTNU-GDMC / GDMC

1 stars 1 forks source link

update nbt_builder #16

Closed KutsunaSubaRya closed 1 year ago

KutsunaSubaRya commented 1 year ago

Usage of nbt_builder

  1. absPath = getNBTAbsPath(name, type, level)
    • get the absolute path of the nbt file.
      • name, level can be found in src/building_util/building.py
      • type can be found in src/building_util/building_info.py
  2. nbt_struct = nbt.NBTFile(absPath)
    • get the nbt structure.
  3. buildFromStructureNBT(nbt_struct, baseX, baseY, baseZ, biome)
    • build the structure
    • biome default is "".