Pumpkin/assets/datapack/data/minecraft/loot_table/blocks/large_fern.json

124 lines
3.0 KiB
JSON

{
"type": "minecraft:block",
"pools": [
{
"condition": {
"type": "minecraft:all_of",
"terms": [
{
"type": "minecraft:match_block",
"blocks": "minecraft:large_fern",
"state": {
"half": "lower"
}
},
{
"type": "minecraft:location_check",
"offsetY": 1,
"predicate": {
"block": {
"blocks": "minecraft:large_fern",
"state": {
"half": "upper"
}
}
}
}
]
},
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"condition": "minecraft:tool/can_shear",
"modifier": {
"type": "minecraft:set_count",
"count": 2
},
"name": "minecraft:fern"
},
{
"type": "minecraft:item",
"condition": {
"type": "minecraft:all_of",
"terms": [
{
"type": "minecraft:survives_explosion"
},
{
"type": "minecraft:random_chance",
"chance": 0.125
}
]
},
"name": "minecraft:wheat_seeds"
}
]
}
],
"rolls": 1
},
{
"condition": {
"type": "minecraft:all_of",
"terms": [
{
"type": "minecraft:match_block",
"blocks": "minecraft:large_fern",
"state": {
"half": "upper"
}
},
{
"type": "minecraft:location_check",
"offsetY": -1,
"predicate": {
"block": {
"blocks": "minecraft:large_fern",
"state": {
"half": "lower"
}
}
}
}
]
},
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"condition": "minecraft:tool/can_shear",
"modifier": {
"type": "minecraft:set_count",
"count": 2
},
"name": "minecraft:fern"
},
{
"type": "minecraft:item",
"condition": {
"type": "minecraft:all_of",
"terms": [
{
"type": "minecraft:survives_explosion"
},
{
"type": "minecraft:random_chance",
"chance": 0.125
}
]
},
"name": "minecraft:wheat_seeds"
}
]
}
],
"rolls": 1
}
],
"random_sequence": "minecraft:blocks/large_fern"
}