Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
shuffle.zip
random_data.zip
random_data_*.zip
shuffle/
build/
dist/
Expand Down
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ This is a set of programs to randomise data about Minecraft.

Requires Python 3.6+ to run. (~~Experimental compiled builds are avaiable from the releases tab.~~ These are extra broken right now, please use Python to run.)

tl;dr just open randomize.bat if you are too lazy to figure out idk

## `resource_randomiser.py`

This randomises every single image, sound, shader, and language file of a resource pack and automatically installs it into your resource pack folder.

This has been tested on Minecraft 1.13.2 & 1.14, and likely works on other versions as well due to its safe way of randomising files.
~~This has been tested on Minecraft 1.13.2 & 1.14, and likely works on other versions as well due to its safe way of randomising files.~~

I only tested this once on 1.16-pre7 and I think it should work idk

The regular Minecraft resource pack is included by default. The images, sounds, and other files included in said resource pack are owned and created by Mojang AB and I
take no credit for creating them.
**The regular Minecraft resource pack is included by default. The images, sounds, and other files included in said resource pack are owned and created by Mojang AB and I
take no credit for creating them.**

### Usage

Expand All @@ -31,7 +35,9 @@ To use, simply run `resource_randomiser.py` in python3, or double click the exec

This randomises the Minecraft data pack, which includes files such as loot tables for random block drops, recipes, advancements, and experimentally structures (disabled by default, some configurations crash).

Has only been tested on the 1.14.3 data pack. This may not be fully compatible with custom data packs (especially randomised advancements). Please report any issues you have.
~~Has only been tested on the 1.14.3 data pack. This may not be fully compatible with custom data packs (especially randomised advancements). Please report any issues you have.~~

I tested it and it kinda works on 1.16-pre7 lol

### Usage

Expand All @@ -41,6 +47,13 @@ Has only been tested on the 1.14.3 data pack. This may not be fully compatible w

`python3 data_randomiser.py --norecipes --structures` - Enables structure randomisation and disables recipes.

`python3 data_randomiser.py --randomlootamount 64` - Items can drop up to 64 times (not amount of items but rather amount of loot)

`python3 data_randomiser.py --norecipes --noloottables --notags --noadvancements --randomlootamount 256` - Literally just Minecraft but loots are randomly generated up to 4 stacks

## Bugs

Please report any bugs for either program, especially on Windows and Mac, as they have had little testing. Feature requests are also allowed.
~~Please report any bugs for either program, especially on Windows and Mac, as they have had little testing. Feature requests are also allowed.~~

Please report bugs but I might not know how to fix but ill do best i can.

2 changes: 1 addition & 1 deletion assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def makepath(path):
destfolder = os.path.expanduser(os.path.join('~', 'Library', 'Application Support', 'minecraft'))
elif system.startswith('win'):
destfolder = os.path.expandvars(os.path.join('%APPDATA%', '.minecraft'))
with open('/home/noahkiq/.minecraft/assets/indexes/1.14.json') as f:
with open(destfolder+'/assets/indexes/1.16.json') as f:
data = json.load(f)
for key, value in data["objects"].items():
if '/lang/' in key.lower() or '.ogg' in key.lower():
Expand Down
Empty file added data/.mcassetsroot
Empty file.
Loading