minecraft-data icon indicating copy to clipboard operation
minecraft-data copied to clipboard

Entity loot tables

Open TheDudeFromCI opened this issue 3 years ago • 3 comments

This would be significantly useful information to use. Such as what items are dropped and if only dropped under a specific condition, such as player killed or naturally killed. This information could also contain information such as the percentage chance of dropping.

Some information, such as conditionals, would need to be entered manually. However, thankfully, this is only a small number of entities that have special conditions like that.

Some examples could be that a Drown only drops tridents on PC edition if they spawned naturally, holding the trident. Or pigs dropping cooked pork when killed from fire.

This information was discussed on the Discord server yesterday, and can largely be collected by pulling from the /data folder within the Minecraft jar.

TheDudeFromCI avatar Jul 17 '20 06:07 TheDudeFromCI

Added data for versions 1.14+ as of https://github.com/PrismarineJS/minecraft-data/pull/324. Still missing data for versions 1.13 and below.

TheDudeFromCI avatar Oct 09 '20 04:10 TheDudeFromCI

Is it taboo to include the JSON loot data found in server.jar/data/minecraft/loot_tables directly in this package?

The block loot data from server.jar/data/minecraft/loot_tables/blocks/*.json are useful to me as well, because e.g. Lapis Lazuli Ore drops 4-9 lapis_lazuli and is relevant to understanding the expected utility of a Lapis Lazuli Ore block (utility of durability damage of mining tool + utility of 6.5 lapis lazulis).

dsamarin avatar Apr 16 '21 00:04 dsamarin

Is it taboo to include the JSON loot data found in server.jar/data/minecraft/loot_tables directly in this package?

The block loot data from server.jar/data/minecraft/loot_tables/blocks/*.json are useful to me as well, because e.g. Lapis Lazuli Ore drops 4-9 lapis_lazuli and is relevant to understanding the expected utility of a Lapis Lazuli Ore block (utility of durability damage of mining tool + utility of 6.5 lapis lazulis).

Currently, we are trying to avoid using Minecraft assets directly in the source code here. You can always extract the assets manually. Alternatively, you can also try asking this issue on the https://github.com/PrismarineJS/minecraft-assets repo, since that one contains all of the extracted Minecraft data already. It makes more sense putting the raw loot tables in there.

TheDudeFromCI avatar Apr 17 '21 00:04 TheDudeFromCI