- check_circle Functions
Published Feb 27th, 2020, 2/27/20 8:19 pm
- 12,198 views, 1 today
- 607 downloads, 0 today
268
This project has been discontinued and will not be updated!
This datapack can be used for regeneratable loot chests on servers! Look below on how to customize the loot table. right out of the download folder the loot is the same as mob spawners with a custom loot key that has nbt.
Customizability (settings UI)
* Show/hide bossbar - will show when the loot will be rest
* Auto Reset - will automatically reset the loot-based off of seconds
* Actionbar reset- this will notify all players via the action bar (above Hotbar) when loot has been reset
* Sound Reset - this will notify all players via bell sound when loot has been reset.
* customize reset time (in ticks) default: 1200 (1200Tick=1Min) Tick Converter
Useful Commands:
Set loot chest command - remove the"#" with a number between 1-5
/function loot:data/set/loot_#
Open settings UI/function loot:settings
Manual loot reset/function loot:reset
Remove all loot/function loot:remove
How To Customize The Loot
All loot tables are located below:
Or use this generator: https://minecraft.tools/en/loots.php
pack/data/minecraft/loot_tables/chests/loot_#
Below is what the loot table looks like.Or use this generator: https://minecraft.tools/en/loots.php
Example Loot Table:
{ "pools": [ { "rolls": { "min": 1, "max": 3 }, "entries": [ { "type": "item", "name": "minecraft:saddle", "weight": 20 }, { "type": "item", "name": "minecraft:golden_apple", "weight": 15 }, { "type": "item", "name": "minecraft:enchanted_golden_apple", "weight": 2 }, { "type": "item", "name": "minecraft:music_disc_13", "weight": 15 }, { "type": "item", "name": "minecraft:music_disc_cat", "weight": 15 }, { "type": "item", "name": "minecraft:name_tag", "weight": 20 }, { "type": "item", "name": "minecraft:golden_horse_armor", "weight": 10 }, { "type": "item", "name": "minecraft:iron_horse_armor", "weight": 15 }, { "type": "item", "name": "minecraft:diamond_horse_armor", "weight": 5 }, { "type": "item", "name": "minecraft:book", "weight": 10, "functions": [ { "function": "enchant_randomly" } ] } ] }, { "rolls": { "min": 1, "max": 4 }, "entries": [ { "type": "item", "name": "minecraft:iron_ingot", "weight": 10, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 4 } } ] }, { "type": "item", "name": "minecraft:gold_ingot", "weight": 5, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 4 } } ] }, { "type": "item", "name": "minecraft:bread", "weight": 20 }, { "type": "item", "name": "minecraft:wheat", "weight": 20, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 4 } } ] }, { "type": "item", "name": "minecraft:bucket", "weight": 10 }, { "type": "item", "name": "minecraft:redstone", "weight": 15, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 4 } } ] }, { "type": "item", "name": "minecraft:coal", "weight": 15, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 4 } } ] }, { "type": "item", "name": "minecraft:melon_seeds", "functions": [ { "function": "set_count", "count": { "min": 2, "max": 4 } } ], "weight": 10 }, { "type": "item", "name": "minecraft:pumpkin_seeds", "functions": [ { "function": "set_count", "count": { "min": 2, "max": 4 } } ], "weight": 10 }, { "type": "item", "name": "minecraft:beetroot_seeds", "functions": [ { "function": "set_count", "count": { "min": 2, "max": 4 } } ], "weight": 10 } ] }, { "rolls": 3, "entries": [ { "type": "item", "name": "minecraft:bone", "weight": 10, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 8 } } ] }, { "type": "item", "name": "minecraft:gunpowder", "weight": 10, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 8 } } ] }, { "type": "item", "name": "minecraft:rotten_flesh", "weight": 10, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 8 } } ] }, { "type": "item", "name": "minecraft:string", "weight": 10, "functions": [ { "function": "set_count", "count": { "min": 1, "max": 8 } } ] } ] }, { "rolls": { "min": 1, "max": 2 }, "entries": [ { "type": "item", "name": "minecraft:tripwire_hook", "weight": 10, "functions": [ { "function": "set_nbt", "tag": "{display:{Name:\"{\\\"text\\\":\\\"§r§aVote Key\\\"}\"}}" }, { "function": "set_count", "count": { "min": 1, "max": 1 } } ] }, { "type": "empty", "weight": 2 } ] } ]}
Custom License (READ ME!)
Legopitstop common license:
Do NOT:
-Upload data pack on any other website, If you want it added to your website please ask first.
-Claim ownership over this pack.
Do
-Promote this pack to others.
-Report bugs/issues with the pack.
-Credit Legopitstop.
-use this pack in your world/server.
-make awesome videos of this pack!
Do NOT:
-Upload data pack on any other website, If you want it added to your website please ask first.
-Claim ownership over this pack.
Do
-Promote this pack to others.
-Report bugs/issues with the pack.
-Credit Legopitstop.
-use this pack in your world/server.
-make awesome videos of this pack!
Legopitstop's Common License
![Buy Me a Coffee at ko-fi.com](https://cdn.ko-fi.com/cdn/kofi2.png?v=2)
![www.patreon.com](https://i.ibb.co/hKFPkFQ/patreon-button.png)
Credit | by: Legopitstop |
Compatibility | Minecraft 1.13 |
to | Minecraft 1.16 |
Tags |
4499423
119
Create an account or sign in to comment.