Skip to content

Commit

Permalink
Optimize end city treasure loot tables by putting functions on pool
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Oct 15, 2024
1 parent 2c24305 commit 3c22920
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,187 +6,53 @@
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond_boots",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:diamond_boots"
},
{
"type": "minecraft:item",
"name": "minecraft:diamond_chestplate",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:diamond_chestplate"
},
{
"type": "minecraft:item",
"name": "minecraft:diamond_leggings",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:diamond_leggings"
},
{
"type": "minecraft:item",
"name": "minecraft:diamond_helmet",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:diamond_helmet"
},
{
"type": "minecraft:item",
"name": "minecraft:iron_boots",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:iron_boots"
},
{
"type": "minecraft:item",
"name": "minecraft:iron_chestplate",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:iron_chestplate"
},
{
"type": "minecraft:item",
"name": "minecraft:iron_leggings",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:iron_leggings"
},
{
"type": "minecraft:item",
"name": "minecraft:iron_helmet",
"weight": 20,
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:iron_helmet"
}
],
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,29 @@
"entries": [
{
"type": "minecraft:item",
"weight": 20,
"name": "minecraft:diamond_sword",
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:diamond_sword"
},
{
"type": "minecraft:item",
"weight": 20,
"name": "minecraft:iron_sword",
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
"name": "minecraft:iron_sword"
}
],
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": {
"min": 20,
"max": 39,
"type": "minecraft:uniform"
},
"options": "#minecraft:on_random_loot"
},
{
"function": "minecraft:set_damage",
"damage": {
"min": 0.4,
"max": 0.7
}
}
]
}
Expand Down
Loading

0 comments on commit 3c22920

Please sign in to comment.