3
What's wrong with this loot table? [Datapack Help]
Post Flair (click to view more posts with a particular flair)
Author Summary
AntisocialWeeb is
in
Datapack Help
Post Body
I'm trying to make it so Farmland blocks will drop Farmland when mined with Silk Touch and Dirt when mined without.
However, it just drops dirt no matter what you mine it with. What's wrong?
Path is datapackname/data/more_silk_touch/loot_tables/blocks/farmland.json
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "minecraft:farmland"
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"name": "minecraft:dirt"
}
]
}
]
}
]
}
Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
30,554
Link Karma
23,673
Comment Karma
5,605
Profile updated: 5 days ago
Posts updated: 3 months ago
Subreddit
Post Details
Location
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/MinecraftCo...