Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki could use more examples on Loot tables #28

Open
Azagwen opened this issue Apr 23, 2021 · 2 comments
Open

Wiki could use more examples on Loot tables #28

Azagwen opened this issue Apr 23, 2021 · 2 comments

Comments

@Azagwen
Copy link

Azagwen commented Apr 23, 2021

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
Copy link
Author

Azagwen commented Apr 23, 2021

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
Copy link
Contributor

NiChrosia commented Aug 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants