- check_circle Functions
Published Jun 12th, 2019, 6/12/19 9:43 am
- 31,899 views, 0 today
- 4,008 downloads, 0 today
27
This datapack adds the ability to add loot to entities without replacing the default loot or replacing loot from other datapacks.
There are two function tags for every living entity:
These functions are executed as/at the entity with the given ID on death while it is living (so you can test for tags/NBT)
If no ID is given, the function gets executed as/at every living entity on death
These functions are executed as/at the player who killed the entity with the given ID
If no ID is given, the function gets executed as/at the player who killed a living entity
(The entity killed can be checked with @e[tag=cl_dead,limit=1,sort=nearest,distance=..128] )
In these functions, you can add commands you want to get executed when an entity is killed.
more detailed examples can be found on the wiki
Changelog:
V1.3:
Known Bugs:
If you've found any other bugs or have ideas, contact me via discord.
You can find all supported entity types here
There are two function tags for every living entity:
/data/custom_loot/tags/functions/killed/<ENTITY ID>
/data/custom_loot/tags/functions/killed
These functions are executed as/at the entity with the given ID on death while it is living (so you can test for tags/NBT)
If no ID is given, the function gets executed as/at every living entity on death
/data/custom_loot/tags/functions/killer/<ENTITY ID>
/data/custom_loot/tags/functions/killer
These functions are executed as/at the player who killed the entity with the given ID
If no ID is given, the function gets executed as/at the player who killed a living entity
(The entity killed can be checked with @e[tag=cl_dead,limit=1,sort=nearest,distance=..128] )
In these functions, you can add commands you want to get executed when an entity is killed.
more detailed examples can be found on the wiki
Changelog:
V1.3:
- fixed horses
- separated wolves/dogs (dog is broken because of a bug in Minecraft but when the bug gets fixed will work automatically)
- Tested in 1.14.4
- added function tag that gets executed as/at every living entity upon death
- added function tag that gets executed as/at every player who killed a living entity
- added missing tag
Known Bugs:
- If you kill an entity with a weapon that deals more than 1023 damage, the custom loot system won't work (This can't be fixed)
If you've found any other bugs or have ideas, contact me via discord.
You can find all supported entity types here
Credit | Created with MCscript by Stevertus |
Compatibility | Minecraft 1.14 |
to | Minecraft 1.15 |
Tags |
4324325
119
Create an account or sign in to comment.
When you publish your pack, please send me a PM. I'd really like to see what you came up with ;)
Try your code in this version and if this doesn't work you can join my discord and send me your code.
The instructions almost made sense but stopped short of being helpful and turned into a turn table of descriptions and instructions where it just goes back and forth but doesn't go long enough for either to be useful other than that they get the point across that the datapack is totally AWESOME.
for example: instructions should explain how to do stuff and then have an example of doing it, like in tutorial videos. Lots of descriptions of what the data pack does is cool but if the description and instructions are all mixed up its like a cheese cake with pumpkin on top, u cant eat the cake cause it has bits of pumpkin in it and tastes weird and u cant eat the pumpkin cause it squashed the cake and that makes it a traitor. maybe that metaphor makes less sense than the instructions but I reckon point is made.
and the example shown doesn't have the same stuff in it as in the .json files in the zip it cant make sense if it's only part of the table, like a coffee table with no legs to hold it up or wooden legs without a coffee table on top either wouldn't work to hold a cup of coffee, the loot table is bout the same I think in that if only part of it is shown as an example it can't be used or useful since its like half a coffee table.
I would really love to use this data pack but without clear instruction nothing makes sense and what little that does make sense makes me more confused.
Hopefully me pointing out what is confusing about the instructions and examples might help you to make it more clear to understand, not just for me but also for other people.
Thanks for all your hard work and awesomeness I greatly appreciate all the stuff ya'll geniuses come up with :D