Skip to content

Commit

Permalink
3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDank committed Jun 1, 2024
1 parent 6ac1f6c commit 1ed353a
Show file tree
Hide file tree
Showing 328 changed files with 49,764 additions and 46,904 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

- Minecraft music ( Slowed + Reverb ) > Youtube
- [Corality](https://modrinth.com/resourcepack/corality)
- [Fancy Glint](https://modrinth.com/resourcepack/fancy-glint)
- [Particles+](https://modrinth.com/resourcepack/particles+)
- [Among Us Undying Totem](https://www.planetminecraft.com/texture-pack/3d-sus-undying-totem/)
- [Enhanced Audio (Sound Pack)](https://www.curseforge.com/minecraft/texture-packs/enhanced-audio)
Expand All @@ -31,6 +30,10 @@
- [HardTop Vanillaccurate Pack x32](https://vanillaccurate.space/)
- [Motschen's Better Leaves](https://modrinth.com/resourcepack/better-leaves)

## ♦️ Broken / Removed ♦️

- [Fancy Glint](https://modrinth.com/resourcepack/fancy-glint)

## ♦️ Addon Pack Includes ♦️

- Coming Soon!
Expand Down
3 changes: 2 additions & 1 deletion base/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pack": {
"pack_format": 18,
"description": "\u00A7cdank\u00A7f.\u00A7cresource\u00A7f-\u00A7cpack \u00A7bv3.2.1\u00A7c by sir\u00A7f.\u00A7cdank"
"supported_formats": {"min_inclusive": 4, "max_inclusive": 99},
"description": "\u00A7cdank\u00A7f.\u00A7cresource\u00A7f-\u00A7cpack \u00A7bv3.2.2\u00A7c by sir\u00A7f.\u00A7cdank"
}
}
Binary file modified base/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 29 additions & 26 deletions dank.resource-pack-builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def prepare():
def file_downloader(url, file_name):
while True:
try:
response = requests.get(url, headers=headers, allow_redirects=True)
response = requests.get(url, headers=headers, allow_redirects=True, timeout=3)
response.raise_for_status()
file_size = int(response.headers.get('Content-Length', 0)) / 1024 / 1024
with open(file_name, "wb") as file:
Expand All @@ -38,7 +38,7 @@ def file_downloader(url, file_name):
rm_line()

def download_zips():

os.chdir("downloads")

to_download_urls = []
Expand Down Expand Up @@ -68,16 +68,16 @@ def download_zips():
print(clr(f"\n > Finished Downloads in {time_taken} seconds\n"))
break
except:
input(clr(f"\n > Failed to download files! Do not use [ Ctrl + C ]! Press [ENTER] to try again... ", 2))
input(clr("\n > Failed to download files! Do not use [ Ctrl + C ]! Press [ENTER] to try again... ", 2))
cls()

os.chdir("..")

def merge_dicts(dict1, dict2):
"""
Recursively merge two dictionaries.
Recursively merge two dictionaries, sorting the keys alphabetically.
"""
for key, value in dict2.items():
for key, value in sorted(dict2.items(), key=lambda x: x[0]):
if key in dict1 and isinstance(dict1[key], dict) and isinstance(value, dict):
dict1[key] = merge_dicts(dict1[key], value)
elif key in dict1 and isinstance(dict1[key], list) and isinstance(value, list):
Expand All @@ -88,15 +88,17 @@ def merge_dicts(dict1, dict2):

def merge_json_files(file1_path, file2_path):

file1_data = open(file1_path, 'r', encoding='utf-8').read().splitlines()
file2_data = open(file2_path, 'r', encoding='utf-8').read().splitlines()

with open(file1_path, 'r', encoding='utf-8') as file:
file1_data = file.read().splitlines()
with open(file2_path, 'r', encoding='utf-8') as file:
file2_data = file.read().splitlines()

file1_data = "\n".join(line for line in file1_data if not line.strip().startswith("//"))
file2_data = "\n".join(line for line in file2_data if not line.strip().startswith("//"))

file1_data = json.loads(file1_data)
file2_data = json.loads(file2_data)

merged_data = merge_dicts(file1_data, file2_data)
return merged_data

Expand All @@ -108,12 +110,13 @@ def copy_and_overwrite(src, dst):
if os.path.isdir(src_item):
if not os.path.isdir(dst_item):
os.makedirs(dst_item)
copy_and_overwrite(src_item, dst_item)
copy_and_overwrite(src_item, dst_item)
else:
if dst_item.endswith(".json"):
if os.path.isfile(dst_item):
combined_file_data = json.dumps(merge_json_files(src_item, dst_item), indent=4)
open(dst_item, "w").write(combined_file_data)
with open(dst_item, "w", encoding="utf-8") as file:
file.write(combined_file_data)
print(clr(f" > Merged [ {dst_item} ]"))
continue
shutil.copy(src_item, dst_item)
Expand All @@ -129,9 +132,9 @@ def extract_zips():
copy_and_overwrite("tmp", "dank.resource-pack")

def cleanup():

os.chdir("dank.resource-pack")

paths = [
"readme.txt",
"Changelog.txt",
Expand All @@ -140,7 +143,7 @@ def cleanup():
"LICENSE",
"LICENSE.txt",
]

for path in paths:
if os.path.exists(path):
try:
Expand All @@ -152,7 +155,7 @@ def cleanup():
print(clr(f"Failed to remove {path}: {e}"))

os.chdir("..")

shutil.rmtree("tmp")

def compress_to_zip():
Expand Down Expand Up @@ -191,7 +194,7 @@ def save_sha1():

with open('dank.resource-pack.zip', 'rb') as file:
sha1_hash = hashlib.sha1(file.read()).hexdigest()
with open('sha1.txt', 'w') as file:
with open('sha1.txt', 'w', encoding="utf-8") as file:
file.write(sha1_hash)

if __name__ == "__main__":
Expand All @@ -201,17 +204,17 @@ def save_sha1():
os.chdir(os.path.dirname(os.path.realpath(__file__)))
headers = {'User-Agent': 'dankware', 'Content-Type': 'application/zip'}

print(clr(f"\n > Preparing..."))
print(clr("\n > Preparing..."))
prepare()
print(clr(f"\n > Checking Downloaded Zips..."))
print(clr("\n > Checking Downloaded Zips..."))
download_zips()
print(clr(f"\n > Extracting Zips...\n"))
print(clr("\n > Extracting Zips...\n"))
extract_zips()
print(clr(f"\n > Copying and Overwriting Base..."))
print(clr("\n > Copying and Overwriting Base..."))
copy_and_overwrite("base", "dank.resource-pack")
print(clr(f"\n > Cleaning Up..."))
print(clr("\n > Cleaning Up..."))
cleanup()
print(clr(f"\n > Compressing to Zip...\n"))
print(clr("\n > Compressing to Zip...\n"))
compress_to_zip()
print(clr(f"\n > Saving SHA-1...\n"))
save_sha1()
print(clr("\n > Saving SHA-1...\n"))
save_sha1()
Binary file modified dank.resource-pack.zip
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dank.resource-pack/assets/.DS_Store
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions dank.resource-pack/assets/forge/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"fml.menu.mods": "Mods",
"fml.menu.mods.title": "Mods"
"fml.menu.mods": "\uDBE8\uDD90 Mods"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dank.resource-pack/assets/icons/textures/chat/gamemodes.png
Binary file modified dank.resource-pack/assets/icons/textures/gui/item_groups.png
Diff not rendered.
Binary file modified dank.resource-pack/assets/icons/textures/items/tooltip/armor.png
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"DirectorySortOption":0,"DirectorySortDirection":0,"DirectoryGroupOption":0,"LayoutMode":4,"GridViewSize":100,"ColumnsViewModel":{"TagColumn":{"UserCollapsed":false,"Length":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":200.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":200.0},"NameColumn":{"UserCollapsed":false,"Length":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":210.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":209.70873786407768},"StatusColumn":{"UserCollapsed":false,"Length":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":50.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":50.0},"DateModifiedColumn":{"UserCollapsed":false,"Length":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":210.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":209.70873786407768},"OriginalPathColumn":{"UserCollapsed":false,"Length":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":200.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":200.0},"ItemTypeColumn":{"UserCollapsed":false,"Length":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":210.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":209.70873786407768},"DateDeletedColumn":{"UserCollapsed":false,"Length":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":200.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":200.0},"DateCreatedColumn":{"UserCollapsed":true,"Length":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":0.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":200.0,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":200.0},"SizeColumn":{"UserCollapsed":false,"Length":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"LengthIncludingGridSplitter":{"Value":210.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLength":{"Value":209.70873786407768,"GridUnitType":1,"IsAbsolute":true,"IsAuto":false,"IsStar":false},"UserLengthPixels":209.70873786407768},"TotalWidth":862.8349514563107},"IsAdaptiveLayoutOverridden":false}
Binary file modified dank.resource-pack/assets/icons/textures/menu/options.png
Binary file modified dank.resource-pack/assets/icons/textures/menu/world_creation.png
Diff not rendered.
Binary file removed dank.resource-pack/assets/minecraft/.DS_Store
Binary file not shown.
Loading

0 comments on commit 1ed353a

Please sign in to comment.