
Attempt at intergration.
Tobypup64 opened this issue ยท 3 comments
So, to preface, I do not truly know what I am doing. Everything that I have done, I followed ChatGPT's advice to get there. If that makes me sound clueless, that's because I am.
I am attempting to use LootIntergrations to have items from Epic Knights appear in Lootr chests. I made a json file of the items I want to include, and set it in the following mod folder's directory:
[Lootintergrations-1.20.1-3.7.jar\data\lootintergrations\loot_tables\chests]
I have also set an intergration json in lootr via the following path:
[lootr-forge-1.20-0.7.34.85.jar\data\lootr\loot_tables\chests]
attached are the two files listed. Any help would be fantastic.
Hello friends,
I've been working on a lot of compatibility tasks recently and might have some insight for you. As a rule of thumb, if you (like me) don't have coding knowledge, just copy vanilla until it works.
- The namespace of Epic Knights is
magistuarmory
. This is used when specifying items and paths for loot tables and their integrations. -
- For example, the Knight Armor's actual ID is
magistuarmory:knight_chestplate
. Load up a creative world, press F3+H to display advanced tooltips and check the IDs of the items you'd like to add to your loot table.
- For example, the Knight Armor's actual ID is
- -- Similarly, make sure that your integration file specifies the path correctly. Currently, it seems, you added a loot table to Lootr (custom_loot_intergration), which, when used, is supposed to call upon another loot table called
epicknights:custom_loot
. Nothing tells Lootr to use this loot table and the one it is trying to call doesn't exist, since your custom loot table is titled "epic_knights", not "custom_loot".
Loot Integrations does not integrate anything by default, but it is customizable via datapacks. That means, you either create your own, or you dive deep in the archive and add .json files to the existing mods. I find the second option easier, so here's how to go about it.
- Fix the IDs in your custom loot table. So far I found that some functions like custom names and enchantments aren't supported and make the integration fail entirely. You aren't using any, so adding the correct IDs is enough. I can recommend this loot table generator:
- Create the injection file in [Lootintergrations-1.20.1-3.7.jar\data\lootintergrations\loot. It's a very simple file, where you can specify the loot table into which you are integrating as well as the one from which you are injecting items. In your case, it will look something like this:
{
"loot_table": "lootintegrations:chests/epic_knights",
"max_result_itemcount": 9,
"integrated_loot_tables": {
"lootr:chests/specific chests into which you are adding items": 3
}
}
If Lootr just makes loot player-specific, it might not use its own loot tables at all, just adding custom code to share vanilla drops. In this case, you will need to inject into the vanilla loot table.
Consider the weights of vanilla and Lootr drops (if there are any) to make sure the custom items are not excluded based on chance.
For testing, use the command /give @s chest{BlockEntityTag:{LootTable:"lootr:chests/specific chest into which you are adding items"}}
. This will give you a chest pre-filled with the loot table you name in the command. If such a loot table doesn't exist, you will get an empty chest instead.
Good luck!
Bro can I have your discord or any social media cause I'm really stuck finding answers
Hello friends,
I've been working on a lot of compatibility tasks recently and might have some insight for you. As a rule of thumb, if you (like me) don't have coding knowledge, just copy vanilla until it works.
* The namespace of Epic Knights is `magistuarmory`. This is used when specifying items and paths for loot tables and their integrations. * * For example, the Knight Armor's actual ID is `magistuarmory:knight_chestplate`. Load up a creative world, press F3+H to display advanced tooltips and check the IDs of the items you'd like to add to your loot table. * -- Similarly, make sure that your integration file specifies the path correctly. Currently, it seems, you added a loot table to Lootr (custom_loot_intergration), which, when used, is supposed to call upon another loot table called `epicknights:custom_loot`. Nothing tells Lootr to use this loot table and the one it is trying to call doesn't exist, since your custom loot table is titled "epic_knights", not "custom_loot".
Loot Integrations does not integrate anything by default, but it is customizable via datapacks. That means, you either create your own, or you dive deep in the archive and add .json files to the existing mods. I find the second option easier, so here's how to go about it.
1. Fix the IDs in your custom loot table. So far I found that some functions like custom names and enchantments aren't supported and make the integration fail entirely. You aren't using any, so adding the correct IDs is enough. I can recommend this loot table generator: 2. Create the injection file in [Lootintergrations-1.20.1-3.7.jar\data\lootintergrations\loot. It's a very simple file, where you can specify the loot table **into which you are integrating** as well as the one **from which you are injecting items**. In your case, it will look something like this:
{ "loot_table": "lootintegrations:chests/epic_knights", "max_result_itemcount": 9, "integrated_loot_tables": { "lootr:chests/specific chests into which you are adding items": 3 } }
If Lootr just makes loot player-specific, it might not use its own loot tables at all, just adding custom code to share vanilla drops. In this case, you will need to inject into the vanilla loot table. Consider the weights of vanilla and Lootr drops (if there are any) to make sure the custom items are not excluded based on chance. For testing, use the command
/give @s chest{BlockEntityTag:{LootTable:"lootr:chests/specific chest into which you are adding items"}}
. This will give you a chest pre-filled with the loot table you name in the command. If such a loot table doesn't exist, you will get an empty chest instead.Good luck!
Bro can I have your discord or any social media cause I'm really stuck finding answers