Skip to content

Commit

Permalink
Fixes for big build mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
RavinMaddHatter committed Jun 26, 2024
1 parent b3dcc1c commit a3c3af4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions armor_stand_geo_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def export_big(self, pack_folder):
geometries[layer_name]["description"]["visible_bounds_height"] = 5120
geometries[layer_name]["description"]["visible_bounds_offset"] = [0, 1.5, 0]
geometries[layer_name]["bones"]=[{"name": "ghost_blocks","pivot": [0, 0, 0]},## i am not sure this should be this value for pivot
{"name": "layer_"+str(i),"parent": "ghost_blocks","pivot": [0, 0, 0]}]## i am not sure this should be this value for pivot

{"name": layer_name,"parent": "ghost_blocks","pivot": [0, 0, 0]}]## i am not sure this should be this value for pivot

## Here is the bug....
for key in self.blocks.keys():
layer_name = self.blocks[key]["parent"]
geometries[layer_name]["bones"].append(self.blocks[key])
Expand Down
2 changes: 2 additions & 0 deletions structura.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def runFromGui():

structura_base=structura(packName.get())
structura_base.set_opacity(sliderVar.get())
if len(icon_var.get())>0:
structura_base.set_icon(icon_var.get())
if debug:
print(models)

Expand Down
6 changes: 4 additions & 2 deletions structura_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def make_big_model(self,offset):
self.structure_files[""]={}
self.structure_files[""]["offsets"]=[0,0,0]
self.structure_files[""]["offsets"][1]= 0

for i in range(12):
layers=12
if (struct2make.get_size()[1]<=12):
layers=struct2make.get_size()[1]
for i in range(layers):
self.armorstand_entity.add_model(str(i))
self.rc.add_geometry(str(i))
self.big_offset=offset
Expand Down
7 changes: 3 additions & 4 deletions structure_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ def get_size(self):
return self.size
def get_block_list(self, ignored_blocks=["minecraft:air"]):
block_counter = {}
i=-2
i=0-2
block_array=array(self.blocks)
for block in self.palette:
i+=1
for i in range(len(self.palette)):
block = self.palette[i]
name=block["name"]
if not(name in ignored_blocks):

if name in self.block_names.keys():
variant="default"
for state in block["states"].keys():
Expand Down

0 comments on commit a3c3af4

Please sign in to comment.