ARRP icon indicating copy to clipboard operation
ARRP copied to clipboard

Wiki could use more examples on Loot tables

Open Azagwen opened this issue 3 years ago • 2 comments

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 :

  • the bookshelf loot table (silk touch predicate)
  • the slab loot table but with a silk touch predicate for both single and double slab drops.

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

-Aza

Azagwen avatar Apr 23 '21 06:04 Azagwen

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.

Azagwen avatar Apr 23 '21 08:04 Azagwen

~~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

NiChrosia avatar Aug 05 '21 00:08 NiChrosia