Loot Table event #138
LLytho
started this conversation in
Feature Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
as there is already a bit code for loot tables and I have free time currently I would like to implement more into the loot table event.
For testing I currently only implemented for myself a
rawModify
methodblock.loot_tables
is just the current name. Because all loot tables are running through the same process I would like to change it toloot_tables
event.And please ignore the dumb direct json changes :D
To make it easier for everyone to modify or create loot tables an example method could be look like this:
Whats left?
event.getEntityLoot("creeper")
which returns all tables through all namespacesloot_modifiers
for forge and fabric? and create an event for it.Current implementation
The current implementation injects into the
LootTables:accept
method before fabric and forge calling there own loading stuff.json files reading
->inject our stuff
->fabric/forge do stuff
->some validation
Any ideas? tell me!
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions