continue to not understand how loot modifiers work

This commit is contained in:
gamma-delta 2022-01-19 19:47:31 -06:00
parent 1391daf8bc
commit 0b1cb1c521
3 changed files with 41 additions and 55 deletions

View file

@ -37,3 +37,10 @@ mandatory = true
versionRange = "[1.18.1-65-SNAPSHOT,)" versionRange = "[1.18.1-65-SNAPSHOT,)"
ordering = "NONE" ordering = "NONE"
side = "BOTH" side = "BOTH"
[[dependencies.hex]]
modId = "kotlinforforge"
mandatory = true
versionRange = "[3.1.0,)"
ordering = "NONE"
side = "BOTH"

View file

@ -0,0 +1,34 @@
{
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "minecraft:amethyst_cluster"
}
]
}
]
}
]
}

View file

@ -1,55 +0,0 @@
{
"pools": [
{
"name": "pool1",
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "hex:charged_amethyst",
"conditions": [
{
"condition": "minecraft:alternative",
"terms": [
{
"type": "minecraft:random_chance",
"chance": 0.1
},
{
"type": "minecraft:table_bonus",
"enchantment": "minecraft:fortune",
"chances": [
0.25,
0.5,
0.75
]
}
]
}
]
},
{
"type": "minecraft:item",
"name": "hex:amethyst_dust",
"functions": [
{
"function": "minecraft:set_count",
"count": 2,
"add": true
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
}
]
}
]
}
]
}
]
}