Skip to content

Commit

Permalink
Fix amaranth-FD compat
Browse files Browse the repository at this point in the history
  • Loading branch information
f-raZ0R committed Oct 6, 2024
1 parent b367ea1 commit 819b6b9
Showing 1 changed file with 68 additions and 12 deletions.
80 changes: 68 additions & 12 deletions src/main/resources/data/spectrum/loot_tables/blocks/amaranth.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,49 @@
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "spectrum:amaranth_grains",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 2,
"max": 4
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:binomial_with_bonus_count",
"parameters": {
"extra": 1,
"probability": 0.5714286
}
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"tag": "farmersdelight:tools/knives"
}
},
{
"condition": "minecraft:block_state_property",
"block": "spectrum:amaranth",
"properties": {
"age": "7"
}
},
{
"condition": "fabric:all_mods_loaded",
"values": [
"farmersdelight"
]
}
]
},
{
"type": "minecraft:item",
"name": "spectrum:amaranth_bushel",
Expand Down Expand Up @@ -47,22 +90,35 @@
]
}
]
},
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "farmersdelight:straw",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"tag": "farmersdelight:tools/knives"
}
},
{
"condition": "fabric:all_mods_loaded",
"values": [
"farmersdelight"
]
}
]
}
]
}
],
"functions": [
{
"function": "minecraft:explosion_decay"
}
],
"fabric:load_conditions": [
{
"condition": "fabric:not",
"value": {
"condition": "fabric:all_mods_loaded",
"values": [
"farmersdelight"
]
}
}
]
}
}

0 comments on commit 819b6b9

Please sign in to comment.