Remove set damage lootable item function from compasses

In VanillaChestLoot, compasses accidentally have a setdamage loot
function on them, but compasses don't take durability, resulting in a warning.
This patch simply removes attempting to add damage to the compass item.
This commit is contained in:
Newwind
2024-08-22 22:55:37 +02:00
parent 8a940ca0ba
commit 34c99b8c67
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- a/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
+++ b/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
@@ -70,15 +70,6 @@
"add": false,
"count": 1.0,
"function": "minecraft:set_count"
- },
- {
- "add": false,
- "damage": {
- "type": "minecraft:uniform",
- "max": 0.8,
- "min": 0.15
- },
- "function": "minecraft:set_damage"
}
],
"name": "minecraft:compass"