Hello Comunity,
I have a problem with Crop block drops, everything works exept for the loot (other block loots work for me). Here is the code of the .json file for the block drop from the Crop.
The files named is "block_crop_strawberry.json", that is the name of the Crop itsself, and there is an item for the crop, called item_crop_strawberry.
Thanks A lot for your help
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "neworesmod:block_crop_strawberry",
"properties": {
"age": "7"
}
}
],
"name": "neworesmod:block_crop_strawberry"
},
{
"type": "minecraft:item",
"name": "neworesmod:item_crop_strawberry"
}
]
}
]
},
{
"rolls": 1.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:binomial_with_bonus_count",
"parameters": {
"extra": 3,
"probability": 0.5714286
}
}
],
"name": "neworesmod:item_crop_strawberry"
}
],
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "neworesmod:block_crop_strawberry",
"properties": {
"age": "7"
}
}
]
}
],
"functions": [
{
"function": "minecraft:explosion_decay"
}
]
}