Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| WhatsInTheBox-0.1.4.jar release | 38.76 KB | Nov 2, 2019 | 1.15-Snapshot | 40 | Download |
| WhatsInTheBox-0.1.3.jar release | 38.77 KB | Nov 1, 2019 | 1.15-Snapshot | 15 | Download |
| WhatsInTheBox-0.1.0.jar beta | 27.80 KB | Oct 30, 2019 | 1.15-Snapshot | 16 | Download |
Description
Tihs should be used in as a dependency in other mods. Not intended for regular game play
Current version
Whats in the Box
Is a basic api allowing the Client to receive information about LootTables on the server
Adding to Project
If you using fabric-example-mod as a base you'll need to add the follow to your build.gradle
repositories
{
maven { url 'https://jitpack.io' }
}
and add the follow to the dependencies block
modCompile "com.gitlab.biom4st3r:WhatsInTheBoxAPI:{version}"
include "com.gitlab.biom4st3r:WhatsInTheBoxAPI:{version}"
Run down
- The Main method you'll be needing is
WhatsInTheBox#requestLootTable(Identifier lootTableId).
— This will store a LootTable in LootTableStorage or LootTable.EMPTY if it wasn't a valid id.
- If the server permits it you can also use
WhatsInTheBox#requestAllLootTableIds().
— This will store all LootTableIds in LootTableStorage with null LootTables
Note
- This mod also enables
LootableContainerBlockEntitiesto store thereLootTableIdtag with the client(configurable). So you won't need to request that from the server; Just ask that client sideded BlockEntity
Get 0.05 TON 💎
Download
Add a comment