Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
104 stars 27 forks source link

Wiki could use more examples on Loot tables #28

Open Azagwen opened 3 years ago

Azagwen commented 3 years ago

I started using ARRP for my mod's datapack stuff, but then I stumbled across a rather big blocking point, where I found myself unable to reproduce a vanilla loot table in code using the JLootTable methods.

The loot tables I was trying to reproduce were notably :

I would really appreciate if you could either put more examples or point me in the right direction for these 👍

-Aza

Azagwen commented 3 years ago

UPDATE :

I managed to reproduce the loot tables I aimed to make with ARRP, after understand how JCondition.parameter() worked !

Some additional documentation on this would still be welcome tho, but that's up to you.

NiChrosia commented 3 years ago

Could you send a comment with the code used for that, as I have no idea how to do the silk touch predicate?

Nevermind, found it in ATBYW