Have you ever wanted loot explosions in Minecraft, like in
Now you can with this datapack. Once in a while a block, entity, structure chest, event or archaeological discovery will erupt into random items.
If you used github and have programed in python than you can skip reading this.
For everyone else, click the file readme.pdf or follow the written guide below:
- Click on green button Code
- Navigate down to download
- Click download
- Unpack the file by right clicking file and select 7-Zip.
You should now have a folder called lootbox with files:- lootbox.zip
This is a finished datapack, if you do not want to generate your own - readme.pdf
Contains a step by step instruction with pictures - readme.md
In this file you will find the instruction seen on github. - lootbox.py
Lasty this file contains the programm for generating your own lootbox datapack.
- lootbox.zip
If you want to generate your own datapack read on, other wise have fun 😁
- google python and download the lates release
- install python
- open windows searchbar
- type in
%appdata%and hit enter - click
.minecraft - click
versions - navigate to the lates version and opne folder
- unzip the
.jarfile - click data
- click minecraft
- copy loot_tables
- paste into the folder containing lootbox.py
- in the same folder click on the adress bar
- type in
cmdand hit enter, it should open cmd - type
python --versionto confirm pythons installation - type
python lootnox.pyit will generate a file settings. - open settings
- modify at will and save
- back at the command prompt type again
python lootbox.pyfollowed optionaly by your seed.
The seed has to be an integer otherwise it will be random. - wait, it may take 30 seconds for the pack to be generated
- after it finished there will be a file named
lootbox.zipThis is the datapack file.\
Enjoy!
This repository will be maintained at will. If you want to contibute you can push your own changes or fork the repository.
The code is mostly commented or self explanetory.
Setting.json:
version: this is the version the datapack is designed for. As of making this guide the current version is 1.20 whice is represented as version 15. Here is just a typo.
Type: Integer
box count: this number indicated how many different loottables for the lootboxes will be generated
Type: Integer
chance: how common the loot explosions are.
Type: Decimal
min & max: how many items are drops when a loot explosion happens
Type: Integer
IsUnit: some loot tables consist of many different items, if this is set True that all the items of the same loot tables will be in the same box.
Type: Treu/False
- readme.pdf, a guide to build one own datapack
- readme.md:
- added setting documentation
- added some badges
- switch to
jsoncauseyamlisn't not out of the box supported on windows
- unloaded the repository to github